MCP OAuth issuer mismatch: issuer must equal authorization_servers entry exactly
ChatGPT compares issuer strings without normalization. A trailing slash difference can break OAuth. See how to check and fix RFC 8414 issuer.
The issuer field in your authorization server metadata must be exactly equal to the entry you list in authorization_servers: same scheme, host, path and trailing slash. RFC 8414 requires it, and the rule says ChatGPT compares the strings without normalization.
What you see
- A scan reports
auth.issuer-mismatch: "issuer is X, authorization_servers lists Y". If the two differ only by a trailing slash the result is a warning; any other difference is a failure. - ChatGPT cannot complete OAuth. The user-facing message is not verified here.
Why it happens
Two places describe the same server and they drift. Your resource metadata says https://auth.acme.example, while the identity provider reports https://auth.acme.example/ (some providers always include the slash). Tenant paths, uppercase hostnames and http versus https in a proxy setup cause the same problem.
Check it yourself
curl -s https://mcp.acme.example/.well-known/oauth-protected-resource/mcp \
| jq -r '.authorization_servers[0]'
curl -s https://auth.acme.example/.well-known/oauth-authorization-server \
| jq -r '.issuer'
The two lines must be byte-for-byte identical. Also confirm the well-known URL you fetched is derived from that same issuer value.
Fix
Pick the string your identity provider actually emits in iss and use it in both places. If you control the metadata:
const ISSUER = "https://auth.acme.example"; // no trailing slash, used everywhere
const resourceMetadata = { resource: "https://mcp.acme.example/mcp", authorization_servers: [ISSUER] };
const asMetadata = { issuer: ISSUER, authorization_endpoint: `${ISSUER}/authorize`, token_endpoint: `${ISSUER}/token` };
If your provider hard-codes a trailing slash, put the slash in authorization_servers instead. Do not edit the provider's issuer by hand if tokens carry a different iss; the token iss claim must match too.
Verify
Re-run both commands and compare with diff <(cmd1) <(cmd2). Then decode a freshly issued token and check iss is the same string.
Which clients care
The rule lists ChatGPT and general MCP clients. The no-normalization claim comes from the rule's fix text and OpenAI's auth docs; other clients are not described.
Source
OpenAI authentication docs: https://developers.openai.com/plugins/build/auth
Run a free scan at https://mcpshipyard.com/scan to check every rule at once.
Check every rule at once
A free scan runs this check and the other 152 against your live URL.
Related fixes
- Add Client ID Metadata Documents (CIMD) next to Dynamic Client Registration
- API key or token in the MCP server URL (?key=): why it fails and how to fix
- ChatGPT MCP: dynamic client registration not supported (CIMD or DCR required)
- Claude says "Couldn't reach the MCP server": missing protected resource metadata