anything-llm icon indicating copy to clipboard operation
anything-llm copied to clipboard

[BUG]: AnythingLLM 1.9.0 doesn't answer after successfully receiving mcp tool response

Open xuanswe opened this issue 1 month ago • 4 comments

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

xuanswe avatar Nov 05 '25 14:11 xuanswe

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 avatar Nov 06 '25 22:11 francoisp

@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 avatar Nov 14 '25 19:11 shatfield4

with gemini I get proper behaviour.

Interesting, I have problem with Gemini Flash 2.5.

xuanswe avatar Nov 14 '25 19:11 xuanswe

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 avatar Nov 14 '25 19:11 xuanswe