Skip to content

v0.2.1

Choose a tag to compare

@Mark007-R Mark007-R released this 10 Sep 15:42
· 208 commits to main since this release
7855d5e

Streamable HTTP transport: the MCP spec's current HTTP transport, served at /mcp next to the legacy SSE endpoints.

  • server.run() now serves Streamable HTTP at /mcp plus the legacy /sse + /messages endpoints from one app, so new and old clients both connect; server.run("sse") keeps the legacy-only surface
  • Sessions via MCP-Session-Id: 192-bit ids bound to the credential that opened them, DELETE /mcp to end one, idle expiry (session_idle_timeout), max_sessions cap
  • Origin allowlist on every HTTP endpoint (allowed_origins, loopback origins by default) rejects DNS-rebinding requests with 403
  • Protocol negotiation for 2024-11-05 through 2025-11-25; unsupported MCP-Protocol-Version headers get 400; SUPPORTED_PROTOCOL_VERSIONS is exported
  • Legacy SSE fix: POST /messages answers 202 before the tool finishes, so notifications/cancelled can overtake a slow call
  • Verified against the official MCP Python SDK 2.2.0 and TypeScript SDK 1.30.0 clients
  • 13 new tests (99 total)

Backwards compatible with 0.2.0. Install or upgrade: pip install -U easy-mcp-kit (import name: easy_mcp)

What's Changed

  • Add Streamable HTTP transport and release 0.2.1 by @Mark007-R in #16

Full Changelog: v0.2.0...v0.2.1