MCP OAuth failed to start #9157
Unanswered
matthisholleville
asked this question in
Troubleshooting
Replies: 1 comment 7 replies
-
Try adding ...
mcpServers:
mcp:
type: streamable-http
url: http://mcp.mcp.svc.cluster.local/mcp
timeout: 60000
headers:
X-User-ID: "{{LIBRECHAT_USER_ID}}"
X-User-Email: "{{LIBRECHAT_USER_EMAIL}}"
X-User-Role: "{{LIBRECHAT_USER_ROLE}}"
X-MCP-AUTH: "${MCP_AUTH_VALUE}"
# add this:
requiresOAuth: true
oauth:
clientId: "${MCP_OAUTH_CLIENT_ID}"
clientSecret: "${MCP_OAUTH_CLIENT_SECRET}"
authorization_url: "https://okta.com/oauth2/v1/authorize"
token_url: "https://okta.com/oauth2/v1/token"
redirect_uri: "http://mcp.mcp.svc.cluster.local/oauth/callback"
scopes: "openid profile email"
... |
Beta Was this translation helpful? Give feedback.
7 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.
-
What happened?
I’m not exactly sure what’s happening, but I have the impression that Librechat does not start if I specify an MCP server with OAuth configured from an environment variable.
Version Information
a6fd32a15aa1e7c511858c215fa31af9dedfdfc1
Steps to Reproduce
What browsers are you seeing the problem on?
Chrome
Relevant log output
Screenshots
No response
Code of Conduct
Beta Was this translation helpful? Give feedback.
All reactions