Skip to content

Commit 91bffb9

Browse files
committed
Move allowed tools to start.sh
Moved the `CODER_MCP_ALLOWED_TOOLS` export to the `start.sh` script for task reporting. This change clarifies tool permissions at startup.
1 parent 31d2c0d commit 91bffb9

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,6 @@ 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-
export CODER_MCP_ALLOWED_TOOLS="coder_report_task"
9493
coder exp mcp configure claude-code "$ARG_WORKDIR"
9594
fi
9695
}

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,9 @@ task_session_exists() {
7979
ARGS=()
8080

8181
function start_agentapi() {
82+
# For Task reporting
83+
export CODER_MCP_ALLOWED_TOOLS="coder_report_task"
84+
8285
mkdir -p "$ARG_WORKDIR"
8386
cd "$ARG_WORKDIR"
8487

0 commit comments

Comments
 (0)