The attach sidecar is separate from the main MCP endpoint and is not started in stdio mode.
Default endpoint
Request body
Request fields
Target process id to attach to.
Target debug session id. The session must already exist.
Optional binary path to load before attach. Use a path that resolves under
/workspace.Optional GDB or pwndbg commands executed before the attach.
Optional GDB or pwndbg commands executed after a successful attach.
Response shape
Response fields
Whether the overall attach request succeeded.
Structured summary of the attach attempt.
Map of pre-commands, optional
set-file, and post-commands to their individual command results.Python helper
pwnomcp.cli.attach() wraps the same API.
When to use it
- use the MCP
attachtool for normal in-client workflows - use
/attachorpwnomcp.cli.attach()when you already have a local Python helper or external integration that wants a small HTTP contract