-
Notifications
You must be signed in to change notification settings - Fork 1.7k
mcpAuthRouter ignores path of baseUrl #600
Copy link
Copy link
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Example code
authRouter.use(mcpAuthRouter({
baseUrl: new URL('https://example.com/auth'),
// ...
}));
Expected behavior
OAuth endpoints should start with https://example.com/auth/ (i.e. https://example.com/auth/authorize).
However, createOAuthMetadata uses absolute paths for endpoints, which causes the /auth/ prefix to be omitted.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working