Expand description
Spec-Kit MCP Server
MCP server that enables AI coding assistants to use spec-driven development practices via the GitHub Spec-Kit toolkit.
§Features
- 9 Spec-Kit Tools: Complete workflow from constitution to implementation
- MCP Protocol: Full JSON-RPC 2.0 implementation
- Async/Await: Built on Tokio for high performance
- Type Safety: Comprehensive type system with validation
- Error Handling: Helpful error messages for debugging
§Quick Start
§As a Binary
# Via cargo
cargo install spec-kit-mcp
spec-kit-mcp
# Via npx
npx @speckit/mcp§Configure in Claude Code
Add to .mcp.json:
{
"mcpServers": {
"spec-kit": {
"command": "npx",
"args": ["@speckit/mcp@latest"]
}
}
}§Architecture
AI Agent → MCP Protocol → Tool Registry → Spec-Kit CLI → File System§Available Tools
speckit_init- Initialize a new spec-kit projectspeckit_constitution- Create governing principlesspeckit_specify- Define requirements and user storiesspeckit_plan- Create technical implementation planspeckit_tasks- Generate actionable task listspeckit_implement- Execute implementationspeckit_clarify- Clarify ambiguous requirementsspeckit_analyze- Analyze cross-artifact consistencyspeckit_checklist- Generate validation checklist
§Example Usage
use spec_kit_mcp::{McpServer, create_registry, SpecKitCli};
#[tokio::main]
async fn main() -> anyhow::Result<()> {
// Create CLI interface
let cli = SpecKitCli::new();
// Create tool registry
let registry = create_registry(cli);
// Create and run server
let mut server = McpServer::new(registry);
server.run().await?;
Ok(())
}Re-exports§
pub use mcp::McpServer;pub use mcp::ProtocolHandler;pub use mcp::StdioTransport;pub use speckit::SpecKitCli;pub use speckit::SpecKitError;pub use tools::create_registry;pub use tools::Tool;pub use tools::ToolRegistry;