OAuth (MCP): Pre‑configured “static client” flow crashes because token_endpoint_auth_method is undefined #8481
Unanswered
matthisholleville
asked this question in
Troubleshooting
Replies: 2 comments 2 replies
-
We can't help resolve the issue without:
Also it seems that underlying feature may not even be supported by the model context protocol: |
Beta Was this translation helpful? Give feedback.
1 reply
-
Joining the discussion as we're facing the same problem. How to reproduce the error:
Let me know if more details are needed. |
Beta Was this translation helpful? Give feedback.
1 reply
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?
When I supply a fully‑configured OAuth block for an MCP server (i.e.
authorization_url
,token_url
,client_id
, optionallyclient_secret
) LibreChat should skip Dynamic Client Registration and open the authorization page directly.Instead, the backend throws a
TypeError
and the pop‑up never appears.Possible root cause :
In
packages/api/src/mcp/oauth/handler.ts (initiateOAuthFlow)
:token_endpoint_auth_method
is leftundefined
; later,startAuthorization()
in the SDK doesclientInformation.token_endpoint_auth_method?.includes('client_secret')
.Because optional chaining is not used in the shipped JS (compiled to
.includes
directly), we get theTypeError
.already read the documentation on this subject, which didn't help me
Version Information
ghcr.io/danny-avila/librechat-dev-api:2e1874e596017b5b54fff26d526a6502ec930861
Steps to Reproduce
Expected behaviour
LibreChat should:
What browsers are you seeing the problem on?
No response
Relevant log output
Screenshots
No response
Code of Conduct
Beta Was this translation helpful? Give feedback.
All reactions