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
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Investigate Deployment?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/onprem-ai-investigate-deployment)
---
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").