Expand description
ZAP MCP Gateway - Full Implementation
A gateway that bridges multiple MCP servers, providing:
- Multi-transport support (stdio, HTTP/SSE, WebSocket)
- Tool/resource/prompt aggregation across servers
- Request routing to correct backend servers
- Health checking and automatic reconnection
- Server lifecycle management
This module implements MCP (Model Context Protocol) gateway functionality allowing ZAP to act as a unified interface to multiple MCP servers.
Structs§
- Gateway
- ZAP MCP Gateway - aggregates multiple MCP servers
- Http
Transport - HTTP transport with optional SSE support
- Json
RpcError - JSON-RPC 2.0 error
- Json
RpcNotification - JSON-RPC 2.0 notification (no id)
- Json
RpcRequest - JSON-RPC 2.0 request
- Json
RpcResponse - JSON-RPC 2.0 response
- McpCapabilities
- MCP Server capabilities
- McpClient
- MCP client for a single server connection
- McpPrompt
- MCP Prompt definition
- McpPrompt
Argument - MCP Prompt argument
- McpResource
- MCP Resource definition
- McpServer
Info - MCP Server info from initialization
- McpTool
- MCP Tool definition
- Prompts
Capability - Resources
Capability - Server
Info - Server info returned by list_servers
- Stdio
Transport - Stdio transport for subprocess MCP servers
- Tools
Capability - WebSocket
Transport - WebSocket transport
Enums§
- Server
Status - Server connection status