mirror of
https://github.com/open-webui/computer.git
synced 2026-11-05 01:17:24 +00:00
[GH-ISSUE #62] MCP optional extra not installed in Docker image — MCP tool servers fail silently out of the box #25
Labels
No labels
enhancement
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
open-webui/computer#25
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @root-hal9000 on GitHub (Jun 16, 2026).
Original GitHub issue: https://github.com/open-webui/computer/issues/62
DISCLAIMER: This potential bug was found using an LLM running inside a CPTR docker container. I was trying to troubleshoot why I could not connect to a github-mcp-server container to use as a tool, despite the networking being OK when I checked from within. I managed to get the agent to fix it for myself in the container. Since I was not fully clear on the details, I had the LLM write up the following bug report after some investigation
Description
When using the official Docker image, adding an MCP tool server via the UI and clicking Verify always fails silently with a generic error. The root cause is that the
mcppackage (declared as an optional extra incptr's own metadata) is never installed in the Docker image.Root Cause
The
Dockerfileinstalls the wheel with:But
cptr's ownMETADATAdeclaresmcpas an optional extra:So the plain
.whlinstall never pulls inmcp. When the verify endpoint runs:...which in turn hits
cptr/utils/mcp/client.py:The exception is caught by the outer
try/exceptinverify_tool_serverand returned as a generic{"ok": false, "message": "..."}— giving the user no actionable information.Steps to Reproduce
docker pull ghcr.io/open-webui/cptr:latest(confirmed on0.5.2)Verified against:
cptr 0.5.2, Docker image built ~June 16 2026Fix
Two changes needed:
1. Dockerfile — install with the
mcpextra:Or alternatively build/install as
cptr[mcp]if the wheel supports it.2. Better error message — if
mcpis intentionally kept optional, the verify endpoint should catchModuleNotFoundErrorspecifically and return an actionable message:Workaround (until fixed)
No restart required.
Additional context
The
README.mdalso only documentspip install cptrwith no mention of[mcp]being required for MCP tool server functionality, which compounds the discoverability problem.@tjbck commented on GitHub (Jun 18, 2026):
Should be addressed!