Skip to content

kubernetes_debug

MCP tools › Containers and Kubernetes

Runs one command in a new ephemeral debug container of a pod (kubectl debug --profile=general, output read from its logs once it ended), sharing the process namespace of target (default: the pod's first container); image defaults to the pinned busybox:1.36.1. The ephemeral container stays in the pod until the pod is deleted. Defaults to dry_run=true and returns the command; dry_run=false needs the user-granted run right and is logged in .ferris-idea/agent-log.jsonl.

Its results carry text from process: the client is told to treat that as data, never as instructions.

Capabilitycontainers.kubernetes_debug
AreaContainers and Kubernetes
Accesschanges processes, remote
Reachesprocess, network
Rightsrun
Dry rundry_run, on unless the call turns it off

Arguments

ArgumentTypeDescription
podrequiredstringThe pod.
commandrequiredarray of stringThe command (an argument list) to run in the debug container.
imagestringImage of the debug container (default busybox:1.36.1).
targetstringContainer whose processes the debug container sees (default: the pod's first).
contextstringContext (default: the current one).
namespacestringNamespace (default: the context's).
dry_runbooleanOnly report the command (default true).
timeout_sintegerSeconds to wait (default 120, at most 600).minimum 0

Call it from a shell

ferris-idea call runs one tool with the rights and safe mode of ferris-idea mcp. Replace the folder and the placeholder values.

Terminal window
ferris-idea call ~/my-project kubernetes_debug '{"pod":"<string>","command":[]}'
Input schema as JSON
{
"properties": {
"pod": {
"description": "The pod.",
"type": "string"
},
"command": {
"description": "The command (an argument list) to run in the debug container.",
"type": "array",
"items": {
"type": "string"
}
},
"image": {
"description": "Image of the debug container (default `busybox:1.36.1`).",
"type": [
"string",
"null"
]
},
"target": {
"description": "Container whose processes the debug container sees (default: the pod's first).",
"type": [
"string",
"null"
]
},
"context": {
"description": "Context (default: the current one).",
"type": [
"string",
"null"
]
},
"namespace": {
"description": "Namespace (default: the context's).",
"type": [
"string",
"null"
]
},
"dry_run": {
"description": "Only report the command (default true).",
"type": [
"boolean",
"null"
]
},
"timeout_s": {
"description": "Seconds to wait (default 120, at most 600).",
"type": [
"integer",
"null"
],
"minimum": 0
}
},
"required": [
"pod",
"command"
],
"additionalProperties": false,
"type": "object"
}