Gemini Thinking Server

hybrid server

The server is able to function both locally and remotely, depending on the configuration or use case.

Integrations

  • Leverages Google's Gemini API to provide analytical thinking capabilities for complex problem-solving without code generation, featuring meta-commentary, confidence levels, and alternative solution paths.

モデルコンテキストプロトコル - Gemini Thinking Server

これは、Google の Gemini API と統合して、コードを生成せずに分析的思考機能を提供する Model Context Protocol (MCP) の実装です。

概要

Gemini Thinking Serverは、GoogleのGeminiモデルを活用し、シーケンシャル思考と問題解決能力を提供する専用のMCPサーバーです。以下の機能を提供します。

  • 複雑な問題を段階的に分解する
  • 修正の余地がある計画と設計
  • 軌道修正が必要な分析
  • 当初は全体の範囲が明確でない可能性がある問題

特徴

  • ジェミニパワー思考:ジェミニの分析能力を活用して思慮深い応答を生成します
  • メタ解説:推論プロセスに関する洞察を提供する
  • 信頼度レベル: ジェミニの分析に対する信頼度を示します
  • 代替パス:問題に対する異なるアプローチを提案する
  • 思考の分岐:異なる思考経路の探索を可能にする
  • 修正機能: 過去の考えの修正をサポート
  • セッションの永続性: 分析セッションを保存して再開する

インストール

# Clone the repository git clone <repository-url> # Install dependencies npm install # Build the project npm run build

使用法

環境設定

サーバーを実行する前に、Gemini API キーを設定する必要があります。

export GEMINI_API_KEY=your_api_key_here

サーバーの実行

node dist/gemini-index.js

ツールパラメータ

geminithinkingツールは次のパラメータを受け入れます。

  • query (必須): 分析する質問または問題
  • context (オプション): 追加のコンテキスト情報
  • approach (オプション):問題に対する提案されたアプローチ
  • previousThoughts (オプション): コンテキストの以前の考えの配列
  • thought (オプション):現在の思考ステップ(空の場合は、Geminiによって生成されます)
  • nextThoughtNeeded (必須): 別の思考ステップが必要かどうか
  • thoughtNumber (必須): 現在の思考番号
  • totalThoughts (必須): 必要な推定総思考数
  • isRevision (オプション): 以前の考えを修正するかどうか
  • revisesThought (オプション):どの考えが再考されているか
  • branchFromThought (オプション): 分岐点の思考番号
  • branchId (オプション): ブランチ識別子
  • needsMoreThoughts (オプション): さらに考えが必要な場合

セッション管理

このツールは、セッション管理コマンドもサポートしています。

  • sessionCommand : セッションを管理するためのコマンド ('save'、'load'、'getState')
  • sessionPath : セッションファイルを保存または読み込むパス('save'および'load'コマンドに必要)

例: セッションの保存

{ "sessionCommand": "save", "sessionPath": "/path/to/save/session.json", "query": "dummy", "thoughtNumber": 1, "totalThoughts": 1, "nextThoughtNeeded": false }

例: セッションの読み込み

{ "sessionCommand": "load", "sessionPath": "/path/to/load/session.json", "query": "dummy", "thoughtNumber": 1, "totalThoughts": 1, "nextThoughtNeeded": false }

例: セッション状態の取得

{ "sessionCommand": "getState", "query": "dummy", "thoughtNumber": 1, "totalThoughts": 1, "nextThoughtNeeded": false }

ツールの使用方法の例を次に示します。

{ "query": "How might we design a sustainable urban transportation system?", "context": "The city has 500,000 residents and currently relies heavily on personal vehicles.", "approach": "Consider environmental, economic, and social factors.", "thoughtNumber": 1, "totalThoughts": 5, "nextThoughtNeeded": true }

応答フォーマット

サーバーは次のように応答します:

{ "thought": "The generated thought from Gemini", "thoughtNumber": 1, "totalThoughts": 5, "nextThoughtNeeded": true, "branches": [], "thoughtHistoryLength": 1, "metaComments": "Meta-commentary about the reasoning", "confidenceLevel": 0.85, "alternativePaths": ["Alternative approach 1", "Alternative approach 2"] }

クライアントの例

さまざまなユースケースを示すために、いくつかのサンプル クライアントが提供されています。

  • sample-client.js : 基本的なクライアントの例
  • example-usage.js : 具体的な使用例
  • codebase-analysis-example.js : コードベース分析の例
  • session-example.js : セッションの永続性を示す例
  • advanced-filtering-example.js : 高度なセマンティックフィルタリングを示す例

セッション例を実行するには:

node dist/session-example.js

高度なフィルタリングの例を実行するには:

node dist/advanced-filtering-example.js

ライセンス

マサチューセッツ工科大学

You must be authenticated.

A
security – no known vulnerabilities
F
license - not found
A
quality - confirmed to work

Google の Gemini API を活用して、コード生成なしで順次思考ステップを通じて分析的な問題解決機能を提供する MCP サーバー実装。

  1. Overview
    1. Features
      1. Installation
        1. Usage
          1. Environment Setup
          2. Running the Server
          3. Tool Parameters
          4. Session Management
        2. Example
          1. Response Format
            1. Example Clients
              1. License
                ID: q8pdxnf129