Skip to content

binding-mcp: offer MCP 2025-11-25 + negotiate elicitation.url capability to enable url-mode elicitation #1819

Description

@jfallows

Summary

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

  1. added theissue type on Jun 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions