mirror of
https://github.com/open-webui/open-webui.git
synced 2026-11-14 05:02:01 -06:00
[GH-ISSUE #15504] issue: Different behavior between User Tool Servers and Global Tool Servers #137309
Reference in New Issue
Block a user
Originally created by @Gwenn-LR on GitHub (Jul 3, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/15504
Originally assigned to: @jackthgu on GitHub.
Check Existing Issues
Installation Method
Docker
Open WebUI Version
v0.6.15
Ollama Version (if applicable)
0.9.5
Operating System
Ubutu 24.04
Browser (if applicable)
Firefox 140.0.2
Confirmation
README.md.Expected Behavior
As specified in the documentation, "Once toggled on, [Global Tool Servers] function the same way as user tools.
Actual Behavior
Adding the same MCP server in User Tool Servers and in Global Tool Servers, does not lead to the same behavior : the former show a bubble with information from the tool while the latter does not produce any information about it.
EDIT: This bubble seems to correspond to the
Open-WebUIbackend JSON response keysourceswhich seems to be absent when using a Global Tool Server.Steps to Reproduce
I've created a minimal code example to setup and demonstrate the difference in this repository : https://github.com/Gwenn-LR/open-webui_user_vs_global_tool_server
It is divided between setting up a
docker composestack and configuringOllamamodel, then reproducing the configuration ofOpen WebUIand highlighting the issue.This is a minimal example of the behaviour noticed in another project, hence this configuration.
EDIT: It might be overkill, but could be used for other issues.
Logs & Screenshots
While trying to debug it, I've noticed that with Global Tool Server, the response from the
Open-WebUIbackend does not contain thesourcesfield, while it is present with a User Tool Server.Open-WebUIGlobal Tool Server response content :Open-WebUIUser Tool Server response content :Additional Information
Thanks to all your team for your amazing work, it really is a pleasure to experiment with it ! <3
@rgaricano commented on GitHub (Jul 3, 2025):
For use it in User Side, the IP of the mcp server have to be accesible by browser (public), I do that with reverse proxy.
@Gwenn-LR commented on GitHub (Jul 4, 2025):
Thanks for your answer @rgaricano but I don't have any problem to use my mcp server as a User Tool Server nor as a Global Tool Server.
I think that my issue is that the answer of the tool is not processed the same way, so the response object don't have the same structure. That can be an issue when you have filters to postprocess the answers because they won't work the same when used as a User Tool Server or as a Global Tool Server.
@rgaricano commented on GitHub (Jul 4, 2025):
ok, I saw it,
maybe the issue is due to differences in
tool_dictUser side:
https://github.com/open-webui/open-webui/blob/59ba21bdf8eb791a412db869a13ff76c6135b651/backend/open_webui/utils/middleware.py#L894-L898
Server side:
https://github.com/open-webui/open-webui/blob/59ba21bdf8eb791a412db869a13ff76c6135b651/backend/open_webui/utils/tools.py#L126-L130
@jackthgu commented on GitHub (Jul 7, 2025):
This issue was resolved in
cfcfefb20c.Thank you for thoughtfully raising it!!
@Gwenn-LR commented on GitHub (Jul 7, 2025):
Damn, your fix has been done sooo quickly ! Thanks for your time and thanks again to all your team ! <3
@jackthgu commented on GitHub (Jul 7, 2025):
Citations are now generated regardless of user/global settings, and you can enable or disable them in the model settings. :)