Skip to content

Fails to authenticate in cursor #3

Description

@ilikejames

Edit: Seems "Dynamic client registration" needs to be toggled on, however it still doesn't authenticate

Image
Screen.Recording.2025-08-02.at.11.04.50.mov

Hi, I've tried this is a variety of tools (e.g. Claude@0.12.55, Cursor@ 1.99.3) but can't get it to work.

Image

I add some extra logging. Seems like the first issue is there is no handler for /.well-known/oauth-protected-resource. But adding that and returing protectedResourceHandlerClerk doesn't work either.

HTTP server running at http://localhost:3000
HTTPS server running at https://localhost:3001
request:  POST /mcp
mcpAuth: req.headers.authorization = undefined
await auth.getToken() = null
request:  GET /.well-known/oauth-protected-resource
ANY request received: /.well-known/oauth-protected-resource
request:  GET /.well-known/oauth-authorization-server
request:  GET /mcp
ANY request received: /mcp

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions