{
"event": "PreToolUse",
"tool_name": "WebFetch",
"tool_input": {
"url": "https:\/\/github.com\/google-gemini\/gemini-cli\/blob\/main\/docs\/get-started\/configuration.md",
"prompt": "What is the correct format for mcpServers configuration? Show the exact JSON structure with command format."
}
}
{
"tool_response": {
"bytes": 404240,
"code": 200,
"codeText": "OK",
"result": "# MCP Servers Configuration Format\n\nThe `mcpServers` configuration uses a top-level object where each key is a server name, with parameters nested underneath.\n\n## Basic JSON Structure\n\n```json\n{\n \"mcpServers\": {\n \"serverName\": {\n \"command\": \"path\/to\/executable\",\n \"args\": [\"arg1\", \"arg2\"],\n \"env\": {\n \"VAR_NAME\": \"value\"\n },\n \"cwd\": \"\/working\/directory\",\n \"timeout\": 30000,\n \"trust\": false,\n \"description\": \"Server description\",\n \"includeTools\": [\"tool1\", \"tool2\"],\n \"excludeTools\": [\"tool3\"]\n }\n }\n}\n```\n\n## Key Parameters\n\n**command** (string): The executable to launch the MCP server via standard I\/O\n\n**args** (array): Arguments passed to the command\n\n**env** (object): Environment variables for the server process\n\n**cwd** (string): Working directory for the server\n\n**timeout** (number): Milliseconds for request timeout\n\n**trust** (boolean): Bypass tool confirmation dialogs for this server\n\n**description** (string): Brief server description for display\n\n**includeTools** \/ **excludeTools** (arrays): Tool allowlist\/blocklist (excludeTools takes precedence)\n\n## Alternative Connection Methods\n\nServers support `url` (SSE) or `httpUrl` (streamable HTTP) instead of `command`, with `headers` for HTTP requests.",
"durationMs": 6206,
"url": "https:\/\/github.com\/google-gemini\/gemini-cli\/blob\/main\/docs\/get-started\/configuration.md"
}
}