Lets Claude Desktop call Google Gemini through seven tools, with tool selection that adapts to past usage.
接入配置
选择客户端,复制配置,再按项目文档补齐环境变量。
claude mcp add gemini-server-garblesnarff --env DEBUG='<DEBUG>' --env GEMINI_API_KEY='<GEMINI_API_KEY>' -- node test-tool-intelligence-full.js~/.codex/config.toml
[mcp_servers.gemini-server-garblesnarff]
command = "node"
args = ["test-tool-intelligence-full.js"]
env = { DEBUG = "<DEBUG>", GEMINI_API_KEY = "<GEMINI_API_KEY>" }
# codex mcp add gemini-server-garblesnarff --env DEBUG='<DEBUG>' --env GEMINI_API_KEY='<GEMINI_API_KEY>' -- node test-tool-intelligence-full.js~/.cursor/mcp.json
{
"mcpServers": {
"gemini-server-garblesnarff": {
"command": "node",
"args": [
"test-tool-intelligence-full.js"
],
"env": {
"DEBUG": "<DEBUG>",
"GEMINI_API_KEY": "<GEMINI_API_KEY>"
}
}
}
}.vscode/mcp.json
{
"servers": {
"gemini-server-garblesnarff": {
"type": "stdio",
"command": "node",
"args": [
"test-tool-intelligence-full.js"
],
"env": {
"DEBUG": "<DEBUG>",
"GEMINI_API_KEY": "<GEMINI_API_KEY>"
}
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"gemini-server-garblesnarff": {
"command": "node",
"args": [
"test-tool-intelligence-full.js"
],
"env": {
"DEBUG": "<DEBUG>",
"GEMINI_API_KEY": "<GEMINI_API_KEY>"
}
}
}
}claude_desktop_config.json
{
"mcpServers": {
"gemini-server-garblesnarff": {
"command": "node",
"args": [
"test-tool-intelligence-full.js"
],
"env": {
"DEBUG": "<DEBUG>",
"GEMINI_API_KEY": "<GEMINI_API_KEY>"
}
}
}
}.trae/mcp.json
{
"mcpServers": {
"gemini-server-garblesnarff": {
"command": "node",
"args": [
"test-tool-intelligence-full.js"
],
"env": {
"DEBUG": "<DEBUG>",
"GEMINI_API_KEY": "<GEMINI_API_KEY>"
}
}
}
}需要的环境变量
DEBUGGEMINI_API_KEY
把占位值换成你自己的密钥;不要把密钥提交到代码仓库。