-
-
One server, two clients: the official MCP client passes, Kiro CLI stops at Connect.
-
Both clients, step by step. The official client gets a reply at Connect. Kiro never does.
-
Five settings could be to blame. Wiretrace removed four and kept the one that causes the failure.
-
The fix, verified: the original failed again 2 of 2, then both clients passed with the change 2 of 2.
-
The exported bug report: both recordings, a script that reproduces the failure and a regression test.
-
Why a 15 s timeout still failed: Kiro spent about 7.5 s on each of two attempts, and the server needed 8 s.
Inspiration
A developer reported that their Python MCP server worked when they tested it directly, but timed out when Kiro started it (Kiro issue #8031). Both were true, and neither said where to look or what to send the maintainer.
What it does
Wiretrace is our Frankenstein: two MCP clients stitched onto the same server, so you can see where they come apart.
- Compare. It runs one approved, read-only tool call through the official MCP Python SDK and the real Kiro CLI, and records every message on both sides.
- Isolate. It removes settings on throwaway copies until only the one causing the failure is left.
- Prove. It tests a fix in fresh, repeated runs. A fix counts only when the original failure happens again and both clients pass with the change.
- Hand over. It exports a bug report another developer can run, with both recordings, a reproduce script and a regression test.
Inside Kiro Crew, a Conductor hands the evidence to workers. They can propose experiments, but only you can approve them.
How we built it
The engine is Python: a stdio observer that relays bytes unchanged, a reference client on MCP SDK 2.3, and a headless Kiro CLI V3 adapter. FastAPI and PostgreSQL handle approvals, jobs and live updates. The workbench is Next.js. The public site runs both real clients on a dedicated worker.
Challenges we ran into
- Kiro is an agent. It can skip a tool or stall. Wiretrace passes a run only when the tool call and its response were observed.
- The obvious fix was wrong. The test server needs 8 seconds. Two Crew workers suggested timeouts of 15 and 10 seconds. Wiretrace ran both, and both still failed. With 15 seconds, Kiro spent about 7.5 seconds on each of two connection attempts. 60 seconds worked.
Accomplishments that we're proud of
- The full loop runs live with no account: failure reproduced 2 of 2, fix verified 2 of 2, report exported. The run in the video is public.
- On real Kiro CLI 3.8.1, Wiretrace removed 4 of 5 settings and showed that only
timeoutwas needed to cause the failure.
What we learned
A passing server test is not a passing client test, and a plausible fix is not a verified one. The failed guesses taught us the most.
What's next for Wiretrace
Wire-level recording for Streamable HTTP servers, a verified Windows runner, and a compatibility matrix built with server maintainers.
Built With
- docker
- fastapi
- kiro
- kiro-cli
- kiro-crew
- mcp
- next.js
- postgresql
- python
- react
- sqlalchemy
- tailwindcss
- typescript