Repository navigation
Description
Hi UltraRAG team,
I found a reproducible functional failure in the HTTP MCP path of the CPU image linked from your README, hdxin2002/ultrarag:v0.3.0-base-cpu. The tested Linux amd64 image digest is sha256:a3c6be688e29a118be862a9efe70a1ea0dc2ac53642653cfcb320e860cc347fd. Its embedded UltraRAG version is 0.3.0.2.
Node and npx were absent from that image. After providing Node 22.23.2 through a read-only mount, the unchanged client.py reached FastMCP/Pydantic but failed with ValidationError: input_type=tuple. The HTTP entries at lines 1024-1034 and 1269-1279 are one-element tuples where the client expects dictionaries. The tested client.py matches this pinned source:
UltraRAG/src/ultrarag/client.py
Lines 1024 to 1043 in a763d34
| mcp_servers[name] = ( | |
| { | |
| "command": "npx", | |
| "args": [ | |
| "-y", | |
| "mcp-remote", | |
| path, | |
| ], | |
| "env": os.environ.copy(), | |
| }, | |
| ) | |
| else: | |
| raise ValueError( | |
| f"[UltraRAG Error] Unsupported server type for {name}: {path}" | |
| ) | |
| mcp_cfg = {"mcpServers": mcp_servers} | |
| logger.debug("Initializing MCP client with config: %s", mcp_cfg) | |
| client = Client(mcp_cfg) |
UltraRAG/src/ultrarag/client.py
Lines 1269 to 1304 in a763d34
| mcp_cfg["mcpServers"][name] = ( | |
| { | |
| "command": "npx", | |
| "args": [ | |
| "-y", | |
| "mcp-remote", | |
| path, | |
| ], | |
| "env": os.environ.copy(), | |
| }, | |
| ) | |
| else: | |
| raise ValueError(f"Unsupported server type for {name}: {path}") | |
| return { | |
| "config_path": config_path, | |
| "param_config_path": param_config_path, | |
| "cfg_name": cfg_name, | |
| "mcp_cfg": mcp_cfg, | |
| "server_cfg": server_cfg, | |
| "pipeline_cfg": pipeline_cfg, | |
| "init_cfg": init_cfg, | |
| } | |
| def create_mcp_client(mcp_cfg: Dict[str, Any]) -> Client: | |
| """Create and initialize MCP client. | |
| Args: | |
| mcp_cfg: MCP server configuration dictionary | |
| Returns: | |
| Initialized MCP Client instance | |
| """ | |
| logger.info("Initializing MCP Client...") | |
| return Client(mcp_cfg) |
The same failure appeared in the UI. This image has no built frontend dist, so I compiled the shipped frontend source without edits and mounted the assets through ULTRARAG_FRONTEND_DIR, with temporary writable state. Actual browser Build clicks returned 200 for a local stdio control and 400 with the tuple error for HTTP. Separate direct calls to the UI session API returned 200 started for stdio and 500 for HTTP. These are prepared UI conditions, not a ready-to-use frontend from the stock image.
The HTTP paths failed before any mcp-remote process or request to the local HTTP MCP fixture. This report concerns functional correctness; it does not establish security exposure.
Could you confirm the intended HTTP configuration format and the prerequisites for this CPU image? I can share the existing tracebacks, image/source hashes and browser evidence. If this report leads to a fix, please credit Alex Gercog (playb0t) in the changelog or issue resolution, with a link to https://github.com/playb0t. I consent to public attribution under that name.
Alex Gercog (playb0t)
Activity
fix: restore remote MCP support and Docker latest images (OpenBMB#538)