handsome-furniture-42144
05/24/2025, 11:12 AMFailed to start OAuth flow: [ { "code": "invalid_type", "expected": "array", "received": "null", "path": [ "contacts" ], "message": "Expected array, received null" } ]
POST <http://localhost:4445/admin/clients>
Response includes contacts: null
This is the following code:
1. Metadata API call: https://github.com/modelcontextprotocol/inspector/blob/ec24f7bbbf1535084c5f03157c80eceb4e79278d/client/src/lib/auth.ts#L22-L31
2. MCP Typescript SDK schema: https://github.com/modelcontextprotocol/typescript-sdk/blob/0c4b3082751e1ec387a2f8ddbfe6a8c882d2ce0f/src/shared/auth.ts#L94
Now I wanted your help in discussing if this is an error in Ory Hydra side of the system or is it an error in MCP Typescript SDK implementation?handsome-furniture-42144
05/24/2025, 11:32 AMmagnificent-energy-493
early-magician-18981
05/28/2025, 4:04 PMearly-magician-18981
05/28/2025, 4:05 PMearly-magician-18981
05/28/2025, 4:06 PMhandsome-furniture-42144
05/29/2025, 10:18 AMhandsome-furniture-42144
05/29/2025, 10:55 AMMCP Inspector
seems like cheating 😛
I expect most of the MCP clients would be using modelcontextprotocol/typescript-sdk
which does not handle null
in it's zod schemahandsome-furniture-42144
05/29/2025, 10:55 AMscope: "ory.admin"
is this necessary?handsome-furniture-42144
05/29/2025, 12:16 PMissuerUrl: new URL(oryProjectUrl),
baseUrl: new URL(mcpBaseUrl),
should have been
issuerUrl: new URL(mcpBaseUrl),
baseUrl: new URL(oryProjectUrl),
handsome-furniture-42144
05/29/2025, 12:17 PM/callback
consent server and how to change itearly-magician-18981
05/29/2025, 2:53 PMearly-magician-18981
05/29/2025, 4:02 PMearly-magician-18981
05/29/2025, 4:03 PMhandsome-furniture-42144
05/29/2025, 4:06 PMearly-magician-18981
05/29/2025, 4:08 PMhandsome-furniture-42144
05/29/2025, 4:09 PMearly-magician-18981
05/29/2025, 4:09 PMearly-magician-18981
05/29/2025, 4:13 PMearly-magician-18981
05/29/2025, 4:13 PMhandsome-furniture-42144
05/29/2025, 4:14 PMearly-magician-18981
05/29/2025, 4:16 PMhandsome-furniture-42144
05/29/2025, 4:18 PMauthorization_endpoint: new URL(authorization_endpoint, baseUrl || issuer).href
https://github.com/modelcontextprotocol/typescript-sdk/blob/main/src/server/auth/router.ts#L85early-magician-18981
05/29/2025, 4:23 PMearly-magician-18981
05/29/2025, 4:30 PMprovider
to verifier
. It also works for me just fine as is with the example using Ory Network. I will have time much later today to try Hydra again to see if there is a diff.