Repository navigation
v0.2.0
stdio transport: run the same easy_mcp server as a child process of any local MCP host (desktop apps, CLI agents).
server.run("stdio")serves newline-delimited JSON-RPC over stdin/stdout;server.run()still serves HTTP + SSE- Shared dispatcher, so schema validation, scopes, rate limits, timeouts, payload caps and sanitized errors apply unchanged over stdio
- Input lines capped at
max_request_bytes; oversized lines are discarded unbuffered and answered with-32004 sys.stdoutis redirected to stderr while serving, so a strayprint()inside a tool cannot corrupt the protocol stream- Client credential via
EASY_MCP_STDIO_API_KEYorStdioTransport(server, api_key=...); an invalid key aborts startup instead of downgrading to anonymous access MCPServer.run()accepts"sse","stdio", or aTransportinstance;notifications/cancelledworks mid-call over stdio- README: transports section with an MCP host config example; SECURITY.md: transport trust boundaries
- 12 new tests including a real subprocess round trip (86 total)
Backwards compatible with 0.1.x. Install or upgrade: pip install -U easy-mcp-kit (import name: easy_mcp)
What's Changed
- Add stdio transport and release 0.2.0 by @Mark007-R in #15
Full Changelog: v0.1.0...v0.2.0