UltraRAG icon indicating copy to clipboard operation
UltraRAG copied to clipboard

HTTP MCP build/run fails before transport in the recommended CPU image

Open playb0t opened this issue 1 month ago • 0 comments

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: https://github.com/OpenBMB/UltraRAG/blob/a763d34432007fcd1b261209f222bb10df907beb/src/ultrarag/client.py#L1024-L1043 https://github.com/OpenBMB/UltraRAG/blob/a763d34432007fcd1b261209f222bb10df907beb/src/ultrarag/client.py#L1269-L1304

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)

playb0t avatar Oct 12 '26 06:10 playb0t