Old MCP Server config remains somewhere #9307
Replies: 3 comments 13 replies
-
How are you uninstalling the MCP server? Are you restarting the server after doing so? Are you using an agent? Are you not able to use any MCP Servers unless you remove reference of the "uninstalled" one? In any case, you should be able to remove MCP servers from agents after this update: #9237 Will take other edge cases into account. |
Beta Was this translation helpful? Give feedback.
-
Hi Manuel, I wasn't able to replicate the errors / behavior you are experiencing following your reproduction steps. Wasn't able to test with the Microsoft Word server because of an issue on Smithery's side, but I used Desktop-Commander installed via the auto-generated Smithery script, ran a basic command successfully, removed the MCP server (both from the config manually, and through the deletion button in the agent panel on separate test runs to disambiguate the possible failure paths), and then restarted LC and ran a different MCP server in the same conversation and the tool calls worked properly. Will try to test more pending your answer to Danny's questions, those answers should help make it easier to diagnose what is going on. |
Beta Was this translation helpful? Give feedback.
-
omfg, the amount of hours I just spent on this lol There needs to be a big, like HUGE warning on https://www.librechat.ai/docs/configuration/redis that if you are making to
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
What happened?
Hi,
I'm running librechat-dev 0.8.0-rc3.
There is an issue with former configured MCP servers. I used to test a config via Smithery (hosted by Smithery), namely Office-Word-MCP-Server, which has been completely removed. - I searched through all files and the MongoDB. The MCP Server and tool are not named anywhere. Goes without saying I started with a clean cache.
Now if I call any other MCP server tool it gets weird. The LLM seems to only process the agent's system prompt and answers about it, or does a general greeting, or saying "you did not ask a question". It is ignoring the mcp tool, that actually received a good, working response.
Now the LibreChat-API-Log says:
2025-08-27 11:48:21 warn: [MCP][Office-Word-MCP-Server][find_text_in_document] Tool definition not found, cannot create tool. 2025-08-27 11:48:21 warn: [MCP][Office-Word-MCP-Server][convert_to_pdf] Requested tool not found in available tools, re-initializing MCP server. 2025-08-27 11:48:21 info: [MCP][User: 67c8320ee7d4a33c84721e23][Office-Word-MCP-Server] Establishing new connection 2025-08-27 11:48:21 info: [MCP Reinitialize] getUserConnection threw error: MCP error -32600: [MCP][User: 67c8320ee7d4a33c84721e23] Configuration for server "Office-Word-MCP-Server" not found. 2025-08-27 11:48:21 info: [MCP Reinitialize] OAuth state - oauthRequired: false, oauthUrl: null 2025-08-27 11:48:21 error: [MCP Reinitialize] Error initializing MCP server Office-Word-MCP-Server for user: MCP error -32600: [MCP][User: 67c8320ee7d4a33c84721e23] Configuration for server "Office-Word-MCP-Server" not found. 2025-08-27 11:48:21 warn: [MCP][Office-Word-MCP-Server][convert_to_pdf] Tool definition not found, cannot create tool.
I only fixed it by cleansing all occurences of Office-Word-MCP-Server from the MongoDB.
Version Information
ghcr.io/danny-avila/librechat-rag-api-dev-lite latest bb5e7a783224 5 hours ago 1.67GB
ghcr.io/danny-avila/librechat-rag-api-dev-lite 0da78c464c9a 29 hours ago 1.67GB
ghcr.io/danny-avila/librechat-dev-api latest 4aac21e12811 36 hours ago 1.26GB
ghcr.io/danny-avila/librechat-dev-api 9eabad3954ac 2 weeks ago 1.26GB
ghcr.io/danny-avila/librechat-dev latest bd240b2fc036 4 months ago 919MB
ghcr.io/danny-avila/librechat-rag-api-dev latest 30f6b5ee7c61 4 months ago 7.81GB
ghcr.io/danny-avila/librechat-dev 782f80a8c1e4 5 months ago 888MB
ghcr.io/danny-avila/librechat-rag-api-dev 9a0541a57bb1 8 months ago 7.65GB
ghcr.io/danny-avila/librechat-rag-api-dev-lite 095db2c2ff3b 8 months ago 1.29GB
Steps to Reproduce
What browsers are you seeing the problem on?
Firefox
Relevant log output
Screenshots
Code of Conduct
Beta Was this translation helpful? Give feedback.
All reactions