subagent-mcp

command
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 22, 2026 License: MIT Imports: 5 Imported by: 0

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).

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL