OAuth Implementation in Multi-User Proxy Service Context - FastMCP Local Callback Server #774
Unanswered
Shriram-11
asked this question in
Q&A
Replies: 1 comment
-
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 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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!
Beta Was this translation helpful? Give feedback.
All reactions