mirror of
https://github.com/headroomlabs-ai/headroom.git
synced 2026-08-27 14:17:10 -04:00
Two fixes to get the headroom MCP server working with Claude Code CLI: 1. mcp_server.py: define CCR_TOOL_NAME inline instead of importing from tool_injection, which triggered headroom/__init__.py -> LiteLLM -> HTTP requests to GitHub, adding 4-5 seconds to startup time. 2. cli/mcp.py: prefer `claude mcp add -s user` when the claude CLI is available (Claude Code CLI ≥2.x stores servers in ~/.claude/.claude.json, not ~/.claude/mcp.json). Falls back to writing mcp.json for older versions and the claude.ai desktop app. 3. tests/test_cli/test_mcp.py: update mock_claude_config_path fixture to also stub out the claude CLI so install tests exercise the mcp.json fallback path, matching the fixture's intent. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| test_mcp.py | ||