How MCP works
- You provide an MCP server URL in the
toolsarray - The model connects to the server and discovers available tools
- The model calls tools as needed to fulfill the request
- Results are incorporated into the final response
Using an MCP server
Add an MCP tool type to your request:MCP tool parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
type | string | Yes | Must be "mcp" |
server_url | string | Yes | URL of the MCP server |
server_label | string | No | Human-readable label for the server |
allowed_tools | string[] | No | Restrict which tools the model can use |
require_approval | string | No | "never" to auto-approve tool calls |
headers | object | No | Custom headers to send to the MCP server |
ShuttleAI’s official MCP server
We provide an official MCP server at:| Tool | Description |
|---|---|
chat_completion | Generate text completions |
list_models | List available models |
model_analytics | Get model usage analytics |
Authentication
Pass your API key to the MCP server via headers:Filtering tools
Useallowed_tools to restrict which tools the model can access: