AG

angrysky56/gemini-mcp-client

Developer tools

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る

22 stars 8 forks 品質 48 トレンド 0

インテリジェントなツール使用と会話処理のためにGoogle Gemini AIモデルを使用するMCP(Model Context Protocol)クライアント。 現在、Claude Desktop を MCP Server としてテストしました.

概要

クレジットから始まり、メディウム.com/@fruitful2007/ビルアンmcp-client-101-lets-build-one-for-a-gemini-chat-agent GoogleのGemini AIモデルを使用した強力なMCP(Model Context Protocol)クライアントは、インテリジェントなツールの使用と会話処理を実現します。 - 現在、MCP Server として Claude Desktop で動作するようにテスト済みです。 - : 様々なジェミニモデル(2.0-flash、2.5-pro、1.5-proなど)のサポート - : gemini-tool-agent, google-generativeai, または google-genai パッケージで動作します - : 会話中にモデルを変更 - : MCP サーバーの設定を保存し、管理します - : AI 搭載のツールの検出と実行 - : 効率的な同時操作 - : エラーの回復とロギング - : 完全なタイプの安全と現代のPythonの慣行 エージェントディレクトリから "adk web" を使用して、エージェントを変更します。 シンプルな Gemini mcp で、セットアップが向上するまでは、自分でピパスします。 フル mcp agent-README.

概要(AI 翻訳)

クレジットから始まり、メディウム.com/@fruitful2007/ビルアンmcp-client-101-lets-build-one-for-a-gemini-chat-agent

pypi.org/project/gemini-tool-agentの使い方

GoogleのGemini AIモデルを使用した強力なMCP(Model Context Protocol)クライアントは、インテリジェントなツールの使用と会話処理を実現します。

  • 現在、MCP Server として Claude Desktop で動作するようにテスト済みです。

独自のリスクで非コーダ使用による未テストのAI遺伝子コードに基づく。

##特徴

  • 複数のGeminiモデル:さまざまなGeminiモデル(2.0-flash、2.5-pro、1.5-pro、等)のサポート -フレキシブルパッケージサポート:gemini-tool-agent、Google-generativeai、またはGoogle-genaiパッケージで動作します -Runtimeモデル切り替え: 会話中にモデルを変更する
  • サーバー構成管理: MCP サーバーの設定を保存して管理
  • 理性的な用具の使用法:AI動力を与えられた用具の発見および実行 -Async/await サポート:効率的な同時操作
  • 包括的なエラー処理: 強力なエラー回復とロギング
  • タイプヒント:フルタイプの安全性を備えたモダンなPythonの慣行

エージェントディレクトリから “adk web” を使用して、エージェントを変更します.

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。

README

以下は原文 README の抜粋です。原文を見る。

MCP Gemini Client

Credit to and started from- medium.com/@fruitful2007/building-an-mcp-client-101-lets-build-one-for-a-gemini-chat-agent

pypi.org/project/gemini-tool-agent

A (potentially, lol) powerful MCP (Model Context Protocol) client that uses Google’s Gemini AI models for intelligent tool usage and conversation handling.

  • Tested working nicely with Claude Desktop as an MCP Server currently.

Based on untested AI gen code by a non-coder use at own risk.

Features

  • Multiple Gemini Models: Support for various Gemini models (2.0-flash, 2.5-pro, 1.5-pro, etc.)
  • Flexible Package Support: Works with gemini-tool-agent, google-generativeai, or google-genai packages
  • Runtime Model Switching: Change models during conversation
  • Server Configuration Management: Store and manage MCP server configurations
  • Intelligent Tool Usage: AI-powered tool discovery and execution
  • Async/await Support: Efficient concurrent operations
  • Comprehensive Error Handling: Robust error recovery and logging
  • Type Hints: Modern Python practices with full type safety

Using “adk web” from agents directory- alter the agent.py paths to your own for simple Gemini mcp use for now until I get a better setup. full_mcp_agent-README.md

google agent framework report text

Installation

📋 Easy Installation Instructions Here’s the correct way to set it up with Claude- maybe, You may need to install this if not working properly:

  • cd /gemini-mcp-client && uv add google-generativeai

Doesn’t throw an error and works great for chat, not sure about Gemini MCP use. Just edit in your paths and use this config in Claude Desktop:

{
  "mcpServers": {
    "gemini-ai": {
      "command": "uv",
      "args": [
        "--directory",
        "/home/ty/Repositories/ai_workspace/gemini-mcp-client",
        "run",
        "python",
        "servers/gemini_mcp_server.py"
      ],
      "env": {
        "GEMINI_API_KEY": "your_gemini_api_key_here"
      }
    },
    "echo-server": {
      "command": "uv",
      "args": [
        "--directory",
        "/home/ty/Repositories/ai_workspace/gemini-mcp-client",
        "run",
        "python",
        "examples/echo_server.py"
      ]
    }
  }
}

Installation outside of Claude if someone wants to try it and maybe develop a Standalone UI for Gemini with MCP Tools!:

  • possibly hallucinatory

This project uses uv for dependency management. Make sure you have uv installed.

Setting up the environment

# Create and activate virtual environment
uv venv --python 3.12 --seed
GitHub で README 全文を見る

インストール

This server does not publish a one-line install command.

Open the repository installation guide MCP 初心者?mcpskill.org のガイドから始めましょう →

設定

{ "mcpServers": { "gemini-ai": { "command": "uv", "args": [ "--directory", "/home/ty/Repositories/ai_workspace/gemini-mcp-client", "run", "python", "servers/gemini_mcp_server.py" ], "env": { "GEMINI_API_KEY": "your_gemini_api_key_here" } }, "echo-server": { "command": "uv", "args": [ "--directory", "/home/ty/Repositories/ai_workspace/gemini-mcp-client", "run", "python", "examples/echo_server.py" ] } } }