MCP Gateway
The MCP Gateway module provides an HTTP/HTTPS server that bridges Model Context Protocol (MCP) servers with SignalWire SWAIG functions. It manages sessions, handles authentication, and translates between the MCP JSON-RPC protocol and SignalWire’s tool-calling interface.
Use the MCP Gateway when you want to expose tools from one or more MCP servers as SWAIG functions that a SignalWire AI agent can call during a conversation.
For agent-side MCP integration, see
AgentBase.add_mcp_server().
For the CLI entry point, see the
mcp-gateway CLI command.
Learn More
The main gateway service class. Loads configuration, sets up routes, and runs the HTTP server.
Session and SessionManager classes for tracking MCP session lifecycles.
MCPService and MCPManager classes for spawning and managing MCP servers.
Client for communicating with a single MCP server subprocess via JSON-RPC.