mirror of
https://gitee.com/mateos/mateclaw.git
synced 2026-09-13 03:13:41 +08:00
The upstream StdioClientTransport breaks out of its inbound read loop on any JSON parse error, permanently killing the reader thread. Some MCP servers write non-JSON debug output to stdout (e.g. "=== Document parser messages ==="), which triggers this and causes all subsequent valid JSON-RPC responses to be lost → 30s timeout → agent stuck. Override connect() in CwdAwareStdioClientTransport to skip non-JSON lines (log at DEBUG) instead of breaking, keeping the inbound thread alive. Closes #226 |
||
|---|---|---|
| .. | ||
| src | ||
| Dockerfile | ||
| pom.xml | ||
| settings.xml | ||