Skip to content

v0.2.0

Choose a tag to compare

@Mark007-R Mark007-R released this 03 Sep 11:12
· 211 commits to main since this release
8b57d29

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.stdout is redirected to stderr while serving, so a stray print() inside a tool cannot corrupt the protocol stream
  • Client credential via EASY_MCP_STDIO_API_KEY or StdioTransport(server, api_key=...); an invalid key aborts startup instead of downgrading to anonymous access
  • MCPServer.run() accepts "sse", "stdio", or a Transport instance; notifications/cancelled works 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

Full Changelog: v0.1.0...v0.2.0