You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Enable url-mode elicitation (SEP-1036) to flow through the mcp proxy by (1) offering MCP
protocol 2025-11-25 (negotiating down), and (2) negotiating + propagating the elicitation.url client capability so the south client advertises it to upstreams only
when the originating north client supports it.
Background
Today the south client offers 2025-06-18 with capabilities:{}, and the north server
hardcodes 2025-06-18 in its initialize response (no north-side negotiation). A
spec-compliant url-elicitation upstream gates url-mode on capabilities.elicitation.url,
which Zilla never advertises — so url-mode elicitation never fires against a real upstream
(binding-mcp already relays it, but only k3po scripts that emit it unconditionally exercise
it today).
Changes
Offer 2025-11-25 as the latest supported; negotiate down per peer. The north server
negotiates with the north client (reads the offered protocolVersion, responds with the
negotiated value) instead of hardcoding 2025-06-18. (South-side negotiation already
exists; version stays per-side — not on McpBeginEx.)
mcp.idl: add CLIENT_ELICITATION_FORM(512) and CLIENT_ELICITATION_URL(1024) to McpCapabilities — carried on the existing McpLifecycleBeginEx.capabilities uint16 (no
new field).
North server parses the north client's capabilities.elicitation.{form,url} into the
bits (bare elicitation ≡ form, per spec back-compat).
Proxy propagates the bits to the south client lifecycle.
South client serializes capabilities back to JSON for the upstream — emits elicitation:{url:{}} only when CLIENT_ELICITATION_URL is set (was hardcoded {}); the cache hydrater advertises no elicitation.
Gate url-mode per-side: south advertises url only when the north client supports it;
north relays url only when the north client negotiated 2025-11-25 + url.
Tests
Extend lifecycle.initialize.version → offer 2025-11-25, negotiate down to 2025-06-18
for an older peer.
Capability propagation: north elicitation.url → south advertises elicitation.url;
north form-only → south no url; hydrater → no elicitation.
Gating: no url-mode elicitation when the peer lacks url / version < 2025-11-25.
Notes
Independent binding-mcp enablement, off develop (after the example-branch extractions #1812 / #1814 / #1816 / #1818). Precursor to wiring the mcp.proxy url-elicitation demo on
the rebased example branch (#1793).
Activity