Gemini Mcp Add
gemini_mcp_addAdd an MCP server to Gemini CLI by providing a name and command or URL, selecting stdio, HTTP, or SSE transport, and setting optional headers, env vars, and scope.
Instructions
Add an MCP server via gemini CLI (gemini mcp add ...). transport: stdio|http|sse; for stdio pass executable, for http/sse pass URL. headers are only valid for http/sse. Returns CLI stdout.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"name": "<name>",
"command_or_url": "<command_or_url>"
},
"name": "gemini_mcp_add"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| args | No | ||
| name | Yes | ||
| scope | No | project | |
| trust | No | ||
| headers | No | ||
| env_vars | No | ||
| timeout_s | No | ||
| transport | No | stdio | |
| timeout_ms | No | ||
| description | No | ||
| exclude_tools | No | ||
| include_tools | No | ||
| command_or_url | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |