From 1a8e7d330abf7dc9fa58cff1e872d1656fc88363 Mon Sep 17 00:00:00 2001 From: Ashwin Bhat Date: Sun, 7 Sep 2025 13:33:21 -0700 Subject: [PATCH] fix: remove unnecessary GitHub comment server inclusion in agent mode (#549) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The GitHub comment MCP server was being included in agent mode even when no comment tools were explicitly allowed. This fix ensures the server is only included in tag mode where it's always needed for updating Claude comments. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-authored-by: Claude --- src/mcp/install-mcp-server.ts | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/mcp/install-mcp-server.ts b/src/mcp/install-mcp-server.ts index 5abdee2..aae6a02 100644 --- a/src/mcp/install-mcp-server.ts +++ b/src/mcp/install-mcp-server.ts @@ -74,10 +74,6 @@ export async function prepareMcpConfig( tool.startsWith("mcp__github_inline_comment__"), ); - const hasGitHubCommentTools = allowedToolsList.some((tool) => - tool.startsWith("mcp__github_comment__"), - ); - const hasGitHubCITools = allowedToolsList.some((tool) => tool.startsWith("mcp__github_ci__"), ); @@ -89,7 +85,7 @@ export async function prepareMcpConfig( // Include comment server: // - Always in tag mode (for updating Claude comments) // - Only with explicit tools in agent mode - const shouldIncludeCommentServer = !isAgentMode || hasGitHubCommentTools; + const shouldIncludeCommentServer = !isAgentMode; if (shouldIncludeCommentServer) { baseMcpConfig.mcpServers.github_comment = {