Agent request with key error when MCP is selected for some endpoints (LiteLLM) #7644
Unanswered
psychomelet
asked this question in
Troubleshooting
Replies: 0 comments
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.
Uh oh!
There was an error while loading. Please reload this page.
-
What happened?
All LiteLLM endpoints should function consistently regardless of MCP status.
Version Information
ghcr.io/danny-avila/librechat-dev latest 69836bf6d276 14 hours ago 1.15 GB
LibreChat latest version, using MCPs, models served by LiteLLM Proxy.
Steps to Reproduce
When MCP is enabled, certain LiteLLM endpoints (e.g.,
grok3
,gemini pro 2.5
,gemini flash 2.5
) fail with key errors or unexpected behavior. These endpoints work correctly when MCP is unchecked in ui.DeepSeek / OpenAI endpoints works in all cases.
Keys all generated by LiteLLM, but given that the error gone if keep MCP unchecked from UI, the key shall be correct.
What browsers are you seeing the problem on?
No response
Relevant log output
For example with grok3, errored about incorrect API key (even though the key is correct because without MCP it works).
Also with gemini pro 2.5 and gemini flash 2.5, errored about no_user_key and Google censor/filter (but again, without MCP it works).
Code of Conduct
Beta Was this translation helpful? Give feedback.
All reactions