Skip to content

LBA REQ 062

github-actions[bot] edited this page Nov 19, 2026 · 2 revisions

LBA-REQ-062: MCP coordination tools transport selection -- Discussion default, net opt-in

Status

Proven

Area

Deployment / agentic (ADR-0042 -- MCP transport selection, off GitHub Discussions step 3)

Statement

The system shall let the extension's MCP coordination tools select the transport -- the provider passes the bus-transport config as env (COLLAB_TRANSPORT/COLLAB_NET_HOSTS/COLLAB_NET_LOG) and the stdio server routes poll_coordination_bus/post_coordination_note to net poll/net send under net (Discussion default) -- so the agent tool surface coordinates over TCP when configured, proven by a fail-closed gate.

Rationale

ADR-0041 migrated the extension's own commands to a selectable transport; the extension's MCP server -- a separate stdio process that cannot read vscode config directly -- still shelled the GitHub-Discussion poll/post. Step 3 migrates the agent tool surface too, via env passed at launch.

Acceptance Criteria

  • busEnvFromConfig (provider) maps busTransport/busNetHosts/busNetLog to COLLAB_TRANSPORT/ COLLAB_NET_HOSTS/COLLAB_NET_LOG, set on the launched McpStdioServerDefinition env; empty values omitted (Discussion default).
  • pollBusArgs/postNoteArgs (server) route poll_coordination_bus -> net poll --log and post_coordination_note -> net send --hosts under net, else the Discussion poll/post.
  • The tool schemas + the MCP tool doc are unchanged; tools stay soft-isError on a missing CLI.

Verification

Historical statement (no longer implemented)

Supersession

Change Guidance

busTransport/pollBusArgs/postNoteArgs in src/mcp/runBenchmarkActorMcpServer.ts; busEnvFromConfig + the env-passing provideMcpServerDefinitions in src/mcp/benchmarkActorMcpServerProvider.ts; unit-covered in test/mcp-server.mjs; gate mcp-net-transport. post-verdict.mjs + the release CI + the Discussion-transport removal are the NEXT increments (ADR-0042 Consequences). Authored under the singular-requirement directive (one shall).

TestID

T-062

CodeRef

src/mcp/runBenchmarkActorMcpServer.ts; src/mcp/benchmarkActorMcpServerProvider.ts; test/mcp-server.mjs; experiments/verify-local-gates.mjs

RTM Status

Proven

Clone this wiki locally