CIMD in production: what MCP clients actually send
Brian Flad
Published · 11 min read
TL;DR
We turned on Client ID Metadata Document (CIMD) support for every MCP sign-in on August 18, 2026, and watched what real clients sent. A major coding CLI shipped a new client ID format the same day, and our catalog entry for it had never matched the client's real traffic. A same-origin redirect rule we added for safety rejected a valid client. Users pasted the MCP server's own URL as a client ID. The allowlist of known clients needed a code change for every new client. Each of these changed how our authorization server handles CIMD.
With CIMD, an MCP client skips registration. It presents an HTTPS URL as its OAuth client ID, and the authorization server fetches a JSON document from that URL to learn the client's name and redirect URIs. The 2026-07-28 MCP specification says servers SHOULD support it and deprecates Dynamic Client Registration (DCR). We made the case for CIMD over DCR in our CIMD vs DCR comparison.
The specification describes a well-behaved client. Fifteen weeks of production traffic showed us clients nobody had documented, and a few of our own rules that were stricter than the draft and broke real users.

Why roll out CIMD in a measure-only mode first?
We shipped CIMD admission in a reporting mode. Every spec-valid document was admitted, and for each sign-in the server also computed what an allowlist would have decided and recorded that verdict. In the first week, the log showed 423 sign-ins that matched a known client exactly and two that an allowlist would have refused.
Measuring first protects against a client behavior the specification doesn't spell out. An MCP client chooses between CIMD and DCR once, when it reads the server's metadata. If /authorize then rejects its client ID, the client doesn't go back and try registering. The user gets a failed sign-in and has no setting they can change to recover. For any client missing from an allowlist, enforcement means a hard outage.
How do MCP clients format their CIMD client IDs?
Both sign-ins the allowlist would have refused came from Codex CLI. Our catalog admitted ChatGPT connectors through the pattern https://chatgpt.com/oauth/*/client.json, where the wildcard matches exactly one path segment, and listed Codex at https://chatgpt.com/oauth/codex/client.json. Codex CLI 0.148.0, released on August 18, added CIMD support with a callback-specific client metadata URL (openai/codex#38089). When an authorization server doesn't identify itself in its authorization responses, Codex binds the OAuth callback to the server by hashing the full server URL into a short id, and the client ID becomes https://chatgpt.com/oauth/codex/{id}/client.json. The first of those reached us on August 19. That shape has two path segments, so the pattern treated it as unknown, exactly as written.
Tracing the history turned up a second problem. Our catalog listed Codex at a URL no release had sent. We had written that entry from vendor documentation in July, before Codex supported CIMD at all, so there was no traffic to check it against. Codex does serve a document at the bare URL, and 0.148.0 uses it when the authorization server identifies itself, but the sign-ins reaching us carried the per-server shape. A pattern for that shape shipped the next day.
Verifying the fix exposed what a pattern actually trusts. The chatgpt.com endpoint serves a valid, self-referential metadata document for any well-formed {id}. Hash the URL of a server OpenAI has never seen and a document still comes back, so the existence of a document at a URL proves nothing. Trust rests on the origin and on how tightly the pattern fits the vendor's real URL scheme.
Other clients use other schemes. Vercel's connector platform mints a client ID per connector and needed a wildcard entry of its own. Clients built on an OAuth integrations platform get documents hosted on that platform's domain, minted per integration, which no catalog entry can enumerate.
Should a CIMD server require redirect URIs on the client's own origin?
Our first validator required every non-loopback redirect URI in a document to share an origin with the client ID URL. The CIMD draft permits servers to add that restriction in section 10.2 without requiring it, and it looked like free protection.
In production it rejected a valid client. That client's document was hosted by Nango, an OAuth integrations platform, at api.nango.dev, and its redirect URI pointed at the client's own API domain. The rest of the document passed every check.
Before removing the rule, we surveyed other implementations in August. Cloudflare's workers-oauth-provider, Stytch, and Clerk compare the requested redirect URI against the document's list exactly and apply no origin rule. Keycloak ships a same-domain restriction as a toggle, and its MCP guide tells you to switch it off for VS Code. We dropped the binding on August 24 and kept exact-match checking at authorization time. Non-loopback redirects now have to use HTTPS, and a counter tracks documents with cross-origin redirects so a known vendor changing its document shows up in monitoring.
The cost is that a document author can direct authorization codes to any exact URI they publish. The MCP specification answers that with disclosure, requiring the consent screen to show the redirect host so the user can see where the code is going.
What errors does a misconfigured CIMD client cause?
Twice in production, someone pasted the MCP server's own URL into a client's OAuth client ID field. Our server treated it as a metadata URL, fetched it, reached its own MCP endpoint, received a 405, and answered /authorize with a retryable 503 temporarily_unavailable. The response described an outage when the real problem was one settings field.
The server now inspects the client ID before admission and before any fetch. If it names the MCP endpoint, the issuer, or either metadata URL on the origin the request arrived on, /authorize returns 401 invalid_client with a hint to check the client ID setting. A misleading outage became an error the user can fix.
How long should an authorization server cache a CIMD document?
We honor Cache-Control: max-age and Expires, fall back to one hour when neither header is present, and clamp the result between five minutes and 24 hours. The floor stops a buggy host from forcing a fetch on every sign-in, and the ceiling stops one from pinning a document indefinitely. We ignore no-store and no-cache on these documents, a deliberate departure from the draft's advice to respect cache headers. Section 6.2 has servers enforce a maximum cache duration regardless of the response's directives, and we extend the same reasoning to a floor for hosts that disable caching entirely. Refreshes use If-None-Match, so an unchanged document costs a 304.
Errors are never cached. A failed fetch fails the sign-in, following the draft's guidance that a fetch failure should abort the authorization request.
One decision is deliberately left open. When a document changes, for example with new redirect URIs, consents users already gave stay valid. The refreshed redirect list still gates every new authorization, and we're watching telemetry for a reason to require fresh consent instead.
How do you keep a CIMD client allowlist current?
The catalog of known clients began as a list in code, so each new client meant a ticket, a change, a review, and a deploy. Two clients, Hermes Agent and Skydive, were added in late August only because the would-deny signal surfaced them. Lovable, Google Antigravity, and opencode each needed the same round trip later.
That pace settled the default. In late August, we moved the default admission mode from reporting to open, not to enforcement. An allowlist still growing from live traffic shouldn't be switched on for operators who never asked for one. Open mode still computes and records the allowlist verdict, and a monitor fires on any client no rule covers, so gaps keep surfacing. Enforcement is now a choice each operator makes for their own server.
The catalog is moving into a database with a review queue built from those not-listed sightings, showing how many organizations use each unknown client. Once that ships, approving a new client will be a data change that takes effect within a minute.
What is still unsolved?
DCR is still on. Turning it off per server waits on a full analysis of which production clients still depend on it.
A metadata URL that returns an invalid response still produces a retryable 503 instead of a permanent error, and fixing that is on our list.
Localhost impersonation remains open across the ecosystem. CIMD identifies the client software, not the process holding the loopback port, and the MCP specification treats a full fix as out of scope.
How Speakeasy runs CIMD admission
The authorization server in the Speakeasy AI Control Plane sits in front of every MCP server the platform hosts and every third-party server it proxies, and it runs each policy above. Admission is set per server. An open server admits any spec-valid document and still records which clients a stricter policy would have refused. A known-clients server admits the catalog Speakeasy verifies plus any document URLs your organization adds. A server with CIMD turned off sends clients to DCR instead. Admins can read and change that setting in the dashboard or through the Platform MCP, so an agent can report which clients a server accepts.
CIMD clients appear in the dashboard separately from DCR registrations, each with its metadata URL and the time its document was last fetched. When the control plane connects onward to an upstream server whose authorization server accepts CIMD, it presents a metadata document of its own, so the upstream sees one durable client identity instead of a fresh registration.
The catalog that drives admission also identifies AI clients for shadow AI monitoring, so a client that shows up in sign-ins and on employee devices resolves to the same product name in both places. Every tool call that follows a sign-in passes through the MCP gateway carrying the user and the client, gets checked against policy, and lands in the audit log, which is where a durable client identity pays off.