Claude Code
Connect SpecForge to Claude Code with MCP tools and Agent Teams for autonomous parallel implementation.
Claude Code is SpecForge’s deepest integration. The CLI generates not just MCP configuration, but specialized agents, operational skills, and Agent Teams orchestration — everything Claude Code needs to plan, implement, and validate a specification autonomously.
Other agents get MCP access. Claude Code gets the full stack.
Quick Setup
From the root of your repository:
specforge initThe CLI detects Claude Code and generates:
| File | Purpose |
|---|---|
.mcp.json | Registers the SpecForge MCP server — 22 tools available |
CLAUDE.md | Anchors the project context — which SpecForge project and specification this repo is connected to |
.claude/skills/ | Operational skills that teach Claude Code how to use SpecForge MCP tools for planning, implementation, and validation |
.claude/agents/ | Specialized agent definitions for orchestrated parallel implementation via Agent Teams |
.specforge/config.json | Project and specification IDs, Agent Teams configuration |
If you already have a .mcp.json with other servers, specforge init merges the SpecForge entry without touching your existing configuration.
✅ Run
specforge scaffold --target claude-codeto regenerate only the Claude Code files without going through the full init flow.
MCP Configuration
The generated .mcp.json:
{
"mcpServers": {
"specforge": {
"command": "npx",
"args": ["-y", "@specforge/cli@latest"],
"env": {
"SPECFORGE_API_KEY": "your-api-key"
}
}
}
}Claude Code detects this on next startup. All 22 SpecForge tools become available in conversation.
Available Tools
Once connected, Claude Code has access to the full SpecForge toolkit:
- Planning — Create and manage specifications, epics, tickets, dependencies, and blueprints
- Queries — Fetch tickets, get dependency trees, find blockers, view critical paths
- Implementation — Start work sessions, link commits and PRs, review implementations
- Reports — Generate progress reports, validate specification completeness
All tools are callable naturally in conversation. Tell Claude Code what you want, and it picks the right tool.
What Makes Claude Code Different
Beyond MCP tools, specforge init generates specialized agents, operational skills, and Agent Teams orchestration files — giving Claude Code a complete understanding of the SpecForge workflow without any manual configuration.
Deep dives:
- Agent Teams → — Parallel implementation with orchestrator, workers, and validators
- Agents & Skills → — Specialized agent definitions and operational skill protocols
Workflow: Planning + Implementation
A typical workflow using Claude Code with SpecForge:
Planning (conversational):
- “Create a new specification for user authentication”
- Claude Code calls
create_specification - “Decompose this into epics and tickets”
- Claude Code runs the planning session, creates structure, links dependencies
- “Run the planning review”
- Claude Code calls
review_planning, shows the score and findings - You refine based on feedback, re-run until the gate passes
Implementation (autonomous):
- “Implement the active specification”
- Claude Code (with Agent Teams) spawns workers, implements in parallel
- You monitor from the dashboard or with
specforge status - After all tickets complete, Claude Code runs the implementation review
- Address any findings, re-run if needed
The transition from planning to implementation is seamless — same tool, same session, same MCP connection.
Manual Configuration
If you prefer to configure manually instead of using specforge init:
# Generate only Claude Code files
specforge scaffold --target claude-codeThis creates the MCP config, CLAUDE.md, agents, and skills without the interactive project selection flow.
Next Steps
- Claude Desktop — For planning and review without the terminal
- CLI Commands — Full CLI reference
- Autonomous Implementation — Detailed Agent Teams walkthrough