From 24b06d80b2749eb57f5f4a3feb1a459f006d26ce Mon Sep 17 00:00:00 2001 From: root Date: Fri, 24 Apr 2026 13:19:46 -0500 Subject: [PATCH] =?UTF-8?q?mcp:=20register=20gitea-mcp=20server=20?= =?UTF-8?q?=E2=80=94=20closes=20Phase=2040=20repo-ops=20gap?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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) --- .mcp.json | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.mcp.json b/.mcp.json index 6c33296..60089ed 100644 --- a/.mcp.json +++ b/.mcp.json @@ -7,6 +7,14 @@ "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" + } } } }