Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions registry/coder-labs/modules/auggie/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,12 @@ variable "agentapi_version" {
}
}

variable "agentapi_port" {
type = number
description = "The port used by AgentAPI."
default = 3284
}

variable "pre_install_script" {
type = string
description = "Custom script to run before installing Auggie."
Expand Down Expand Up @@ -194,6 +200,7 @@ module "agentapi" {
module_dir_name = local.module_dir_name
install_agentapi = var.install_agentapi
agentapi_version = var.agentapi_version
agentapi_port = var.agentapi_port
pre_install_script = var.pre_install_script
post_install_script = var.post_install_script
start_script = <<-EOT
Expand Down
7 changes: 7 additions & 0 deletions registry/coder-labs/modules/codex/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,12 @@ variable "agentapi_version" {
default = "v0.12.1"
}

variable "agentapi_port" {
type = number
description = "The port used by AgentAPI."
default = 3284
}

variable "codex_model" {
type = string
description = "The model for Codex to use. Defaults to gpt-5.3-codex."
Expand Down Expand Up @@ -254,6 +260,7 @@ module "agentapi" {
install_agentapi = var.install_agentapi
agentapi_subdomain = var.subdomain
agentapi_version = var.agentapi_version
agentapi_port = var.agentapi_port
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Propagate configurable AgentAPI port into module configs

Passing agentapi_port into the agentapi submodule here does not actually reconfigure the client-side MCP wiring, because the module install paths still hardcode http://localhost:3284 (for example: registry/coder-labs/modules/codex/scripts/install.sh:132, auggie/scripts/install.sh:88, gemini/main.tf:167 and gemini/scripts/install.sh:145, opencode/scripts/install.sh:97). With any non-default agentapi_port, these modules will still point tools at 3284, so task reporting/MCP calls hit the wrong endpoint or fail entirely, which breaks the multi-tool port-conflict fix this commit is trying to add.

Useful? React with 👍 / 👎.

enable_state_persistence = var.enable_state_persistence
pre_install_script = var.pre_install_script
post_install_script = var.post_install_script
Expand Down
7 changes: 7 additions & 0 deletions registry/coder-labs/modules/gemini/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,12 @@ variable "agentapi_version" {
default = "v0.10.0"
}

variable "agentapi_port" {
type = number
description = "The port used by AgentAPI."
default = 3284
}

variable "gemini_model" {
type = string
description = "The model to use for Gemini (e.g., gemini-2.5-pro)."
Expand Down Expand Up @@ -191,6 +197,7 @@ module "agentapi" {
module_dir_name = local.module_dir_name
install_agentapi = var.install_agentapi
agentapi_version = var.agentapi_version
agentapi_port = var.agentapi_port
pre_install_script = var.pre_install_script
post_install_script = var.post_install_script
install_script = <<-EOT
Expand Down
7 changes: 7 additions & 0 deletions registry/coder-labs/modules/opencode/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,12 @@ variable "agentapi_version" {
default = "v0.11.2"
}

variable "agentapi_port" {
type = number
description = "The port used by AgentAPI."
default = 3284
}

variable "ai_prompt" {
type = string
description = "Initial task prompt for OpenCode."
Expand Down Expand Up @@ -163,6 +169,7 @@ module "agentapi" {
module_dir_name = local.module_dir_name
install_agentapi = var.install_agentapi
agentapi_version = var.agentapi_version
agentapi_port = var.agentapi_port
pre_install_script = var.pre_install_script
post_install_script = var.post_install_script
start_script = <<-EOT
Expand Down
Loading