mcp/pkg
Snider fe66067b54 feat: add Streamable HTTP transport with Bearer token auth
New transport_http.go adds ServeHTTP() using the go-sdk's built-in
StreamableHTTPHandler. Supports:
- SSE streaming (GET /mcp) for server-to-client notifications
- JSON-RPC (POST /mcp) for tool calls
- Session management with 30min idle timeout
- Bearer token auth via MCP_AUTH_TOKEN env var
- Health check at /health (no auth)

Transport selection via env vars:
- MCP_HTTP_ADDR → Streamable HTTP
- MCP_ADDR → TCP
- (default) → Stdio

Co-Authored-By: Virgil <virgil@lethean.io>
2026-03-17 04:25:28 +00:00
..
mcp feat: add Streamable HTTP transport with Bearer token auth 2026-03-17 04:25:28 +00:00