part…
Building governance for MCP?
The gateway applies what the guide teaches: policies on discovery, invocation and authorisation.
The gateway applies what the guide teaches: policies on discovery, invocation and authorisation.
Elicitation is the standard way for a server to request information from the user through the client while processing a request. It has two modes: form (structured data in-band) and url (out-of-band interaction for sensitive data). In 2026-07-28 it always travels inside MRTR.
{ "_meta": { "io.modelcontextprotocol/clientCapabilities": { "elicitation": { "form": {}, "url": {} } } } }
"elicitation": {} is equivalent to form only. A client that declares it MUST support at least one mode. The server MUST NOT send unsupported modes.
Inside InputRequiredResult.inputRequests:
| Parameter | Required | Notes |
|---|---|---|
mode |
form (may be omitted) or url |
No mode → form (compatibility). |
message |
yes | Why it is being requested. |
requestedSchema |
form | Subset of JSON Schema. |
url |
url | Valid URL to open. |
requestedSchema is limited to a flat object with primitive properties:
minLength, maxLength, format ∈ email/uri/date/date-time, default)minimum, maximum, default)default)enum), with titles (oneOf of const+title); multi without titles (array with items.enum, minItems/maxItems), with titles (items.anyOf of const+title); with default.No nesting or arrays of objects. Clients that support default SHOULD pre-fill.
{ "method": "elicitation/create", "params": { "mode": "form", "message": "Please provide your contact information",
"requestedSchema": { "type": "object", "properties": {
"name": { "type": "string", "description": "Your full name" },
"email": { "type": "string", "format": "email" },
"age": { "type": "number", "minimum": 18 } }, "required": ["name", "email"] } } }
{ "method": "elicitation/create", "params": { "mode": "url", "url": "https://mcp.example.com/ui/set_api_key", "message": "Please provide your API key to continue." } }
The user interacts out of band; the client does not know the outcome. action: "accept" means that the user consented to open the URL, not that the interaction finished. On retry, the server decides from requestState (or its own state) whether it has already completed, and returns the result or a new input_required. Clients SHOULD offer manual controls to retry or cancel.
Important: URL mode is not for authorising the MCP client to the MCP server (that is Part 9); it is for the server to obtain secrets or third-party authorisation on the user's behalf without them passing through the client.
action |
Meaning | content |
|---|---|---|
accept |
Approved and submitted | form: data conforming to the schema; url: omitted |
decline |
Explicitly rejected | usually omitted |
cancel |
Closed without choosing (Esc, outside the dialog, load failure) | usually omitted |
Servers MUST handle decline/cancel and client failures.
Servers: MUST NOT request secrets (passwords, API keys, tokens, payment credentials) via form; MUST use url for that (profile data such as name or email is not prohibited). MUST bind the elicitation to the client and the user. In URL mode: MUST NOT include sensitive user data in the URL; MUST NOT provide pre-authenticated URLs; SHOULD NOT put clickable URLs in form fields; SHOULD use HTTPS. MUST verify that whoever opens the URL is the same user who originated it (anti-phishing: an attacker can forward the URL to a victim and end up with the victim's tokens bound to the attacker's session). MUST NOT trust client-supplied user identification without verifying it.
Clients: MUST make clear which server is asking; MUST offer decline/cancel; form: allow reviewing and editing; url: MUST NOT prefetch, MUST NOT open without consent, MUST display the full URL, MUST open it in a context that neither the client nor the LLM can inspect (e.g. SFSafariViewController yes, WKWebView no); SHOULD highlight the domain, warn about Punycode and not render clickable URLs outside the url field. SHOULD validate responses against the schema.
The server is a resource server towards the MCP client and an OAuth client towards a third party. Requirements: the third party's credentials MUST NOT transit through the MCP client; the server MUST NOT use the client's token against the third party (passthrough); the user authorises the server directly; the server stores and manages the tokens bound to the user's identity (it is stateful). Recommended pattern: a URL to a "connect" page on the server itself that verifies the user's session (sub) before redirecting to the third party's AS.
elicitationId, notifications/elicitation/complete and the -32042 error were removed: with MRTR the client learns the outcome on retry.
elicitation/create request and keep the requestState for the retry.1. Can a server request an API key via elicitation in form mode?
Secrets must never pass through the client or the LLM's context.
2. What does action: accept mean in url mode?
The actual outcome is learnt when the original request is retried.
3. Which of these schemas is valid in form mode?
Only flat objects with primitives and enums.
4. What must the server verify to prevent phishing in URL mode?
Otherwise, the victim's tokens end up bound to the attacker's session.