From 1ae8c4d5693f380dad26447bc64b6ac009f2d9a7 Mon Sep 17 00:00:00 2001 From: Cian Johnston Date: Tue, 19 Aug 2025 09:20:27 +0100 Subject: [PATCH 1/2] fix(dogfood/coder): fix env var for exp mcp configure claude-code --- dogfood/coder/main.tf | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/dogfood/coder/main.tf b/dogfood/coder/main.tf index e4ed874fd410f..64bd118e17638 100644 --- a/dogfood/coder/main.tf +++ b/dogfood/coder/main.tf @@ -810,10 +810,11 @@ resource "coder_env" "claude_task_prompt" { value = data.coder_parameter.ai_prompt.value } -resource "coder_env" "anthropic_api_key" { +# coder exp mcp configure claude-code reads from CLAUDE_API_KEY +resource "coder_env" "claude_api_key" { count = local.has_ai_prompt ? data.coder_workspace.me.start_count : 0 agent_id = coder_agent.dev.id - name = "ANTHROPIC_API_KEY" + name = "CLAUDE_API_KEY" value = var.anthropic_api_key } From d12474eda321ea016822de4aea28fea58a787682 Mon Sep 17 00:00:00 2001 From: Cian Johnston Date: Tue, 19 Aug 2025 09:20:38 +0100 Subject: [PATCH 2/2] bump claude-code module --- dogfood/coder/main.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dogfood/coder/main.tf b/dogfood/coder/main.tf index 64bd118e17638..81b0ba4f17b9f 100644 --- a/dogfood/coder/main.tf +++ b/dogfood/coder/main.tf @@ -399,7 +399,7 @@ module "devcontainers-cli" { module "claude-code" { count = local.has_ai_prompt ? data.coder_workspace.me.start_count : 0 source = "dev.registry.coder.com/coder/claude-code/coder" - version = "~>2.0" + version = "2.0.7" agent_id = coder_agent.dev.id folder = local.repo_dir install_claude_code = true