Skip to content

mcpAuthRouter ignores path of baseUrl #600

Open
@aadamovskiy

Description

@aadamovskiy

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.

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