Repository navigation
OAuth Implementation in Multi-User Proxy Service Context - FastMCP Local Callback Server #774
Replies: 3 comments 2 replies
|
Have you had any luck uncovering a way to implement this @Shriram-11 ? I am trying to build something similar and running into the same issues |
|
@JeremyCraigMartinez @Shriram-11 @twratl Which is just to say it a) encounters every issue you can cover, and b) I'm not theorizing. The headline version - this required...
There was a lot of fiddling to get right because a) the MCP sdk has a lot of bugs around token refresh; b) you REALLY have to get familiar with |
|
Hi guys same issue here. Spend a whole day thinking I was missing something, but indeed the lib at the moment assumes one user. Following this thread to get the news from maintainers or to find some workaround. Question: by protocol, for a client supporting multiple users, should we have a different client/server connection per user? Or one connection allows communication scoping it by token? |
Uh oh!
There was an error while loading. Please reload this page.
First, I want to say that FastMCP is an excellent library with a really clean and intuitive API design! The abstractions and developer experience are top-notch.
Context & Use Case
I'm building a web service where multiple users can connect to various MCP servers through a single proxy instance, each with their own OAuth credentials. However, I've encountered some challenges with the current OAuth implementation when applied to this multi-user proxy architecture.
Current FastMCP OAuth Flow Issues in Proxy Context
1. Browser Opens on Proxy Machine
2. Callback Server Location
3. Token Storage Per Server, Not Per User
Multi-User Proxy Scenario
Questions
Is the current OAuth implementation primarily intended for single-user, co-located clients (desktop apps, CLI tools) where the FastMCP client and user share the same environment?
Are there plans to support multi-user proxy scenarios, or is this outside the intended scope of FastMCP?
Is OAuth the right approach for multi-user proxy services, or should we follow a different authentication pattern for this use case?
What would be the recommended approach for building an MCP proxy service that serves multiple users who need OAuth authentication?
Potential approaches I'm considering:
Would extending the current architecture to support user context be valuable, such as:
Could the local callback server approach be adapted for proxy scenarios by using proxy-hosted endpoints instead of
127.0.0.1?Any guidance on the intended design philosophy and recommended approaches for this type of multi-user service architecture would be greatly appreciated!
All reactions