Skip to content

Commit 97f7352

Browse files
authored
chore(claude-code): only allow report_task tool for task reporting
We only need the single `report tasks` tool for tasks reporting. Also, you don't need to inject all Coder tools when no task reporting is required. Coder MCP tools are usually useful when used from an external system rather than within Coder Tasks.
1 parent 30123e7 commit 97f7352

File tree

1 file changed

+1
-5
lines changed
  • registry/coder/modules/claude-code/scripts

1 file changed

+1
-5
lines changed

registry/coder/modules/claude-code/scripts/install.sh

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -90,11 +90,7 @@ function report_tasks() {
9090
echo "Configuring Claude Code to report tasks via Coder MCP..."
9191
export CODER_MCP_APP_STATUS_SLUG="$ARG_MCP_APP_STATUS_SLUG"
9292
export CODER_MCP_AI_AGENTAPI_URL="http://localhost:3284"
93-
coder exp mcp configure claude-code "$ARG_WORKDIR"
94-
else
95-
export CODER_MCP_APP_STATUS_SLUG=""
96-
export CODER_MCP_AI_AGENTAPI_URL=""
97-
echo "Configuring Claude Code with Coder MCP..."
93+
export CODER_MCP_ALLOWED_TOOLS="report_tasks"
9894
coder exp mcp configure claude-code "$ARG_WORKDIR"
9995
fi
10096
}

0 commit comments

Comments
 (0)