tool-subagent-mcp

module
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2026 License: MIT

README

tool-subagent-mcp

MCP server for Code from Spec subagents. Provides confined tools for code generation — the subagent can only read the spec chain and write declared output files.

Tools

  • load_chain — returns the complete spec chain for a given logical name, with frontmatter stripped from ancestors and dependencies, duplicate files removed, and existing source files included
  • write_file — writes a generated file to disk, validated against the node's implements list

Install

Download the latest release for your platform from Releases and extract the binary into your project's tools/ directory.

Or build from source:

go build -o tools/subagent-mcp ./cmd/subagent-mcp

Configure

Register the server in .claude/settings.json:

{
  "mcpServers": {
    "subagent-mcp": {
      "type": "stdio",
      "command": "tools/subagent-mcp"
    }
  }
}

On Windows, use tools/subagent-mcp.exe as the command.

Usage

The server takes no arguments. Run subagent-mcp --help for usage information.

Usage: subagent-mcp

Starts an MCP server over stdin/stdout for Code from Spec
subagents.

Documentation

Directories

Path Synopsis
cmd
subagent-mcp command
spec: ROOT/tech_design/server@v40
spec: ROOT/tech_design/server@v40
internal
frontmatter
Package frontmatter reads and parses YAML frontmatter from spec nodes, test nodes, and external dependency files.
Package frontmatter reads and parses YAML frontmatter from spec nodes, test nodes, and external dependency files.
load_chain
spec: ROOT/tech_design/internal/tools/load_chain@v49
spec: ROOT/tech_design/internal/tools/load_chain@v49
logicalnames
Package logicalnames centralizes conversion between logical names and file paths.
Package logicalnames centralizes conversion between logical names and file paths.

Jump to

Keyboard shortcuts

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