Skip to content
Back to skills

Investigate Deployment

BSecurity

Investigate a running deployment (the development stack included) through the control plane's own MCP endpoint, the way an agent running inside the app would. Use when debugging a deployed model, an inference node, an error report, a failed request or anything else a running control plane can answer, before reaching for the database, docker or the source.

  • 2 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added December 3, 2026
devopsrustnodedockerdebuggingapidatabase

Works with

  • cli
  • api
  • mcp

Security analysis

B75/100
  • criticalSends environment variables or credentials to an external URL

Pro shows the line behind each finding and how to fix it

Scanned December 3, 2026

npx -y skills add onprem-ai/platform --skill investigate-deployment --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Investigate Deployment?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Investigate Deployment
[![Security: B — Skills Directory](https://www.skillsdirectory.com/api/skills/onprem-ai-investigate-deployment/badge)](https://www.skillsdirectory.com/skills/onprem-ai-investigate-deployment)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: investigate-deployment
description: Investigate a running deployment (the development stack included) through the control plane's own MCP endpoint, the way an agent running inside the app would. Use when debugging a deployed model, an inference node, an error report, a failed request or anything else a running control plane can answer, before reaching for the database, docker or the source.
---

# Investigate a deployment

An agent is meant to run inside the app and investigate with the app's own
access alone. Use the control plane's MCP endpoint; never call a route from
memory.

## 1. Connect to the MCP endpoint

The development stack's control plane answers MCP at
`https://localhost:3443/mcp`, authenticated with a control plane API key.

- `dev/run-dev.sh` writes the key for agents to
  `.dev-runtime/tmp/control-plane-api-key` (mode 0600), and the stack's root
  certificate to `.dev-runtime/tmp/control-plane-root.pem`.
- `.mcp.json` at the repository root registers the endpoint as the MCP server
  `onprem-ai-dev`; its headers helper `dev/mcp-headers.sh` reads the key, so no
  key is in a committed file. A Node-based client trusts the stack's
  certificate with `NODE_EXTRA_CA_CERTS=.dev-runtime/tmp/control-plane-root.pem`.
- Another deployment: the same endpoint (`https://<control plane>/mcp`) with
  a key an administrator made for you.

## 2. Find the operation, then call it

The endpoint is hierarchical: each area has an `<area>_read` tool for the
operations that only read and an `<area>_change` tool for the ones that change
state. A tool's description lists its operations, one line each.

1. Pick the area from the tool list (`inference_services_read`,
   `error_reports_read`, `inference_nodes_read`, ...).
2. Call `describe_operation` for the operation's complete input schema.
3. Call the area tool with `{"operation": "<name>", "arguments": {...}}`.
   Wrong or missing arguments come back as a tool error naming each problem,
   with the operation's schema: correct the call, do not guess.
4. On a read that answers a list, pass `"jmespath"` beside `arguments` to
   receive only the fields you need, e.g.
   `inference_nodes[].{name: display_name, status: operator_connection_status.label}`.
   `describe_operation` answers the output schema to write it against.

## 3. Without an MCP client

Use the HTTP API, but look every route up first: never call a route from
memory.

- `GET /api/v1/openapi.json` lists every route with its method and schema. It
  is large (hundreds of kilobytes): search it for the path or the operation
  you need, never read it whole.
- The MCP endpoint also answers plain JSON-RPC over HTTP POST
  (`tools/list`, `tools/call`) with the same key, which is smaller than the
  OpenAPI document and carries the same descriptions.
- The key: `Authorization: Bearer $(cat .dev-runtime/tmp/control-plane-api-key)`;
  the certificate: `curl --cacert .dev-runtime/tmp/control-plane-root.pem`.

## 4. Where to look first

- A failed replica: `inference_services_read` `list` or `get` (the replica's
  `error`, with its exit code and the last log lines), then the error report it
  names.
- An error report: `error_reports_read` `list`, `get`, `retrieve_package`.
- A container: `inference_nodes_containers_read` `inspect` (the container
  runtime's inspect, its processes and mounts);
  `console_log_streams_read` `read_archive` for its log.
- GPU use: `inference_nodes_compute_devices_read` `inspect_processes`.

The names above are a starting point, not a contract: the tool list is the
truth, so read it when a name is not there.

## 5. Report what the app could not answer

Reach for direct access (the database, `docker`, `nvidia-smi`, the source)
only for what the endpoint cannot answer, and say which step needed it. Every
such step is a finding: what you tried, what the app answered, and the
improvement that would have answered it (CLAUDE.md, "investigate through the
app's own API first").

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in devops →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.