Overview
The Webhook transport provides HTTP-based asynchronous messaging, perfect for web services and microservice architectures. It uses standard HTTP POST requests for communication without requiring cloud provider dependencies.Webhook transport uses HTTP POST requests where the client sends requests to server endpoints and provides a webhook URL for receiving async responses.
Examples
View complete working examples in the GitHub repository:Quick Start
Basic Usage
Configuration
Server Configuration
Class:WebhookServerConfig
HTTP timeout for sending webhooks to clients.
Number of retry attempts for failed webhook deliveries (default: no retries).
Optional overall transport timeout.
Client Configuration
Class:WebhookClientConfig
URL of the server’s HTTP endpoint.Example:
https://api.example.com/mcp/request
HTTP request timeout in seconds.
Number of retry attempts for failed requests (default: no retries).
Unique client identifier. Auto-generated if not provided.
Optional overall transport timeout.
_meta
field in the initialize request and is handled automatically by the client.