[GH-ISSUE #4613] [BUG]: AnythingLLM 1.9.0 doesn't answer after successfully receiving mcp tool response #2937

Closed
opened 2026-02-22 18:31:55 -05:00 by yindo · 6 comments
Owner

Originally created by @xuanswe on GitHub (Nov 5, 2025).
Original GitHub issue: https://github.com/Mintplex-Labs/anything-llm/issues/4613

How are you running AnythingLLM?

AnythingLLM desktop app 1.9.0.

What happened?

Actual

Image

AnythingLLM agent doesn't respond, only showing "MCP server: spring-ai-mcp:listFiles completed successfully"

I need to type /exit to stop it.

Expectation (AnythingLLM 1.9.0 should respond the same as AnythingLLM 1.8.5)

Image

Are there known steps to reproduce?

Assuming we have an MCP server with a tool: spring-ai-mcp:listFiles.

The tool responds a json string similar to this:

{"success":true,"count":1,"files":[{"filename":"20251027_145333_Test-pdf_4.pdf","size":92680,"sizeFormatted":"90.51 KB","contentType":"application/pdf","lastModified":"2025-11-05T13:06:10.890596500Z","downloadUrl":"http://localhost:8081/api/files/download/20251027_145333_Test-pdf_4.pdf"}],"error":null}

Workaround

Downgrade to AnythingLLM 1.8.5

Originally created by @xuanswe on GitHub (Nov 5, 2025). Original GitHub issue: https://github.com/Mintplex-Labs/anything-llm/issues/4613 ### How are you running AnythingLLM? AnythingLLM desktop app 1.9.0. ### What happened? #### Actual <img width="852" height="296" alt="Image" src="https://github.com/user-attachments/assets/0311eb21-c19e-4d28-bce9-0848cdc491e2" /> AnythingLLM agent doesn't respond, only showing "MCP server: spring-ai-mcp:listFiles completed successfully" I need to type `/exit` to stop it. #### Expectation (AnythingLLM 1.9.0 should respond the same as AnythingLLM 1.8.5) <img width="833" height="554" alt="Image" src="https://github.com/user-attachments/assets/e303a59d-e4ee-483d-803f-24c52326e29f" /> ### Are there known steps to reproduce? Assuming we have an MCP server with a tool: spring-ai-mcp:listFiles. The tool responds a json string similar to this: ``` {"success":true,"count":1,"files":[{"filename":"20251027_145333_Test-pdf_4.pdf","size":92680,"sizeFormatted":"90.51 KB","contentType":"application/pdf","lastModified":"2025-11-05T13:06:10.890596500Z","downloadUrl":"http://localhost:8081/api/files/download/20251027_145333_Test-pdf_4.pdf"}],"error":null} ``` ### Workaround Downgrade to AnythingLLM 1.8.5
yindo added the needs info / can't replicateinvestigating labels 2026-02-22 18:31:55 -05:00
yindo closed this issue 2026-02-22 18:31:55 -05:00
Author
Owner

@francoisp commented on GitHub (Nov 6, 2025):

I have a similar behaviour, but only when using a llm via open router, direct with gemini I get proper behaviour... I think it might be an issue with the agenthandler?

@francoisp commented on GitHub (Nov 6, 2025): I have a similar behaviour, but only when using a llm via open router, direct with gemini I get proper behaviour... I think it might be an issue with the agenthandler?
Author
Owner

@shatfield4 commented on GitHub (Nov 14, 2025):

@xuanswe What provider and model are you using here? If you call other agent tools like web-browsing or web-scraping, do you still get the same behavior where the LLM is not responding after the tool call?

@shatfield4 commented on GitHub (Nov 14, 2025): @xuanswe What provider and model are you using here? If you call other agent tools like web-browsing or web-scraping, do you still get the same behavior where the LLM is not responding after the tool call?
Author
Owner

@xuanswe commented on GitHub (Nov 14, 2025):

with gemini I get proper behaviour.

Interesting, I have problem with Gemini Flash 2.5.

@xuanswe commented on GitHub (Nov 14, 2025): > with gemini I get proper behaviour. Interesting, I have problem with Gemini Flash 2.5.
Author
Owner

@xuanswe commented on GitHub (Nov 14, 2025):

What provider and model are you using here?

Gemini Flash 2.5, Perplexity Sonar

If you call other agent tools like web-browsing or web-scraping, do you still get the same behavior where the LLM is not responding after the tool call?

I will need to reinstall version 1.9.0 next week and answer you later.

@xuanswe commented on GitHub (Nov 14, 2025): > What provider and model are you using here? Gemini Flash 2.5, Perplexity Sonar > If you call other agent tools like web-browsing or web-scraping, do you still get the same behavior where the LLM is not responding after the tool call? I will need to reinstall version 1.9.0 next week and answer you later.
Author
Owner

@timothycarambat commented on GitHub (Nov 20, 2025):

Will definitely need some more information for this and also for clarification, is the occurrence on both Gemini and OpenRouter or just when using Gemini models via OpenRouter?

@timothycarambat commented on GitHub (Nov 20, 2025): Will definitely need some more information for this and also for clarification, is the occurrence on both Gemini and OpenRouter or just when using Gemini models _via_ OpenRouter?
yindo changed title from [BUG]: AnythingLLM 1.9.0 doesn't answer after successfully receiving mcp tool response to [GH-ISSUE #4613] [BUG]: AnythingLLM 1.9.0 doesn't answer after successfully receiving mcp tool response 2026-06-05 14:49:22 -04:00
Author
Owner

@noamanemobidata commented on GitHub (Mar 11, 2026):

Hello! I’m encountering the same issue. I’m using Gemini 3.1-pro-preview with AnythingLLM 1.11.1. The first time, the agent doesn’t respond and only shows “MCP server: completed successfully.” However, after refreshing the page, the MCP response appears.

<!-- gh-comment-id:4038637560 --> @noamanemobidata commented on GitHub (Mar 11, 2026): Hello! I’m encountering the same issue. I’m using Gemini 3.1-pro-preview with AnythingLLM 1.11.1. The first time, the agent doesn’t respond and only shows “MCP server: completed successfully.” However, after refreshing the page, the MCP response appears.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Mintplex-Labs/anything-llm#2937