Model Context Protocol (MCP) with Gemini 2.5 Pro. Convert conversational queries into flight searches using Gemini's function calling capabilities and MCP's flight search tools
接入配置
选择客户端,复制配置,再按项目文档补齐环境变量。
claude mcp add gemini-function-calling-model-context-pr -- python client.py~/.codex/config.toml
[mcp_servers.gemini-function-calling-model-context-pr]
command = "python"
args = ["client.py"]
# codex mcp add gemini-function-calling-model-context-pr -- python client.py~/.cursor/mcp.json
{
"mcpServers": {
"gemini-function-calling-model-context-pr": {
"command": "python",
"args": [
"client.py"
]
}
}
}.vscode/mcp.json
{
"servers": {
"gemini-function-calling-model-context-pr": {
"type": "stdio",
"command": "python",
"args": [
"client.py"
]
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"gemini-function-calling-model-context-pr": {
"command": "python",
"args": [
"client.py"
]
}
}
}claude_desktop_config.json
{
"mcpServers": {
"gemini-function-calling-model-context-pr": {
"command": "python",
"args": [
"client.py"
]
}
}
}.trae/mcp.json
{
"mcpServers": {
"gemini-function-calling-model-context-pr": {
"command": "python",
"args": [
"client.py"
]
}
}
}