8000 OAuth Flow Fails: Expected contacts as Array, Received Null · Issue #543 · modelcontextprotocol/typescript-sdk · GitHub
[go: up one dir, main page]

Skip to content
OAuth Flow Fails: Expected contacts as Array, Received Null #543
Open
@its-nikhil

Description

@its-nikhil

Describe the bug
Hi guys. I am using self-hosted version of Ory Hydra as a OAuth2 server for my MCP server application. While debugging my application using MCP Inspector, I am facing the following issue:

Failed to start OAuth flow: [ { "code": "invalid_type", "expected": "array", "received": "null", "path": [ "contacts" ], "message": "Expected array, received null" } ]

To Reproduce
Start Ory Hydra: https://www.ory.sh/docs/hydra/self-hosted/quickstart

curl -X POST 'http://localhost:4445/admin/clients' \
  --header 'Content-Type: application/json' \
  --data-raw '{
  "redirect_uris": [
    "http://127.0.0.1:6274/oauth/callback/debug"
  ],
  "token_endpoint_auth_method": "none",
  "grant_types": [
    "authorization_code",
    "refresh_token"
  ],
  "response_types": [
    "code"
  ],
  "client_name": "MCP Inspector",
  "client_uri": "https://github.com/modelcontextprotocol/inspector"
}'

Response includes contacts: null

Additional context
This is the following code:

Expected behavior
I am not sure if this is an error in Ory Hydra side of the system or is it an error in Schema defined in MCP Typescript SDK where nullable contacts should be supported.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0