v0.5.1 — 20 bug fixes, HTTP serve mode, batch JSON-RPC, Streamable HTTP
New Features
-
mcptoon serve --listen HTTP mode — Remote/multi-agent access via HTTP POST to /mcp endpoint. Health check at /health.
- mcptoon serve --listen :8080 — HTTP mode on port 8080
- mcptoon serve --http — Shorthand for --listen :8080
- mcptoon serve --listen 0.0.0.0:9090 — Bind to all interfaces
- Multiple agents can connect simultaneously
- JSON-RPC over HTTP, compatible with MCP HTTP transport
-
mcptoon demo command — Zero-config one-command demo:
- mcptoon demo — Full demo, step by step
- mcptoon demo --quick — Fast: skip step-by-step
- mcptoon demo --keep — Keep demo server in config
-
Parallel manifest loading — 20 concurrent workers, 100 servers load in ~5s
-
Per-call timeout — 30s timeout per tool call (configurable via MCPTOON_CALL_TIMEOUT)
-
Remote MCP support — HTTP/SSE MCP servers handled transparently
20 Critical Bug Fixes
- HTTP serve stdout race condition (thread-local response buffer)
- Streamable HTTP support (multi-event SSE streams)
- HTTP error handling (structured JSON error objects)
- JSON-RPC batch support (arrays of requests/responses)
- HTTP authentication (--auth / MCPTOON_AUTH_TOKEN)
- Connection pool resource leak (losing client properly closed)
- Router pool reuse (global pool instead of per-call creation)
- Cache file locking (threading.Lock + atomic file writes)
- stdio multi-line response handling
- Auto-reconnect for stdio (process restart on crash)
- close() robustness (proc.wait + finally cleanup)
- installer.py TypeError (invalid name= argument)
- Version mismatch (pyproject.toml synced)
esources/read and prompts/get support
- logging/setLevel acknowledgment
otifications/cancelled handling
- And more...
Stats
- 486 tests passing
- Zero dependencies (pure Python stdlib)
- ~200KB package size
- Apache 2.0 license
Full Changelog: https://github.com/activeing123/mcptoon/blob/main/CHANGELOG.md