lakehouse/.mcp.json
root 24b06d80b2 mcp: register gitea-mcp server — closes Phase 40 repo-ops gap
Phase 40 PRD (docs/CONTROL_PLANE_PRD.md:91) claimed:
  "Gitea MCP reconnect — the MCP server binary still installed at
   /home/profit/.bun/install/cache/gitea-mcp@0.0.10/ gets wired into
   mcp-server/index.ts tool registry."

The PHASES.md checkbox marked this done, but audit found:
  - gitea-mcp binary exists in bun cache (verified)
  - Zero references to gitea/list_prs/open_pr in mcp-server/index.ts
  - No entry for "gitea" in .mcp.json

The PRD's architectural description ("wired into mcp-server/index.ts
tool registry") is conceptually wrong — gitea-mcp is a peer MCP server
that the MCP host (Claude Code) connects to directly, not a library
to import. Correct wiring: register it in .mcp.json so Claude Code
spawns both lakehouse's MCP server AND gitea-mcp as separate children,
each exposing their own tools.

This commit adds the "gitea" entry to .mcp.json pointing at bunx
gitea-mcp with GITEA_HOST set to git.agentview.dev.

OPERATOR STEP (one-time): before restarting Claude Code, generate a
personal access token at https://git.agentview.dev/user/settings/
applications and replace the SET_ME_... placeholder in
GITEA_ACCESS_TOKEN. Token needs at minimum `read:repository,
write:issue, read:user` scopes for list_prs/open_pr/comment_on_issue.

Still open from Phase 40 (not in this commit, bigger scope):
  - crates/aibridge/src/providers/gemini.rs (claimed, missing)
  - crates/aibridge/src/providers/claude.rs (claimed, missing)
These are ~100-200 lines each (full HTTP adapter + auth + request
shape mapping). Flag as follow-up commits.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-24 13:19:46 -05:00

21 lines
480 B
JSON

{
"mcpServers": {
"lakehouse": {
"command": "bun",
"args": ["run", "/home/profit/lakehouse/mcp-server/index.ts"],
"env": {
"LAKEHOUSE_URL": "http://localhost:3100",
"MCP_TRANSPORT": "stdio"
}
},
"gitea": {
"command": "bunx",
"args": ["gitea-mcp"],
"env": {
"GITEA_HOST": "https://git.agentview.dev",
"GITEA_ACCESS_TOKEN": "SET_ME_FROM_GITEA_UI_USER_SETTINGS_APPLICATIONS"
}
}
}
}