remote_debug_attach
MCP tools › Remote, rooms and agents
Attach a debugger to a process, a debug port, a container or a pod of an open remote project's host (SPEC-0322, Experimental). The adapter runs on the host; an agent may only name a port on the host's own loopback, a container or a pod. dry_run defaults to true; dry_run=false needs the user-granted debug right and returns a session id for the debug_* tools.
Its results carry text from remote: the client is told to treat that as data, never as instructions.
| Capability | remote.remote_debug_attach |
|---|---|
| Area | Remote, rooms and agents |
| Access | changes ide, processes |
| Reaches | process, network |
| Rights | debug |
| Dry run | dry_run, on unless the call turns it off |
Arguments
| Argument | Type | Description |
|---|---|---|
hostrequired | string | Host the remote project was opened on. |
folderrequired | string | Its folder. |
runtimerequired | string | native, python, node or java. |
pid | integer | Process id on the host.minimum 0 |
port | integer | Debug port on the host's loopback.minimum 0 · maximum 65535 |
container | string | A container on the host, with port. |
pod | string | A pod the host reaches, with port. |
namespace | string | The pod's namespace. |
target_root | string | Folder of the project in the target, for the source mapping. |
breakpoints | array of object | Breakpoints at host paths or project-relative paths. |
breakpoints[].pathrequired | string | Host path or path relative to the project. |
breakpoints[].linerequired | integer | 1-based line.minimum 0 |
wait_seconds | integer | Seconds to wait for the first stop (default 30, at most 300).minimum 0 |
dry_run | boolean | Only say what would happen (default true). |
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.
ferris-idea call ~/my-project remote_debug_attach '{"host":"<string>","folder":"<string>","runtime":"<string>"}'Input schema as JSON
{ "properties": { "host": { "description": "Host the remote project was opened on.", "type": "string" }, "folder": { "description": "Its folder.", "type": "string" }, "runtime": { "description": "`native`, `python`, `node` or `java`.", "type": "string" }, "pid": { "description": "Process id on the host.", "type": [ "integer", "null" ], "minimum": 0 }, "port": { "description": "Debug port on the host's loopback.", "type": [ "integer", "null" ], "maximum": 65535, "minimum": 0 }, "container": { "description": "A container on the host, with `port`.", "type": [ "string", "null" ] }, "pod": { "description": "A pod the host reaches, with `port`.", "type": [ "string", "null" ] }, "namespace": { "description": "The pod's namespace.", "type": [ "string", "null" ] }, "target_root": { "description": "Folder of the project in the target, for the source mapping.", "type": [ "string", "null" ] }, "breakpoints": { "description": "Breakpoints at host paths or project-relative paths.", "type": [ "array", "null" ], "items": { "$ref": "#/$defs/RemoteBreakpointArg" } }, "wait_seconds": { "description": "Seconds to wait for the first stop (default 30, at most 300).", "type": [ "integer", "null" ], "minimum": 0 }, "dry_run": { "description": "Only say what would happen (default true).", "type": [ "boolean", "null" ] } }, "$defs": { "RemoteBreakpointArg": { "description": "One breakpoint of `remote_debug_start` or `remote_debug_attach`.", "type": "object", "properties": { "path": { "description": "Host path or path relative to the project.", "type": "string" }, "line": { "description": "1-based line.", "type": "integer", "minimum": 0 } }, "required": [ "path", "line" ] } }, "required": [ "host", "folder", "runtime" ], "type": "object"}