chore(claude-code): limit MCP tools for task reporting (#507)
This commit is contained in:
parent
a327e79bc4
commit
0ff3dbcc48
@ -13,7 +13,7 @@ Run the [Claude Code](https://docs.anthropic.com/en/docs/agents-and-tools/claude
|
|||||||
```tf
|
```tf
|
||||||
module "claude-code" {
|
module "claude-code" {
|
||||||
source = "registry.coder.com/coder/claude-code/coder"
|
source = "registry.coder.com/coder/claude-code/coder"
|
||||||
version = "3.3.0"
|
version = "3.3.1"
|
||||||
agent_id = coder_agent.example.id
|
agent_id = coder_agent.example.id
|
||||||
workdir = "/home/coder/project"
|
workdir = "/home/coder/project"
|
||||||
claude_api_key = "xxxx-xxxxx-xxxx"
|
claude_api_key = "xxxx-xxxxx-xxxx"
|
||||||
@ -51,7 +51,7 @@ module "claude-code" {
|
|||||||
boundary_log_level = "WARN"
|
boundary_log_level = "WARN"
|
||||||
boundary_additional_allowed_urls = ["GET *google.com"]
|
boundary_additional_allowed_urls = ["GET *google.com"]
|
||||||
boundary_proxy_port = "8087"
|
boundary_proxy_port = "8087"
|
||||||
version = "3.3.0"
|
version = "3.3.1"
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
@ -70,7 +70,7 @@ data "coder_parameter" "ai_prompt" {
|
|||||||
|
|
||||||
module "claude-code" {
|
module "claude-code" {
|
||||||
source = "registry.coder.com/coder/claude-code/coder"
|
source = "registry.coder.com/coder/claude-code/coder"
|
||||||
version = "3.3.0"
|
version = "3.3.1"
|
||||||
agent_id = coder_agent.example.id
|
agent_id = coder_agent.example.id
|
||||||
workdir = "/home/coder/project"
|
workdir = "/home/coder/project"
|
||||||
|
|
||||||
@ -106,7 +106,7 @@ Run and configure Claude Code as a standalone CLI in your workspace.
|
|||||||
```tf
|
```tf
|
||||||
module "claude-code" {
|
module "claude-code" {
|
||||||
source = "registry.coder.com/coder/claude-code/coder"
|
source = "registry.coder.com/coder/claude-code/coder"
|
||||||
version = "3.3.0"
|
version = "3.3.1"
|
||||||
agent_id = coder_agent.example.id
|
agent_id = coder_agent.example.id
|
||||||
workdir = "/home/coder"
|
workdir = "/home/coder"
|
||||||
install_claude_code = true
|
install_claude_code = true
|
||||||
@ -129,7 +129,7 @@ variable "claude_code_oauth_token" {
|
|||||||
|
|
||||||
module "claude-code" {
|
module "claude-code" {
|
||||||
source = "registry.coder.com/coder/claude-code/coder"
|
source = "registry.coder.com/coder/claude-code/coder"
|
||||||
version = "3.3.0"
|
version = "3.3.1"
|
||||||
agent_id = coder_agent.example.id
|
agent_id = coder_agent.example.id
|
||||||
workdir = "/home/coder/project"
|
workdir = "/home/coder/project"
|
||||||
claude_code_oauth_token = var.claude_code_oauth_token
|
claude_code_oauth_token = var.claude_code_oauth_token
|
||||||
@ -202,7 +202,7 @@ resource "coder_env" "bedrock_api_key" {
|
|||||||
|
|
||||||
module "claude-code" {
|
module "claude-code" {
|
||||||
source = "registry.coder.com/coder/claude-code/coder"
|
source = "registry.coder.com/coder/claude-code/coder"
|
||||||
version = "3.3.0"
|
version = "3.3.1"
|
||||||
agent_id = coder_agent.example.id
|
agent_id = coder_agent.example.id
|
||||||
workdir = "/home/coder/project"
|
workdir = "/home/coder/project"
|
||||||
model = "global.anthropic.claude-sonnet-4-5-20250929-v1:0"
|
model = "global.anthropic.claude-sonnet-4-5-20250929-v1:0"
|
||||||
@ -259,7 +259,7 @@ resource "coder_env" "google_application_credentials" {
|
|||||||
|
|
||||||
module "claude-code" {
|
module "claude-code" {
|
||||||
source = "registry.coder.com/coder/claude-code/coder"
|
source = "registry.coder.com/coder/claude-code/coder"
|
||||||
version = "3.3.0"
|
version = "3.3.1"
|
||||||
agent_id = coder_agent.example.id
|
agent_id = coder_agent.example.id
|
||||||
workdir = "/home/coder/project"
|
workdir = "/home/coder/project"
|
||||||
model = "claude-sonnet-4@20250514"
|
model = "claude-sonnet-4@20250514"
|
||||||
|
|||||||
@ -91,11 +91,6 @@ function report_tasks() {
|
|||||||
export CODER_MCP_APP_STATUS_SLUG="$ARG_MCP_APP_STATUS_SLUG"
|
export CODER_MCP_APP_STATUS_SLUG="$ARG_MCP_APP_STATUS_SLUG"
|
||||||
export CODER_MCP_AI_AGENTAPI_URL="http://localhost:3284"
|
export CODER_MCP_AI_AGENTAPI_URL="http://localhost:3284"
|
||||||
coder exp mcp configure claude-code "$ARG_WORKDIR"
|
coder exp mcp configure claude-code "$ARG_WORKDIR"
|
||||||
else
|
|
||||||
export CODER_MCP_APP_STATUS_SLUG=""
|
|
||||||
export CODER_MCP_AI_AGENTAPI_URL=""
|
|
||||||
echo "Configuring Claude Code with Coder MCP..."
|
|
||||||
coder exp mcp configure claude-code "$ARG_WORKDIR"
|
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -79,6 +79,9 @@ task_session_exists() {
|
|||||||
ARGS=()
|
ARGS=()
|
||||||
|
|
||||||
function start_agentapi() {
|
function start_agentapi() {
|
||||||
|
# For Task reporting
|
||||||
|
export CODER_MCP_ALLOWED_TOOLS="coder_report_task"
|
||||||
|
|
||||||
mkdir -p "$ARG_WORKDIR"
|
mkdir -p "$ARG_WORKDIR"
|
||||||
cd "$ARG_WORKDIR"
|
cd "$ARG_WORKDIR"
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user