MiMo-Code
MiMo-Code copied to clipboard
Built-in Stitch MCP causes Malformed_HTTP_Response error and hangs prompt processing
Bug Report: Built-in Stitch MCP Malformed_HTTP_Response hangs prompt processing
Description
MiMoCode CLI v0.1.15 hangs/freezes when submitting a prompt. The root cause is the built-in Stitch MCP client (stitch.googleapis.com/mcp) failing with a Malformed_HTTP_Response error during startup. This blocks the session and causes prompts to become unresponsive, eventually requiring manual abort.
This is different from #1652 — that issue is about $ref JSON Schema resolution. This bug is about the HTTP connection itself returning a malformed response, which causes the entire prompt pipeline to hang.
Error from Worker Log
ERROR 2026-09-29T16:40:03 +186ms service=mcp clientName=stitch error=Malformed_HTTP_Response fetching "https://stitch.googleapis.com/mcp". For more information, pass `verbose: true` in the second argument to fetch() failed to get prompts
Steps to Reproduce
- Install MiMoCode via npm:
npm install -g @mimo-ai/mimocode - Run
mimo --dangerously-skip-permissionsin any project directory - Submit a prompt
- The session loads plugins and server correctly, but hangs when trying to fetch prompts from the built-in Stitch MCP
- No response is generated; the prompt eventually needs to be manually aborted (Ctrl+C or
/abort)
Expected Behavior
- The Stitch MCP connection failure should be handled gracefully (logged as a warning) without blocking the prompt processing pipeline
- Alternatively, the Stitch MCP should not be enabled by default if it requires specific authentication/configuration to work
Actual Behavior
- The
Malformed_HTTP_Responseerror from Stitch MCP blocks the session.prompt loop - The prompt hangs indefinitely until manually aborted
- Repeated attempts show the same behavior — every prompt is blocked
Timeline from Logs (single session)
16:39:54 — Worker starts, initializes plugins, loads config
16:39:56 — Provider initialized (xiaomi, mimo)
16:40:03 — ERROR: Stitch MCP Malformed_HTTP_Response (this is where it gets stuck)
16:40:16 — Session starts, scheduler starts, cron bridge starts
16:40:34 — User aborts (18s waiting with no response)
16:51:04 — User tries to resume session
16:51:56 — User aborts again (52s waiting with no response)
16:51:56 — Worker shuts down
Workaround
Disable the Stitch MCP in ~/.config/mimocode/mimocode.jsonc:
{
"mcp": {
"stitch": {
"enabled": false
}
}
}
Suggested Fix
- Graceful degradation: MCP connection failures should not block the prompt processing pipeline. If an MCP server fails to connect, it should be logged and skipped.
- Timeout: Add a timeout for MCP server connections so a single unresponsive server does not block the entire CLI.
- Opt-in, not built-in: Do not enable the Stitch MCP by default if it requires specific Google Cloud authentication to function.
Environment
- MiMoCode version: 0.1.15 (latest via npm)
- OS: Linux (WSL2, Ubuntu)
- Node.js: v24.15.0
- Installation method:
npm install -g @mimo-ai/mimocode
Related
- #1652 (different error — JSON Schema
$refresolution, not HTTP response) - PR #1733 (fix for #1652, may not address this issue)