fix(mcplocal): wire-form tool names in gate and favourite-index prose #125

Merged
michal merged 1 commits from fix/wire-safe-prose into main 2026-08-25 20:59:01 +00:00
Owner

Follow-up to #124. Gate tool inventories (initialize + begin_session) and the favourite-index instruction now name tools in the wire form the client can actually call (server_tool, favourite_/all_ prefixes) instead of the canonical slash form. Slash names still route (codec passthrough), so this is prose-only. 792/792 tests green; the two router-gate assertions updated to expect wire form.

🤖 Generated with Claude Code

https://claude.ai/code/session_01JaFvfHrQyUKCGv6o3N2Wir

Follow-up to #124. Gate tool inventories (initialize + begin_session) and the favourite-index instruction now name tools in the wire form the client can actually call (`server_tool`, `favourite_`/`all_` prefixes) instead of the canonical slash form. Slash names still route (codec passthrough), so this is prose-only. 792/792 tests green; the two router-gate assertions updated to expect wire form. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01JaFvfHrQyUKCGv6o3N2Wir
michal added 1 commit 2026-08-25 20:58:54 +00:00
fix(mcplocal): name tools in wire form in gate and favourite-index prose
Some checks failed
CI/CD / typecheck (pull_request) Successful in 1m24s
CI/CD / lint (pull_request) Successful in 2m34s
CI/CD / test (pull_request) Successful in 1m44s
CI/CD / smoke (pull_request) Failing after 3m18s
CI/CD / build (pull_request) Successful in 2m30s
CI/CD / publish (pull_request) Has been skipped
c014fcdd82
Follow-up to #124: the boundary WireNameCodec serves underscore-joined
names, but the gate plugin's tool inventories (initialize instructions and
begin_session response) still listed canonical `server/tool`, and the
favourite-index instruction told the model to prefer `favourite/<tool>` —
prose naming functions the model cannot call. Inventories now run through
sanitizeWireName and the instruction describes the favourite_/all_ prefixes.

Cosmetic for routing (slash names still pass through the codec) but
load-bearing for tool selection: models copy names out of prose.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JaFvfHrQyUKCGv6o3N2Wir
michal merged commit bbd31883e8 into main 2026-08-25 20:59:01 +00:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: michal/mcpctl#125