open-webui/backend/open_webui
Classic298 37af63b649
fix: models get an unreadable dump instead of the MCP server's error message (#32942)
* fix: MCP tool errors reach the model as a Python list dump instead of the server's message

When an MCP tool server answered a call with an error, the model got a Python dump of the whole result list, with quotes, annotations and meta fields, instead of the error text the server wrote. Line breaks in the message were escaped as well, so a validation error listing the missing argument was hard to read and models tended to retry the same broken call. The model now gets the server's error text as written, the same way successful results already arrive.

Fixes #32918

* refac: drop the fallback text for MCP errors with no message

The error now carries only the text the server sent.

* fix: keep a readable error when an MCP error has no text

MCP error results that only carry images, audio or resources now give the model a short error message instead of an empty one.
2026-10-25 06:21:30 +09:00
..
data
internal fix: requests hang or fail with 503 after pages are closed while loading (#32617) 2026-10-21 03:23:05 +09:00
migrations refac 2026-10-14 18:49:51 +04:00
models refac 2026-10-24 04:50:12 +09:00
retrieval chore: Python 3.12 and Debian 13 base image (#32861) 2026-10-22 04:51:57 +09:00
routers refac 2026-10-25 04:50:39 +09:00
socket fix: new websocket connections hang until restart after a Redis reconnect (#33009) 2026-10-24 01:58:30 +09:00
static refac 2026-09-06 17:27:30 -04:00
storage refac 2026-10-05 12:03:19 +04:00
tools refac 2026-10-21 09:53:09 +09:00
utils fix: models get an unreadable dump instead of the MCP server's error message (#32942) 2026-10-25 06:21:30 +09:00
__init__.py chore: Python 3.12 and Debian 13 base image (#32861) 2026-10-22 04:51:57 +09:00
alembic.ini fix: Alembic CLI commands from failing 2025-08-15 04:17:47 -04:00
config.py refac 2026-10-25 04:50:39 +09:00
constants.py fix: SSO login failures show the email/password error (#31629) 2026-09-30 19:07:49 +04:00
env.py feat: connect to MCP servers that speak protocol version 2026-07-28 (#33087) 2026-10-25 04:41:10 +09:00
events.py refac: recheck live chat access after archiving and bulk unsharing (#32887) 2026-10-22 08:32:51 +09:00
functions.py fix: pipes and tools get None instead of a file list when nothing is attached (#32380) 2026-10-14 12:18:55 +04:00
main.py fix: Terminal capability shows while no terminal server exists (#32966) 2026-10-25 05:15:13 +09:00
tasks.py refac 2026-10-16 04:20:53 +04:00