Skip to content

OAuth: issuer mismatch (RFC 9207) — resource metadata points to mcp.monid.ai but token issuer is clerk.app.monid.ai #1

Description

@FvanW

Summary

MCP client OAuth login against the Monid MCP server fails with an RFC 9207 issuer-mismatch error. The authorization server (Clerk) issues tokens from clerk.app.monid.ai, but the MCP resource metadata for https://mcp.monid.ai/v1 declares/expects issuer https://mcp.monid.ai.

Error

Couldn't complete authentication for "monid": Issuer mismatch in authorization response (RFC 9207): expected "https://mcp.monid.ai", received "https://clerk.app.monid.ai"

Client

Claude Code CLI, claude mcp login monid, HTTP transport pointed at https://mcp.monid.ai/v1.

Expected

The iss claim returned by the authorization server should match the issuer declared in the MCP server's protected-resource / authorization-server metadata (per RFC 9207 + the MCP OAuth spec), so RFC 9207-compliant clients can complete the flow.

Suggested fix

Either configure Clerk to issue tokens under the mcp.monid.ai issuer (e.g. via a custom domain/proxy), or update the resource metadata advertised at mcp.monid.ai to declare the actual Clerk issuer (clerk.app.monid.ai).

Impact

Any RFC 9207-strict MCP client (including Claude Code) cannot authenticate to the Monid MCP server at all.

Activity

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions