Enable local web MCP for all profiles

This commit is contained in:
Mikei386
2026-08-22 11:54:50 +02:00
parent d86727b231
commit a9c7a414a0
2 changed files with 16 additions and 2 deletions
+10 -2
View File
@@ -71,6 +71,12 @@ filter_ids = [
"local_performance_metrics",
]
# Open WebUI addresses a global MCP server as server:mcp:<connection-id>.
# Attach only our bounded, read-only web relay to every profile. This is not
# the built-in Open WebUI web-search feature and therefore does not create a
# second competing search path.
default_tool_ids = ["server:mcp:web-local"]
def capabilities(vision: bool) -> dict:
return {
"file_context": True,
@@ -187,8 +193,10 @@ with con:
"knowledge": None,
"suggestion_prompts": None,
"tags": [{"name": tag} for tag in profile["tags"]],
# Features remain available but are not forced on every request;
# this avoids needlessly injecting large tool schemas.
"toolIds": default_tool_ids,
# Built-in features remain available but are not forced on every
# request. The small, bounded local web MCP above is the only
# web-search path attached by default.
"defaultFeatureIds": [],
"filterIds": filter_ids,
"actionIds": ["quick_actions"],