MCP OAuth redirect URI: callback path #9101
-
Context
MCP side (works)
LibreChat MCP config (excerpt)
Azure App Registration
Reverse proxy (Azure Application Gateway Basic)
What happens
Docs (https://www.librechat.ai/docs/features/mcp#oauth-authentication) say: “Return Handling: LibreChat automatically processes the OAuth callback once you’ve authenticated.” I’m trying to confirm the expected callback path. Questions for maintainers
Repro steps
Thanks! Happy to share additional logs if helpful. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
I had the same issue and ended up having to go through the code. The url format is |
Beta Was this translation helpful? Give feedback.
-
@majdie40 @thefunny1983
|
Beta Was this translation helpful? Give feedback.
I had the same issue and ended up having to go through the code. The url format is
${baseUrl}/api/mcp/${serverName}/oauth/callback
so your redirect_uri should behttps://<my-host>/api/mcp/sharepoint-search/oauth/callback
. You can have a look inpackages/api/src/mcp/oauth/handler.ts
at line 428.