Skip to content

Error following Auth0 for MCP tutorial -- python FastMCP #62

@abhijeethp

Description

@abhijeethp

Hey Team,

I tried to follow the python Auth0 for MCP tutorial as mentioned here -- https://github.com/auth0-samples/auth0-ai-samples/tree/main/auth-for-mcp/fastmcp-mcp-python

But ended up getting the below error from the npx inspector:
🌐 Opening browser...
New StreamableHttp connection request
Query parameters: {"url":"http://127.0.0.1:3001/mcp","transportType":"streamable-http"}
Created StreamableHttp client transport
Client <-> Proxy sessionId: 0f7c1e2f-e25d-4a9c-9080-aaeb8739fab3
Error from MCP server: StreamableHTTPError: Streamable HTTP error: Error POSTing to endpoint: {"error":"invalid_request","error_description":"Missing Authorization header"}
at StreamableHTTPClientTransport.send (file:///Users/abhijeethp/.npm/_npx/5a9d879542beca3a/node_modules/@modelcontextprotocol/sdk/dist/esm/client/streamableHttp.js:373:23)
at process.processTicksAndRejections (node:internal/process/task_queues:103:5) {
code: 400
}

Also in my MCP server i see this log :
INFO: 127.0.0.1:63842 - "POST /mcp HTTP/1.1" 400 Bad Request

Any help on getting past this error would be really apprecieted!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions