Skip to main content

Module gateway

Module gateway 

Source
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
HttpTransport
HTTP transport with optional SSE support
JsonRpcError
JSON-RPC 2.0 error
JsonRpcNotification
JSON-RPC 2.0 notification (no id)
JsonRpcRequest
JSON-RPC 2.0 request
JsonRpcResponse
JSON-RPC 2.0 response
McpCapabilities
MCP Server capabilities
McpClient
MCP client for a single server connection
McpPrompt
MCP Prompt definition
McpPromptArgument
MCP Prompt argument
McpResource
MCP Resource definition
McpServerInfo
MCP Server info from initialization
McpTool
MCP Tool definition
PromptsCapability
ResourcesCapability
ServerInfo
Server info returned by list_servers
StdioTransport
Stdio transport for subprocess MCP servers
ToolsCapability
WebSocketTransport
WebSocket transport

Enums§

ServerStatus
Server connection status