A local MCP server that exposes your development context — git state, Claude Code session history, active diffs, TODOs, and build setup — as MCP tools. When you open Claude.ai, it already knows what you're working on.
A local MCP server that exposes your development context — git state, Claude Code session history, active diffs, TODOs, and build setup — as MCP tools. When you open Claude.ai, it already knows what you're working on.
npx claude-context-bridge --autoOr install globally:
npm install -g claude-context-bridge
claude-context-bridge --auto| Tool | What it returns |
|---|---|
get_project_context | Repo name, branch, last 5 commits, git status, package.json info |
get_recent_claude_sessions | Last 3 Claude Code sessions with timestamps and first prompts |
get_active_changes | Staged + unstaged diffs (truncated to 3000 chars), modified file list |
get_todo_context | TODO/FIXME/HACK/BUG/NOTE comments in recently modified files |
get_build_context | npm scripts, dependencies, config files (tsconfig, Dockerfile, Makefile…) |
get_current_repo | Active repo path and how it was detected (auto vs manual) |
┌─────────────────┐ ┌─────────────────┐ ┌──────────────────────┐
│ Claude Desktop │ │ Claude Code │ │ claude.ai │
│ (stdio MCP) │ │ (stdio MCP) │ │ (MCP Bridge ext) │
└────────┬────────┘ └────────┬────────┘ └──────────┬───────────┘
│ │ │ SSE
└─────────────────────┼────────────────────────┘
│
┌────────────▼─────────────┐
│ claude-context-bridge │
│ (this server) │
└──────┬───────────┬───────┘
│ │
┌───────────▼──┐ ┌────▼────────────┐
│ git repos │ │ ~/.claude/ │
│ on disk │ │ projects/ │
└──────────────┘ └─────────────────┘--auto mode — reads ~/.claude/projects/ every 30 s, switches to the repo of the most recently active Claude Code session automaticallygit clone https://github.com/nirxnjxnCodeS/Claude-to-Claude.git
cd Claude-to-Claude/claude-context-bridge
npm install
npm run buildnode dist/index.js --test --repo /path/to/any/git/repoAdd to ~/Library/Application Support/Claude/claude_desktop_config.json:
{
"mcpServers": {
"context-bridge": {
"command": "node",
"args": [
"/absolute/path/to/claude-context-bridge/dist/index.js",
"--auto"
]
}
}
}Restart Claude Desktop — the 6 tools appear in the tool picker.
claude mcp add context-bridge node /absolute/path/to/claude-context-bridge/dist/index.js -- --auto
# Verify
claude mcp listnode dist/index.js --autohttp://localhost:3451/ssehttp://localhost:3451/healthnpm run build
bash scripts/install-autostart.shThe script:
node binary path automatically~/Library/LaunchAgents/com.claude-context-bridge.plistlaunchctl immediately~/Library/Logs/claude-context-bridge.{out,err}.logThe bridge will restart automatically if it crashes (KeepAlive: true).
# Stop
launchctl unload ~/Library/LaunchAgents/com.claude-context-bridge.plist
# View live logs
tail -f ~/Library/Logs/claude-context-bridge.err.log| Flag | Default | Description |
|---|---|---|
--repo <path> | cwd (walks up for .git) | Explicit repo path |
--auto | off | Auto-detect active repo from most recent Claude Code session; re-checks every 30 s |
--port <n> | 3451 | SSE server port |
--no-stdio | off | Disable stdio transport; SSE-only mode |
--test | off | Run all tools, print results, exit |
--help | — | Print usage |
--autoand--repoare mutually exclusive.--autowins if both are passed.
Call get_current_repo to confirm which project I'm in.Use get_project_context and tell me what branch I'm on and what changed recently.Call get_recent_claude_sessions — what was I building in my last few sessions?Check get_active_changes and review my diff. Anything risky?Run get_todo_context and prioritize the TODOs in my modified files.Combine get_project_context, get_active_changes, and get_build_context
to give me a full situational briefing before we start coding.claude-context-bridge/
├── src/
│ ├── index.ts Entry point, CLI flags, startup logic
│ ├── server.ts MCP Server factory, tool registration, RepoRef
│ ├── auto-detect.ts --auto repo detection from ~/.claude/projects/
│ ├── tools/
│ │ ├── git.ts get_project_context, get_active_changes
│ │ ├── sessions.ts get_recent_claude_sessions
│ │ └── code.ts get_todo_context, get_build_context
│ └── transport/
│ ├── stdio.ts stdio transport
│ └── sse.ts SSE/HTTP transport (MCP Bridge extension)
├── scripts/
│ └── install-autostart.sh macOS launchd installer
├── dist/ Compiled JS (after npm run build)
├── LICENSE
├── package.json
└── README.md# Dev mode (no build step)
npm run dev -- --test
# Watch mode
npx tsc --watch
# Rebuild and test
npm run build && node dist/index.js --testIssues and PRs are welcome at github.com/nirxnjxnCodeS/Claude-to-Claude.
node --version) and the error from claude-context-bridge --testsrc/tools/, register it in src/server.ts (TOOLS array + switch case)nirxnjxnCodeS/Claude-to-Claude
April 13, 2026
April 13, 2026
TypeScript