Overview
The StreamableHTTP + Webhook transport combines MCP’s StreamableHTTP (with Server-Sent Events) for immediate responses with webhook delivery for long-running async operations. This provides the best of both worlds - real-time streaming for quick operations and webhook callbacks for async processing.This transport allows selective routing where specific tools use webhook delivery while others use SSE streaming, all within a single session.
Examples
View complete working examples in the GitHub repository:Quick Start
Basic Usage
Configuration
Server Configuration
Class:StreamableHTTPWebhookConfig
Note: The webhook_tools set is configured at the session manager level, not in the config.
Client Configuration
Class:StreamableHTTPWebhookClientConfig
StreamableHTTP endpoint URL.Example:
http://api.example.com/mcpWebhook URL for async responses.Example:
http://client.example.com/webhook