Unified SSE transport wrapper for Ectomancer.
Wraps Anubis.Server.Transport.SSE.Plug to handle both GET (SSE stream)
and POST (JSON-RPC messages) via a single plug, inspecting conn.method
to delegate to the correct mode.
Deprecation Note
The underlying SSE transport (Anubis.Server.Transport.SSE.Plug) is
deprecated as of MCP specification 2025-03-26 in favor of Streamable HTTP.
This module is provided for backward compatibility with clients using the
2024-11-05 protocol version. For new implementations, use the default
:streamable_http transport.
Router Usage
get "/mcp/sse", Ectomancer.Plug, server: MyApp.MCP, transport: :sse
post "/mcp/sse", Ectomancer.Plug, server: MyApp.MCP, transport: :sse