chore(mcp): drop unused module-level _CHANNEL_INSTRUCTIONS
The frozen copy was a self-justification — the comment claimed "tests + tooling rely on import-time identity" but no test or tooling code path actually references the binding. _build_initialize_result() calls _build_channel_instructions() fresh per call so env changes take effect, which is the documented runtime contract. github-code-quality flagged it; resolving the unused-variable thread so the staging branch protection's all-conversations-resolved gate clears. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
ea206043d8
commit
c61a6ff9bd
@ -248,13 +248,6 @@ def _build_channel_instructions() -> str:
|
||||
)
|
||||
|
||||
|
||||
# Module-level frozen copy preserves the import-time-stable identity
|
||||
# tests + tooling rely on (e.g. wheel-smoke import probes). The function
|
||||
# above is the source of truth at runtime — `_build_initialize_result`
|
||||
# always calls it fresh so env changes between launches take effect.
|
||||
_CHANNEL_INSTRUCTIONS = _build_channel_instructions()
|
||||
|
||||
|
||||
def _build_initialize_result() -> dict:
|
||||
"""MCP initialize handshake result.
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user