RAGFlow MCP server not accepting user API Key #8916
-
What happened?I set up a RAGFLow MCP server in host mode: https://ragflow.io/docs/dev/launch_mcp_server I can confirm it works properly using curl from the librechat server.
This is not the actual API key but it's the same length and format. I configured the MCP server like this in librechat.yaml:
The MCP server shows up and I can enter the key in the UI but then when I hit Save button it switches to Saving... and it'S greyed out and it remains there. Looking at the Librechat logs I only see this that I assume is related:
Version Informationsudo docker images | grep librechat Steps to Reproduce
What browsers are you seeing the problem on?No response Relevant log output2025-08-07 10:36:00 info: [MCP Reinitialize] Reinitializing server: ragflow
2025-08-07 10:36:00 info: [MCP Reinitialize] Disconnected existing server: ragflow
2025-08-07 10:36:00 info: [MCP][User: 68122240d5bdaf39458ca507][ragflow] Establishing new connection
2025-08-07 10:36:01 info: [MCP][User: 68122240d5bdaf39458ca507][ragflow] Access token missing
2025-08-07 10:36:01 info: [MCP][User: 68122240d5bdaf39458ca507][ragflow] Access token missing and no refresh token available
2025-08-07 10:36:01 info: [MCP][User: 68122240d5bdaf39458ca507][ragflow] Creating SSE transport: https://ragflow.virtuos.uni-osnabrueck.de/sse
2025-08-07 10:36:01 info: [MCP][User: 68122240d5bdaf39458ca507][ragflow] Connection successfully established
2025-08-07 10:36:01 info: [MCP Reinitialize] Successfully established connection for ragflow
2025-08-07 10:36:07 error: [updateUserPluginAuth] Invalid key length
2025-08-07 10:36:07 error: [authService] Invalid key length
2025-08-07 10:36:07 error: [updateUserPluginsController] Invalid status code: undefined ScreenshotsNo response Code of Conduct
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
I am having a bit of trouble following your steps to install ragflow in order to replicate and diagnose your issue, however in the meantime, can you confirm that customUserVars are working when you save them for any other MCP servers? I believe the error you are getting would only come up if the CREDS_KEY field in your .env was malformed / unset. Can you confirm that it is populated properly with a 32-byte hexadecimal value? |
Beta Was this translation helpful? Give feedback.
I am having a bit of trouble following your steps to install ragflow in order to replicate and diagnose your issue, however in the meantime, can you confirm that customUserVars are working when you save them for any other MCP servers? I believe the error you are getting would only come up if the CREDS_KEY field in your .env was malformed / unset. Can you confirm that it is populated properly with a 32-byte hexadecimal value?