From 5d4c86b8ff3835715ef4bf3f4beb2ca3376c293d Mon Sep 17 00:00:00 2001 From: Ashwin Bhat Date: Sat, 25 Oct 2025 22:07:02 -0700 Subject: [PATCH] feat: add inline comment tool to allowed tools for code-review plugin MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit When the code-review@claude-code-plugins plugin is specified in agent mode for PRs, automatically add mcp__github_inline_comment__create_inline_comment to the allowed tools list. This ensures Claude can use the inline comment tool once the MCP server is enabled. Changes: - Check for code-review plugin in agent mode prepare - Add inline comment tool to allowed tools for PR contexts - Tool is only added when both plugin is present and context is a PR 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- src/modes/agent/index.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/modes/agent/index.ts b/src/modes/agent/index.ts index 4bcd4aa..ceee34e 100644 --- a/src/modes/agent/index.ts +++ b/src/modes/agent/index.ts @@ -114,6 +114,14 @@ export const agentMode: Mode = { const userClaudeArgs = process.env.CLAUDE_ARGS || ""; const allowedTools = parseAllowedTools(userClaudeArgs); + // Add inline comment tool if code-review plugin is present + const hasCodeReviewPlugin = context.inputs.plugins.includes( + "code-review@claude-code-plugins", + ); + if (hasCodeReviewPlugin && isEntityContext(context) && context.isPR) { + allowedTools.push("mcp__github_inline_comment__create_inline_comment"); + } + // Check for branch info from environment variables (useful for auto-fix workflows) const claudeBranch = process.env.CLAUDE_BRANCH || undefined; const baseBranch =