MCP Integration
Connect AI coding tools like Claude Code, Cursor, and VS Code to your Kommit specs via the Model Context Protocol.
MCP Integration
Kommit provides a full MCP server that AI coding tools can connect to. Your canvas becomes a queryable knowledge base — agents read your spec, features, tech stack, and project memory in real time.
What is MCP?
The Model Context Protocol (MCP) is an open standard for connecting AI models to external data sources and tools. An AI coding tool that supports MCP can pull structured context from any MCP-compatible source — including Kommit.
Quick Start
The fastest way to connect is with the Kommit CLI:
npx @kommit/cli@latest --client claude-codeThis opens your browser to authenticate, then writes the MCP config to your project. Restart your editor and Kommit is connected.
The CLI supports 18 AI tools including Claude Code, Cursor, VS Code, Claude Desktop, Windsurf, Cline, Zed, and more. Run without --client for an interactive picker.
Manual Setup
If you prefer to configure manually:
1. Generate an API key
- Go to Settings in your Kommit dashboard.
- Under API Keys, click Generate New Key.
- Copy the key (it starts with
km_). You will only see the full key once.
2. Connect your AI tool
Claude Code — add to your project's .mcp.json:
{
"mcpServers": {
"kommit": {
"type": "http",
"url": "https://getkommit.ai/api/mcp",
"headers": {
"Authorization": "Bearer km_YOUR_API_KEY"
}
}
}
}Cursor — add to ~/.cursor/mcp.json:
{
"mcpServers": {
"kommit": {
"url": "https://getkommit.ai/api/mcp",
"headers": {
"Authorization": "Bearer km_YOUR_API_KEY"
}
}
}
}VS Code — add to .vscode/mcp.json:
{
"mcpServers": {
"kommit": {
"type": "url",
"url": "https://getkommit.ai/api/mcp",
"headers": {
"Authorization": "Bearer km_YOUR_API_KEY"
}
}
}
}Other tools (Claude Desktop, Windsurf, etc.) use stdio transport via mcp-remote. The CLI handles this automatically — run npx @kommit/cli@latest and select your tool.
Available Tools
Once connected, your AI tool has access to 11 tools:
Spec & Project Tools
| Tool | What it does |
|---|---|
list_projects | List all projects in your workspace |
get_project_overview | Full snapshot — description, features, tech stack, audience, competitors |
get_spec | Latest PRD as Markdown — the most comprehensive context for building |
get_feature | Drill into a specific feature's acceptance criteria and data models |
get_tech_stack | Technology choices with reasoning |
get_data_schema | Aggregated data models across all features |
Memory Tools
| Tool | What it does |
|---|---|
add_memory | Store decisions, learnings, gotchas, and preferences |
search_memory | Semantic search across all project memories |
list_memories | List recent memories, filtered by category |
delete_memory | Remove outdated or inaccurate memories |
Utility
| Tool | What it does |
|---|---|
get_current_date | Current timestamp for time-based queries |
How Agents Use It
A well-connected agent follows this workflow:
- Load context —
get_specorget_project_overviewto understand the project - Check memory —
search_memorybefore making architectural choices - Get details —
get_featureorget_tech_stackfor specific requirements - Build — implement with full context
- Save learnings —
add_memoryto record decisions and discoveries
Memories persist across sessions. The next time you (or a teammate) open a project, those decisions are part of the context.
Cross-Project Search
Memory tools work across all projects by default. Omit the project_id parameter to search or list memories across your entire workspace. Results include the project name for disambiguation.
To scope to a specific project, pass project_id or add ?project=PROJECT_ID to the MCP URL.
API Key Security
- Keys are scoped to your workspace. They cannot access other workspaces.
- Optional project scoping narrows access to specific projects.
- Keys can be revoked at any time from Settings.
- All requests are authenticated and subject to rate limits.
Why MCP Instead of Copy-Paste?
Copy-pasting Markdown works but has limitations:
- The spec is static — it does not update as implementation decisions are made
- The agent cannot query a specific section without reading everything
- When you regenerate the spec, the agent has no way to know
MCP solves all three: the agent reads the latest spec at query time, requests only what it needs, and always gets the most recent version.