Repository navigation
Replies: 2 comments
|
I asked a variation of this question in #1524 I'm 100% certain this is doable because I had hacked together a version that worked between my MCP Host/Clients and my MCP Server. I had my MCP Server use a context wrapper around tool calls. So when the server's call to msgraph triggered a 401 "please go to browser..." my wrapper would return that to my MCP Host/Client. That allowed my MCP Host/Client to surface that to the user and then I just had callbacks that landed back into my MCP Server. So it definitely works. Issue is I was side-stepping lots of FastMCP objects. It would be neat to know if you can do it more canonically. I though perhaps a combination of RemoteAuth in the server my trigger the right flows when FastMCP Client runs the server? But that handshake is opaque still. |
|
My issue was lack of Dynamic Client Registration (DCR) on the authorization server side. Upcoming version of FastMCP (2.12) will shoudl solve that by adding new class |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Hello. I wanted to integrate OAuth Client in my MCP Server, to authorize by authorization code with external server (which is both authorization server and resource server). Example of external server: https://www.medplum.com/docs/auth/methods/oauth-auth-code
While it's easy to implement it manually, MCP client (LLM desktop apps) can't open browser to log into external authorization server. I have read new docs about authentication, but it looks like its focused on implementing OAuth authorization servers instead of OAuth clients: https://gofastmcp.com/servers/auth/authentication.
Did I miss something or just oauth clients for mcp servers are not supported yet? Thanks in advance for the support :) @jlowin
All reactions