tool-framework-mcp

module
v3.0.0-...-a90690a Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2026 License: MIT

README

tool-framework-mcp

MCP server for Code from Spec. Provides tools for spec validation, code generation, and artifact management.

Tools

  • load_chain — returns the complete spec chain for a given logical name, with frontmatter stripped from ancestors and dependencies, duplicate files removed, existing source files included, and the chain hash for the artifact tag
  • write_file — writes a generated file to disk, validated against the node's declared output
  • validate_specs — validates the spec tree for format errors, circular references, and artifact staleness
  • chain_hash — computes the chain hash for a node without assembling the full context
  • version — returns the tool version

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/framework-mcp ./cmd/framework-mcp

Configure

Register the server in .claude/settings.json:

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

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

Usage

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

Usage: framework-mcp

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

Tools:
  load_chain       Load the spec chain for a node.
  write_file       Write a generated file to disk.
  validate_specs   Validate specs and check artifact staleness.
  chain_hash       Compute the chain hash for a node.
  version          Print the tool version.

MCP configuration example:
  {
    "mcpServers": {
      "framework-mcp": {
        "type": "stdio",
        "command": "<path-to-binary>"
      }
    }
  }

Documentation

Directories

Path Synopsis
cmd
framework-mcp command
code-from-spec: ROOT/golang/implementation/server@3aMwtrlsX0VuOya9-hTsxcAJ2dU
code-from-spec: ROOT/golang/implementation/server@3aMwtrlsX0VuOya9-hTsxcAJ2dU
internal
chainhash
code-from-spec: ROOT/golang/implementation/chain/hash@65WK8ijBbBSzRx34uKOF0onV6T8
code-from-spec: ROOT/golang/implementation/chain/hash@65WK8ijBbBSzRx34uKOF0onV6T8
chainresolver
code-from-spec: ROOT/golang/implementation/chain/resolver@o1DttcJ985duoGFzuuyCDCh3zIs
code-from-spec: ROOT/golang/implementation/chain/resolver@o1DttcJ985duoGFzuuyCDCh3zIs
filereader
code-from-spec: ROOT/golang/implementation/os/file_reader@tm7Q1wgQDbYhjgKR9guosFaPs28
code-from-spec: ROOT/golang/implementation/os/file_reader@tm7Q1wgQDbYhjgKR9guosFaPs28
filewriter
code-from-spec: ROOT/golang/implementation/os/file_writer@XLhW0xpWsSNavwHPS_x56X84gvk
code-from-spec: ROOT/golang/implementation/os/file_writer@XLhW0xpWsSNavwHPS_x56X84gvk
frontmatter
code-from-spec: ROOT/golang/implementation/parsing/frontmatter@BRcfdUb31wlyxgC8xQH4_8BQt5U
code-from-spec: ROOT/golang/implementation/parsing/frontmatter@BRcfdUb31wlyxgC8xQH4_8BQt5U
listfiles
code-from-spec: ROOT/golang/implementation/os/list_files@t4INp3r6dn2_G0BOg-9SaZUY-Ps
code-from-spec: ROOT/golang/implementation/os/list_files@t4INp3r6dn2_G0BOg-9SaZUY-Ps
logicalnames
code-from-spec: ROOT/golang/implementation/utils/logical_names@taVqVCT3ahewU7h2YL1TE_colWg
code-from-spec: ROOT/golang/implementation/utils/logical_names@taVqVCT3ahewU7h2YL1TE_colWg
mcpchainhash
code-from-spec: ROOT/golang/implementation/mcp_tools/chain_hash@YouuCEEGImk0toGSuKdyTykaSS0
code-from-spec: ROOT/golang/implementation/mcp_tools/chain_hash@YouuCEEGImk0toGSuKdyTykaSS0
mcploadchain
code-from-spec: ROOT/golang/implementation/mcp_tools/load_chain@BrNaVhdDMuXkyhjty67pOmdl3uo
code-from-spec: ROOT/golang/implementation/mcp_tools/load_chain@BrNaVhdDMuXkyhjty67pOmdl3uo
mcpvalidatespecs
code-from-spec: ROOT/golang/implementation/mcp_tools/validate_specs@ctdi8tTTdQMmHBxfqQ3f_mfe5_E
code-from-spec: ROOT/golang/implementation/mcp_tools/validate_specs@ctdi8tTTdQMmHBxfqQ3f_mfe5_E
mcpwritefile
code-from-spec: ROOT/golang/implementation/mcp_tools/write_file@5ONmibjnZqpDAbgyN82_wk9Woxo
code-from-spec: ROOT/golang/implementation/mcp_tools/write_file@5ONmibjnZqpDAbgyN82_wk9Woxo
noderanking
code-from-spec: ROOT/golang/implementation/utils/node_ranking@2BH1appA_kA5r3u4KXmcXPZfGCs
code-from-spec: ROOT/golang/implementation/utils/node_ranking@2BH1appA_kA5r3u4KXmcXPZfGCs
parsenode
code-from-spec: ROOT/golang/implementation/parsing/node_parsing@VTTi_qZ-Rm28JENJTeqsmCTaErs
code-from-spec: ROOT/golang/implementation/parsing/node_parsing@VTTi_qZ-Rm28JENJTeqsmCTaErs
pathutils
code-from-spec: ROOT/golang/implementation/os/path_utils@TtGD8rP-2d-_oWbo1IF4jwD6mn4
code-from-spec: ROOT/golang/implementation/os/path_utils@TtGD8rP-2d-_oWbo1IF4jwD6mn4
spectree
code-from-spec: ROOT/golang/implementation/spec_tree/scan@9-GnQz-VhEBqZR9fUiVolNQbJEA
code-from-spec: ROOT/golang/implementation/spec_tree/scan@9-GnQz-VhEBqZR9fUiVolNQbJEA
spectreevalidate
code-from-spec: ROOT/golang/implementation/spec_tree/validate@E_RibfITegOdcTknVl7WxBmN-Jk
code-from-spec: ROOT/golang/implementation/spec_tree/validate@E_RibfITegOdcTknVl7WxBmN-Jk
textnormalization
code-from-spec: ROOT/golang/implementation/utils/text_normalization@kUfhykeEcp92BFauQejgW0jsAQo
code-from-spec: ROOT/golang/implementation/utils/text_normalization@kUfhykeEcp92BFauQejgW0jsAQo

Jump to

Keyboard shortcuts

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