Documentation
¶
Overview ¶
Package main is the entry point for the subagent-mcp binary.
It reads the first CLI argument to determine the mode, sets up the corresponding MCP server via that mode's Setup function, and runs the server over stdin/stdout using the MCP stdio transport.
Invocation:
subagent-mcp <mode> [args...]
Currently supported modes:
- codegen: Generate code for a spec or test node.
Error handling follows the spec contract:
- Startup errors (missing/invalid mode, failed Setup) → stderr + exit 1.
- Tool errors are returned as MCP tool error responses (server keeps running).
Click to show internal directories.
Click to hide internal directories.