The attach sidecar is separate from the main MCP endpoint and is not started in stdio mode.
Default endpoint
Request body
Request fields
number
required
Target process id to attach to.
string
required
Target debug session id. The session must already exist.
string
Optional binary path to load before attach. Use a path that resolves under
/workspace.string[]
Optional GDB or pwndbg commands executed before the attach.
string[]
Optional GDB or pwndbg commands executed after a successful attach.
Response shape
Response fields
boolean
required
Whether the overall attach request succeeded.
object
Structured summary of the attach attempt.
object
required
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