Gemini Thinking Server
モデルコンテキストプロトコル - Gemini Thinking Server
これは、Google の Gemini API と統合して、コードを生成せずに分析的思考機能を提供する Model Context Protocol (MCP) の実装です。
概要
Gemini Thinking Serverは、GoogleのGeminiモデルを活用し、シーケンシャル思考と問題解決能力を提供する専用のMCPサーバーです。以下の機能を提供します。
複雑な問題を段階的に分解する
修正の余地がある計画と設計
軌道修正が必要な分析
当初は全体の範囲が明確でない可能性がある問題
Related MCP server: MCP Gemini Server
特徴
ジェミニパワー思考:ジェミニの分析能力を活用して思慮深い応答を生成します
メタ解説:推論プロセスに関する洞察を提供する
信頼度レベル: ジェミニの分析に対する信頼度を示します
代替パス:問題に対する異なるアプローチを提案する
思考の分岐:異なる思考経路の探索を可能にする
修正機能: 過去の考えの修正をサポート
セッションの永続性: 分析セッションを保存して再開する
インストール
# 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ライセンス
マサチューセッツ工科大学
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/bartekke8it56w2/new-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server