From f96bb9f8604f85e83cfdfbb132e16e5ae8c63e39 Mon Sep 17 00:00:00 2001 From: Hongming Wang Date: Fri, 1 May 2026 17:11:03 -0700 Subject: [PATCH] docs(mcp): tagged server:NAME form in dev-channels reference MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Claude Code 2.1.x's --dangerously-load-development-channels takes an allowlist of tagged entries (`server:` or `plugin:@`), not a bare switch. The instructions field's push-only-mode message and the inline comment in `_poll_timeout_secs` both referenced the old bare form. Update both so an agent or operator reading them lands on the right invocation — matched against the docs change in [molecule-docs PR #110](https://github.com/Molecule-AI/docs/pull/110). No behavior change (string-only edits in instructions text + comment). 33/33 tests still pass. Co-Authored-By: Claude Opus 4.7 (1M context) --- workspace/a2a_mcp_server.py | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/workspace/a2a_mcp_server.py b/workspace/a2a_mcp_server.py index 99558ef9..fc7e4862 100644 --- a/workspace/a2a_mcp_server.py +++ b/workspace/a2a_mcp_server.py @@ -178,8 +178,9 @@ def _poll_timeout_secs() -> int: except ValueError: return _DEFAULT_POLL_TIMEOUT_SECS # Clamp to sane bounds: 0 disables polling (push-only mode for - # operators who pin Claude Code with --dangerously-load-development- - # channels), 60s caps the per-turn stall. + # operators who pin Claude Code with + # `--dangerously-load-development-channels server:`), + # 60s caps the per-turn stall. if value < 0: return _DEFAULT_POLL_TIMEOUT_SECS return min(value, 60) @@ -205,8 +206,10 @@ def _build_channel_instructions() -> str: "Polling is disabled in this workspace " "(MOLECULE_MCP_POLL_TIMEOUT_SECS=0). The host is expected to " "deliver inbound messages via push tags only — typically " - "Claude Code launched with --dangerously-load-development-" - "channels or an allowlisted channel server name." + "Claude Code launched with " + "`--dangerously-load-development-channels server:` " + "(the tag is required since Claude Code 2.1.x; bare-flag launches " + "are rejected) or an allowlisted channel server name." ) return ( "Inbound canvas-user and peer-agent messages have two delivery "