mcp_connect
Connect to an MCP server via registry slug, explicit command, or remote URL and expose its tools for use.
Instructions
Connect to an MCP server and make its tools available. Provide either a server slug (from mcp_discover) to look up in the registry, OR an explicit command + args to spawn directly, OR a url for remote servers. An explicit command needs the person's approval, which the gateway asks for itself.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| env | No | Additional environment variables for the server process | |
| url | No | URL for remote transports (SSE, WebSocket, Streamable HTTP). Use instead of command for remote servers. | |
| args | No | Command arguments (e.g., ['-y', '@modelcontextprotocol/server-everything']) | |
| slug | No | Server slug from MCP-Rating registry (e.g., '@modelcontextprotocol/inspector') | |
| command | No | Explicit command to spawn (e.g., 'npx'). Use when server is not in registry. The gateway asks the person first, and refuses if the client can't ask. | |
| confirmed | No | Set to true to confirm connection to community/unknown trust tier servers, once the user has said yes. Required when the initial connect returns a confirmation warning. Where the client can ask the person directly, the gateway does that instead and this has no effect. | |
| saveProfile | No | Set to true to save this connection as an auto-connect profile. The server will auto-reconnect on gateway restart. | |
| transportType | No | Transport type. Defaults to 'stdio' for command-based, auto-detected from URL scheme if url is provided. |