Skip to content

401 unauthorized on simple-auth example #731

Open
@luarss

Description

@luarss

Describe the bug
Unable to get access to MCP server

To Reproduce
Followed all instructions in https://github.com/modelcontextprotocol/python-sdk/tree/main/examples/servers/simple-auth

Expected behavior
Using mcp-inspector, gotten 401 error when connecting via http://localhost:8000/sse

SSE transport: url=http://localhost:8000/sse, headers=Accept
Received 401 Unauthorized from MCP server: SSE error: Non-200 status code (401)
Image

Please let me know if any information is needed

Metadata

Metadata

Assignees

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