open-webui/backend/open_webui
Classic298 f3f9af594f
fix: MCP tools whose input has alternative forms are called with no arguments (#32903)
* fix: MCP tools that list their arguments under anyOf are called with no arguments

When an MCP tool described its input as alternatives, for example a page by id or by path and locale, and had no top-level list of fields, every argument the model sent was dropped and the tool was called with nothing, so the server rejected the call. Arguments for MCP tools now reach the server as the model sent them, and the MCP server checks them against its own schema. Other tool types still keep only the arguments their schema lists.

Fixes #32898

* refac: shorten the MCP arguments comment

The comment now only says why MCP tools skip the argument filter.
2026-10-25 06:22:08 +09:00
..
data refac: mv backend files to /open_webui dir 2024-09-04 16:54:48 +02:00
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: MCP tools whose input has alternative forms are called with no arguments (#32903) 2026-10-25 06:22:08 +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