-
Notifications
You must be signed in to change notification settings - Fork 307
Support Authentication According to Current MCP Spec #10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support Authentication According to Current MCP Spec #10
Comments
you can pass env variables in the config something like {
"mcpServers": {
"server-name": {
"url": "http://localhost:8000/mcp",
"env": {
"API_KEY": "value"
}
}
}
} |
Hi @dexhunter , how to use this config? But when I launched the Claude Desktop App, it prompt a issue:
It seems like must have |
@YikaiHu currently sse transport is not supported at Claude Desktop, you can use it at the cursor or other platforms which support mcp sse transport |
@YikaiHu - as @dexhunter said, sse transport is not supported in Claude Desktop yet. We added in the README instruction on how to use a gateway and tested it on Windows and Mac |
How do I get access to the token when the mcp endpoint is invoked so I can validate it on the server before processing the request. FastApi allows dependencies=[Depends(authorize)] The call is intercepted and routed to that method where the token can be authorized for access. |
Just checking if I can see the comments on this issue - this is a test. |
You can and probably should use the builtin auth tools in FastAPI. You could also potentially using FastAPIs middleware to inject the token into all requests. This does not appear to be a fastapi_mcp issue, rather it's a fastapi configuration issue. |
When will this be supported? |
We are working on adding authentication support in the coming ~ week. So very soon. |
right in time, waiting for it! |
Hello, do you still plan to implement Bearer auth? A new MCP spec recommends OAuth 2.X |
@adeprezh No, we plan on implementing according to the spec, not Bearer auth specifically. |
Hey, great work on this,
I'm wondering how this will work with endpoints that require an authentication, through a token for example.
How would I connect with this server?
The text was updated successfully, but these errors were encountered: