From ac41326ba8998690376b066e0a23964686c47879 Mon Sep 17 00:00:00 2001 From: Defame1297 Date: Wed, 9 Sep 2026 19:03:27 +0000 Subject: [PATCH] fix(gitea): wire real gitea-mcp server config into plugins/gitea/.mcp.json MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Replace the empty mcpServers shell left by the deep-modules split (ADR-0011) with a real, portable gitea-mcp server entry: - Pin the server to v1.7.0 rather than @latest, since this is a checked-in, distributed artifact and an unpinned version would silently change on every future install. - Use the bare "go" command, relying on PATH, instead of a machine-specific absolute path — mirroring the existing "npx" precedent for the obsidian entry in plugins/bin/.mcp.json. - Require GITEA_ACCESS_TOKEN and GITEA_HOST via ${VAR} expansion with no inline defaults, so no secret or host value is hardcoded anywhere in the repo. Refs #66. Co-Authored-By: Claude Sonnet 5 Claude-Session: https://claude.ai/code/session_01PDj6F7SPXzh3FtPN78dZ88 --- plugins/gitea/.mcp.json | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/plugins/gitea/.mcp.json b/plugins/gitea/.mcp.json index da39e4f..470c456 100644 --- a/plugins/gitea/.mcp.json +++ b/plugins/gitea/.mcp.json @@ -1,3 +1,18 @@ { - "mcpServers": {} + "mcpServers": { + "gitea": { + "args": [ + "run", + "gitea.com/gitea/gitea-mcp@v1.7.0", + "-t", + "stdio" + ], + "command": "go", + "env": { + "GITEA_ACCESS_TOKEN": "${GITEA_ACCESS_TOKEN}", + "GITEA_HOST": "${GITEA_HOST}" + }, + "type": "stdio" + } + } }