/use_mcp

Connect to an MCP server.

Sub-command Usage Description
by name /use_mcp <NAME> Connect using a name from the config file
by URL /use_mcp <URL> [auth_env=<ENV>] [transport=<TYPE>] Connect using a specified URL with optional authentication and transport settings

use by name

Usage: /use_mcp <NAME>

Connect to the specified MCP server by its name from the configuration file and register any available tools for use with subsequent queries.

use by URL

Usage: /use_mcp <URL> [auth_env=<ENV>] [transport=<TYPE>]

Connect to the specified MCP server using a URL and register any available tools for use with subsequent queries.

  • auth_env: Optionally specify the name of an environment variable that contains the authentication token if needed.
  • transport: Optionally specify the transport type; defaults to auto. Supported values are auto, legacy, or http.