| layout | docs |
|---|
Codaph includes a local MCP server over stdio so Claude Code (and other MCP clients) can inspect Codaph status, sessions, timelines, and diff summaries.
For most users, configure Codaph MCP in Claude Code user scope:
- one setup works across repos
- no repo config file to commit
- Codaph tools can still target specific repos with
cwd/project_path
Use project scope (.mcp.json) when you want to share MCP setup with a team.
When you run codaph init, Codaph writes a reusable template at:
.codaph/mcp/claude-code.jsonThis file is a safe copy/merge source. Codaph writes it inside .codaph so it does not overwrite:
~/.claude.json- repo
.mcp.json - other MCP servers you already configured
Template shape:
{
"mcpServers": {
"codaph": {
"type": "stdio",
"command": "codaph",
"args": ["mcp"]
}
}
}Codaph can print (or run) the Claude Code command for you.
Print the recommended command:
codaph mcp setup claudeRun it automatically:
codaph mcp setup claude --runUseful flags:
--scope user|project|local(default:user)--mode codaph|npx(default:codaph)--cwd <path>--json
Examples:
# user-scope (recommended)
codaph mcp setup claude --scope user --run
# project-scope shared config entry
codaph mcp setup claude --scope project --run
# fallback when codaph is not globally installed
codaph mcp setup claude --mode npxCodaph does not require another package for this. Use the existing codaph mcp entrypoint.
Installed binary:
claude mcp add --scope user codaph -- codaph mcpnpx fallback (no global install):
claude mcp add --scope user codaph -- npx --yes --package @codaph/codaph codaph mcpIf you prefer .mcp.json, copy the generated .codaph/mcp/claude-code.json template and place it in the repo root as .mcp.json.
{
"mcpServers": {
"codaph": {
"type": "stdio",
"command": "codaph",
"args": ["mcp"]
}
}
}In Claude Code:
- open
/mcp - confirm
codaphshowsconnected
Optional CLI checks:
claude mcp list
claude mcp get codaphCurrent tools include:
codaph_statuscodaph_sessions_listcodaph_contributors_listcodaph_timeline_getcodaph_diff_summarycodaph_projects_listcodaph_mubit_contextcodaph_mubit_snapshotcodaph_mubit_activitycodaph_mubit_diagnosecodaph_mubit_strategiescodaph_handoffs_listcodaph_agents_list
- Disable/remove duplicate Codaph MCP entries in
/mcp(especially stale local-scope entries). - Retry with
codaph mcp setup claude --run. - If
codaphis not onPATH, use--mode npx. - Restart Claude Code after changing MCP config.
- Test the server directly:
codaph mcpIf the process stays open waiting for stdio input, the server is starting correctly.