MCP Sage
mcp-sage
MCP(モデルコンテキストプロトコル)サーバーは、トークン数に基づいてOpenAIのO3モデルまたはGoogleのGemini 2.5 Proにプロンプトを送信するためのツールを提供します。これらのツールは、参照されているすべてのファイルパス(フォルダの場合は再帰的に)をプロンプトに埋め込みます。これは、大量のコンテキストを正確に処理できるモデルからセカンドオピニオンや詳細なコードレビューを得るのに役立ちます。
根拠
Claude Codeを頻繁に使用しています。私のワークフローに非常によく合う素晴らしい製品です。大容量のコンテキストを備えた新しいモデルは、より多くのコンテキストが必要となる複雑なコードベースを扱う際に非常に便利です。これにより、Claude Codeを開発ツールとして使い続けながら、O3とGemini 2.5 Proの大容量コンテキスト機能を活用して、Claude Codeの限られたコンテキストを補うことができます。
Related MCP server: Claude Code Review MCP
モデル選択
サーバーは、トークン数と利用可能な API キーに基づいて適切なモデルを自動的に選択します。
小さいコンテキスト(20万トークン以下)の場合:OpenAIのO3モデルを使用します(OPENAI_API_KEYが設定されている場合)
より大きなコンテキスト(200K以上100万トークン以下)の場合:GoogleのGemini 2.5 Proを使用します(GEMINI_API_KEYが設定されている場合)
コンテンツが100万トークンを超える場合: 情報エラーを返します
フォールバック動作:
APIキーフォールバック:
OPENAI_API_KEY がない場合、100万トークン制限内のすべてのコンテキストで Gemini が使用されます。
GEMINI_API_KEY がない場合、O3 では小さいコンテキスト (≤ 200K トークン) のみを処理できます。
両方のAPIキーが欠落している場合は、情報エラーが返されます。
ネットワーク接続フォールバック:
OpenAI APIにアクセスできない場合(ネットワークエラー)、システムは自動的にGeminiにフォールバックします。
これにより、1つのプロバイダによる一時的なネットワーク問題に対する耐性が強化されます。
フォールバックが機能するには GEMINI_API_KEY を設定する必要があります
インスピレーション
このプロジェクトは、他の 2 つのオープン ソース プロジェクトからインスピレーションを得ています。
simonw/files-to-prompt でファイル圧縮を要求
アイデアを提供してくれたasadm/vibemode さん、そしてリポジトリ全体を Gemini に送信して編集の提案をまとめてもらえるよう促してくれた
PhialsBasement/Chain-of-Recursive-Thoughts は、 sage-plan ツールのインスピレーションとなりました。
概要
このプロジェクトでは、次の 3 つのツールを公開する MCP サーバーを実装します。
sage-opinion
プロンプトとファイル/ディレクトリパスのリストを入力として受け取ります
ファイルを構造化されたXML形式にパックします
トークン数を測定し、適切なモデルを選択します。
20万トークン以下の場合はO3
20万トークン以上100万トークン以下のGemini 2.5 Pro
選択したモデルにプロンプトとコンテキストの組み合わせを送信します
モデルの応答を返す
sage-review
コード変更の指示とファイル/ディレクトリパスのリストを入力として受け取ります
ファイルを構造化されたXML形式にパックします
トークン数を測定し、適切なモデルを選択します。
20万トークン以下の場合はO3
20万トークン以上100万トークン以下のGemini 2.5 Pro
SEARCH/REPLACEブロックを使用してモデルに応答をフォーマットするように指示する特別なプロンプトを作成します。
選択したモデルにコンテキストと指示の組み合わせを送信します
簡単に実装できるように、SEARCH/REPLACE ブロックとしてフォーマットされた編集候補を返します。
sage-plan
実装計画とファイル/ディレクトリパスのリストを要求するプロンプトを入力として受け取ります
ファイルを構造化されたXML形式にパックします
複数のモデルに関する議論を調整し、高品質の実装計画を作成します。
モデルは複数のラウンドを通じて互いの計画を批評し、改良する
詳細な手順を含む、成功した実装計画を返します
sage-plan - マルチモデルと自己討論ワークフロー
sage-planツールは、単一のモデルにプランを求めるのではなく、1ラウンド以上にわたる構造化されたディベートを編成し、その後、別の審査員モデル(またはCoRTモードの同じモデル)に勝者を選んでもらいます。
1. マルチモデル討論フロー
flowchart TD
S0[Start Debate] -->|determine models, judge, budgets| R1
subgraph R1["Round 1"]
direction TB
R1GEN["Generation Phase<br/>*ALL models run in parallel*"]
R1GEN --> R1CRIT["Critique Phase<br/>*ALL models critique others in parallel*"]
end
subgraph RN["Rounds 2 to N"]
direction TB
SYNTH["Synthesis Phase<br/>*every model refines own plan*"]
SYNTH --> CONS[Consensus Check]
CONS -->|Consensus reached| JUDGE
CONS -->|No consensus & round < N| CRIT["Critique Phase<br/>*models critique in parallel*"]
CRIT --> SYNTH
end
R1 --> RN
JUDGE[Judgment Phase<br/>*judge model selects/merges plan*]
JUDGE --> FP[Final Plan]
classDef round fill:#e2eafe,stroke:#4169E1;
class R1GEN,R1CRIT,SYNTH,CRIT round;
style FP fill:#D0F0D7,stroke:#2F855A,stroke-width:2px
style JUDGE fill:#E8E8FF,stroke:#555,stroke-width:1pxマルチモデルに関する議論の重要な段階:
セットアップフェーズ
システムは利用可能なモデルを決定し、審査員を選択し、トークン予算を割り当てます
第1ラウンド
生成フェーズ- 利用可能なすべてのモデル(A、B、Cなど)が独自の実装計画を並行して作成します。
批評段階- 各モデルは他のすべての計画(自身の計画ではない)をレビューし、並行して構造化された批評を作成します。
2 から N までラウンドします(N のデフォルトは 3)
統合フェーズ- 各モデルは受け取った批評を使用して以前の計画を改善します(モデルは並行して動作します)
コンセンサスチェック- ジャッジモデルは、現在のすべての計画間の類似性を評価します
スコアが0.9以上の場合、議論は早期に終了し、判定に進みます。
批評段階- 合意に至らず、最終ラウンドにも進まない場合は、各モデルが他のすべての計画を再度(並行して)批評します。
判定フェーズ
すべてのラウンドを完了した後(または早期に合意に達した後)、審査員モデル(デフォルトでは O3)は次のようになります。
最適なプランを1つ選択するか、複数のプランを1つの優れたプランに統合します
選択/合成の信頼スコアを提供する
2. 自己討論フロー - 単一モデルのみ利用可能
flowchart TD
SD0[Start Self-Debate] --> R1
subgraph R1["Round 1 - Initial Plans"]
direction TB
P1[Generate Plan 1] --> P2[Generate Plan 2<br/>*different approach*]
P2 --> P3[Generate Plan 3<br/>*different approach*]
end
subgraph RN["Rounds 2 to N"]
direction TB
REF[Generate Improved Plan<br/>*addresses weaknesses in all previous plans*]
DEC{More rounds left?}
REF --> DEC
DEC -->|Yes| REF
end
R1 --> RN
DEC -->|No| FP[Final Plan = last plan generated]
style FP fill:#D0F0D7,stroke:#2F855A,stroke-width:2px利用できるモデルが 1 つしかない場合は、 Chain of Recursive Thoughts (CoRT)アプローチが使用されます。
初期バースト- モデルは3つの異なる計画を生成し、それぞれ異なるアプローチを採用します。
改良ラウンド- 後続の各ラウンド (2 ~ N、デフォルト N = 3):
モデルは過去の計画をすべて見直す
内部的に批評し、強みと弱みを特定する
以前の計画の限界を克服した新しい改善計画を1つ作成する
最終選択- 最後に生成された計画が最終的な実装計画になります
コード内で実際に何が起こるか(クイックリファレンス)
フェーズ/機能 | コードの場所 | 注記 |
生成プロンプト | プロンプト/debatePrompts.generatePrompt | 「# 実装計画 (モデル X)」という見出しを追加します |
批評のきっかけ | プロンプト/debatePrompts.critiquePrompt | 「## プラン {ID} の批評」セクションを使用します |
合成プロンプト | プロンプト/debatePrompts.synthesizePrompt | モデルは独自の計画を修正 |
コンセンサスチェック | debateOrchestrator.checkConsensus | ジャッジモデルは |
判定 | プロンプト/debatePrompts.judgePrompt | 裁判官は「#最終実施計画」+自信を返した |
自己討論のきっかけ | プロンプト/ディベートPrompts.selfDebatePrompt | 再帰的思考の連鎖ループ |
パフォーマンスとコストの考慮
⚠️ 重要: sage-plan ツールでは次のことが可能です。
完了するまでにかなりの時間がかかります(複数のモデルの場合は 5 ~ 10 分)
複数回の議論により大量のAPIトークンを消費する
単一モデルのアプローチよりもコストが高くなる
一般的なリソース使用量:
マルチモデルの議論:単一モデルアプローチよりも2~4倍多くのトークン
処理時間: 複雑さとモデルの可用性に応じて 5~10 分
API コスト: プラン生成ごとに 0.30 ~ 1.50 ドル (使用するモデルとプランの複雑さによって異なります)
前提条件
Node.js (v18以降)
Google Gemini API キー(大規模なコンテキスト向け)
OpenAI API キー(小規模なコンテキスト用)
インストール
# Clone the repository
git clone https://github.com/your-username/mcp-sage.git
cd mcp-sage
# Install dependencies
npm install
# Build the project
npm run build環境変数
次の環境変数を設定します。
OPENAI_API_KEY: OpenAI API キー (O3 モデルの場合)GEMINI_API_KEY: Google Gemini API キー (Gemini 2.5 Pro 用)
使用法
npm run buildでビルドした後、MCP 構成に以下を追加します。
OPENAI_API_KEY=your_openai_key GEMINI_API_KEY=your_gemini_key node /path/to/this/repo/dist/index.jsシェル プロファイルなど、他の場所で設定された環境変数を使用することもできます。
促す
何かについてセカンドオピニオンを得るには、セカンドオピニオンを求めてください。
コードレビューを受けるには、コードレビューまたは専門家によるレビューを依頼してください。
これらは両方とも、コンテキストに含めるファイルのパスを提供することでメリットを得られますが、省略すると、ホスト LLM が何を含めるかを推測する可能性があります。
デバッグと監視
サーバーはMCPログ機能を通じて詳細な監視情報を提供します。これらのログには以下が含まれます。
トークンの使用統計とモデルの選択
リクエストに含まれるファイルと文書の数
リクエスト処理時間のメトリクス
トークン制限を超えた場合のエラー情報
ログはMCPプロトコルのnotifications/message方式を介して送信されるため、JSON-RPC通信に干渉することはありません。ログ機能をサポートするMCPクライアントは、これらのログを適切に表示します。
ログエントリの例:
Token usage: 1,234 tokens. Selected model: o3-2025-04-16 (limit: 200,000 tokens)
Files included: 3, Document count: 3
Sending request to OpenAI o3-2025-04-16 with 1,234 tokens...
Received response from o3-2025-04-16 in 982msToken usage: 235,678 tokens. Selected model: gemini-2.5-pro-preview-03-25 (limit: 1,000,000 tokens)
Files included: 25, Document count: 18
Sending request to Gemini with 235,678 tokens...
Received response from gemini-2.5-pro-preview-03-25 in 3240msツールの使用
sage-opinionツール
sage-opinionツールは次のパラメータを受け入れます。
prompt(文字列、必須): 選択したモデルに送信するプロンプトpaths(文字列の配列、必須): コンテキストとして含めるファイルパスのリスト
MCP ツール呼び出しの例 (JSON-RPC 2.0 を使用):
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "sage-opinion",
"arguments": {
"prompt": "Explain how this code works",
"paths": ["path/to/file1.js", "path/to/file2.js"]
}
}
}sage-reviewツール
sage-reviewツールは次のパラメータを受け入れます。
instruction(文字列、必須): 必要な具体的な変更または改善paths(文字列の配列、必須): コンテキストとして含めるファイルパスのリスト
MCP ツール呼び出しの例 (JSON-RPC 2.0 を使用):
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "sage-review",
"arguments": {
"instruction": "Add error handling to the function",
"paths": ["path/to/file1.js", "path/to/file2.js"]
}
}
}応答には、提案された変更を実装するために使用できる SEARCH/REPLACE ブロックが含まれます。
<<<<<<< SEARCH
function getData() {
return fetch('/api/data')
.then(res => res.json());
}
=======
function getData() {
return fetch('/api/data')
.then(res => {
if (!res.ok) {
throw new Error(`HTTP error! Status: ${res.status}`);
}
return res.json();
})
.catch(error => {
console.error('Error fetching data:', error);
throw error;
});
}
>>>>>>> REPLACEsage-planツール
sage-planツールは次のパラメータを受け入れます。
prompt(文字列、必須): 実装計画が必要な内容の説明paths(文字列の配列、必須): コンテキストとして含めるファイルパスのリスト
MCP ツール呼び出しの例 (JSON-RPC 2.0 を使用):
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "sage-plan",
"arguments": {
"prompt": "Create an implementation plan for adding user authentication to this application",
"paths": ["src/index.js", "src/models/", "src/routes/"]
}
}
}回答には、次の内容を含む詳細な実装計画が含まれています。
高レベルアーキテクチャの概要
具体的な実施手順
ファイルの変更が必要
テスト戦略
潜在的な課題と緩和策
このプランは、複数の AI モデルの集合知 (または単一のモデルによる徹底した自己レビュー) の恩恵を受けており、通常、単一パスのアプローチよりも堅牢で思慮深く詳細な推奨事項が含まれています。
テストの実行
ツールをテストするには:
# Test the sage-opinion tool
OPENAI_API_KEY=your_openai_key GEMINI_API_KEY=your_gemini_key node test/run-test.js
# Test the sage-review tool
OPENAI_API_KEY=your_openai_key GEMINI_API_KEY=your_gemini_key node test/test-expert.js
# Test the sage-plan tool
OPENAI_API_KEY=your_openai_key GEMINI_API_KEY=your_gemini_key node test/run-sage-plan.js
# Test the model selection logic specifically
OPENAI_API_KEY=your_openai_key GEMINI_API_KEY=your_gemini_key node test/test-o3.js注: sage-plan テストは、複数のモデルの議論を調整するため、実行に 5 ~ 15 分かかる場合があります。
プロジェクト構造
src/index.ts: ツール定義を含むメインのMCPサーバー実装src/pack.ts: ファイルを構造化されたXML形式にパックするためのツールsrc/tokenCounter.ts: プロンプト内のトークンをカウントするためのユーティリティsrc/gemini.ts: Gemini API クライアント実装src/openai.ts: O3 モデル用の OpenAI API クライアント実装src/debateOrchestrator.ts: sage-plan のマルチモデルディベートオーケストレーションsrc/prompts/debatePrompts.ts: ディベートのプロンプトと指示のテンプレートtest/run-test.js: sage-opinion ツールのテストtest/test-expert.js: sage-review ツールのテストtest/run-sage-plan.js: sage-plan ツールのテストtest/test-o3.js: モデル選択ロジックのテスト
ライセンス
ISC
Available Tools
3 toolssage-opinionA
Send a prompt to sage-like model for its opinion on a matter.
Include the paths to all relevant files and/or directories that are pertinent to the matter.
IMPORTANT: All paths must be absolute paths (e.g., /home/user/project/src), not relative paths.
Do not worry about context limits; feel free to include as much as you think is relevant. If you include too much it will error and tell you, and then you can include less. Err on the side of including more context.| Name | Required | Description | Default |
|---|---|---|---|
| paths | Yes | Paths to include as context. MUST be absolute paths (e.g., /home/user/project/src). Including directories will include all files contained within recursively. | |
| prompt | Yes | The prompt to send to the external model. |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
No annotations are provided, so the description carries the full burden. It discloses key behavioral traits: the tool sends a prompt to an external model, handles file paths as context, uses absolute paths, and may error if too much context is included. However, it lacks details on rate limits, authentication needs, or what the 'sage-like model' entails (e.g., model type, limitations). The description doesn't contradict annotations since none exist.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is appropriately sized and front-loaded, with the core purpose stated first. It uses bullet-like formatting for key points (paths, absolute paths, context limits), but includes some redundancy (e.g., repeating absolute path requirement). Most sentences earn their place by clarifying usage, though it could be slightly more streamlined.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Given the tool's moderate complexity (2 parameters, no output schema, no annotations), the description is somewhat complete but has gaps. It covers the basic operation and constraints, but lacks details on the model's behavior, error handling specifics, or output expectations. Without annotations or an output schema, more context on what 'opinion' entails would improve completeness.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 100%, so the schema already documents both parameters ('paths' and 'prompt') with descriptions. The description adds minimal value beyond the schema: it reiterates the need for absolute paths and context inclusion but doesn't provide additional syntax, format details, or examples. Baseline 3 is appropriate as the schema does the heavy lifting.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the tool's purpose: 'Send a prompt to sage-like model for its opinion on a matter.' It specifies the verb ('send'), resource ('sage-like model'), and action ('for its opinion'). However, it doesn't explicitly differentiate from sibling tools like 'sage-plan' or 'sage-review' beyond the 'opinion' focus, which is implied but not contrasted.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description provides clear usage context: 'Include the paths to all relevant files and/or directories that are pertinent to the matter' and advises on absolute paths and context limits. It implicitly suggests using this tool for opinion-seeking tasks, but it doesn't explicitly state when to choose this over siblings like 'sage-plan' or 'sage-review', nor does it list exclusions or alternatives.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
sage-planA
Generate an implementation plan via multi-model debate.
This tool leverages multiple AI models to debate, critique, and refine implementation plans.
Models will generate initial plans, critique each other's work, refine their plans based on critiques,
and finally produce a consensus plan that combines the best ideas.
IMPORTANT: All paths must be absolute paths (e.g., /home/user/project/src), not relative paths.
The process creates detailed, well-thought-out implementation plans that benefit from
diverse model perspectives and iterative refinement.
When the optional outputPath parameter is provided, the final plan will be saved to that file path,
and a complete transcript of the debate will be saved to a companion file with "-full-transcript"
added to the filename. This is strongly recommended for preserving the expensive results of the debate.| Name | Required | Description | Default |
|---|---|---|---|
| maxTokens | No | Maximum token budget for the debate | |
| outputPath | No | Markdown file path to save the final plan. Will also save a full transcript to a '-full-transcript.md' suffixed file. | |
| paths | Yes | Paths to include as context. MUST be absolute paths (e.g., /home/user/project/src). Including directories will include all files contained within recursively. | |
| prompt | Yes | The task to create an implementation plan for | |
| rounds | No | Number of debate rounds (default: 3) |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations provided, the description carries the full burden of behavioral disclosure. It effectively describes key behavioral traits: the multi-model debate process (generation, critique, refinement, consensus), the creation of detailed plans, and file-saving behavior when outputPath is provided. It also notes the expense of the debate, which is useful context. However, it lacks details on error handling or performance expectations.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is appropriately sized and front-loaded, starting with the core purpose. Most sentences add value, such as explaining the debate process and file-saving behavior. However, some redundancy exists (e.g., reiterating absolute paths), and the structure could be slightly tighter by integrating the IMPORTANT note more seamlessly.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Given the complexity of a 5-parameter tool with no annotations and no output schema, the description does a good job of covering the tool's behavior and key usage aspects. It explains the debate process and file outputs, but it could be more complete by detailing the format of the output (e.g., Markdown structure) or potential limitations, which would help set clearer expectations for the agent.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 100%, so the schema already documents all parameters thoroughly. The description adds some value by emphasizing the importance of absolute paths for the 'paths' parameter and explaining the file-saving behavior for 'outputPath', but it does not provide additional semantic context beyond what the schema offers, such as typical use cases for parameters like 'maxTokens' or 'rounds'.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the tool's purpose: 'Generate an implementation plan via multi-model debate.' It specifies the verb ('generate') and resource ('implementation plan'), and distinguishes it from siblings by detailing the unique multi-model debate process, which is not implied by the sibling names 'sage-opinion' and 'sage-review'.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description provides clear context for when to use this tool: for creating detailed, well-thought-out implementation plans through iterative debate. However, it does not explicitly state when not to use it or mention alternatives like the sibling tools, which could help differentiate use cases more precisely.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
sage-reviewA
Send code to the sage model for expert review and get specific edit suggestions as SEARCH/REPLACE blocks.
Use this tool any time the user asks for a "sage review" or "code review" or "expert review".
This tool includes the full content of all files in the specified paths and instructs the model to return edit suggestions in a specific format with search and replace blocks.
IMPORTANT: All paths must be absolute paths (e.g., /home/user/project/src), not relative paths.
If the user hasn't provided specific paths, use as many paths to files or directories as you're aware of that are useful in the context of the prompt.| Name | Required | Description | Default |
|---|---|---|---|
| instruction | Yes | The specific changes or improvements needed. | |
| paths | Yes | Paths to include as context. MUST be absolute paths (e.g., /home/user/project/src). Including directories will include all files contained within recursively. |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations provided, the description carries the full burden of behavioral disclosure. It explains that the tool includes 'full content of all files in the specified paths' and returns 'edit suggestions in a specific format with search and replace blocks', which adds useful context beyond basic functionality. However, it doesn't cover potential limitations like rate limits, authentication needs, or error conditions.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is well-structured and appropriately sized, with key information front-loaded. However, the second paragraph could be more concise, and the 'IMPORTANT' section repeats path information already stated elsewhere, slightly reducing efficiency.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Given the tool's complexity (code review with file processing) and lack of annotations/output schema, the description is moderately complete. It explains the core behavior and format of suggestions but doesn't detail what happens with invalid paths, how large files are handled, or the structure of the returned edit blocks, leaving some gaps for an AI agent.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 100%, so the schema already documents both parameters thoroughly. The description reinforces that paths 'must be absolute paths' and mentions directory recursion, but this is already covered in the schema. It adds minimal value beyond what the structured schema provides, meeting the baseline for high coverage.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the tool's purpose with specific verbs ('send code', 'get specific edit suggestions') and resources ('sage model', 'SEARCH/REPLACE blocks'). It distinguishes from sibling tools by specifying this is for 'expert review' with edit suggestions, unlike 'sage-opinion' or 'sage-plan' which likely serve different purposes.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description provides explicit usage guidelines: 'Use this tool any time the user asks for a "sage review" or "code review" or "expert review"'. It also includes alternative handling when paths aren't specified ('use as many paths... as you're aware of'), giving clear context for when and how to invoke the tool.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
3 tool updates
v1.0.0- First observed
sage-opinion - First observed
sage-plan - First observed
sage-review
TDQS
Scored across 3 tools
Each tool has a clearly distinct purpose: sage-opinion provides opinions on matters, sage-plan generates implementation plans through debate, and sage-review offers code review with edit suggestions. There is no overlap in functionality, and the descriptions clearly differentiate their roles.
All tool names follow a consistent 'sage-' prefix with a descriptive suffix (opinion, plan, review), using kebab-case throughout. This pattern is predictable and enhances readability, making it easy to identify the tool's function at a glance.
With 3 tools, the count is appropriate for a server focused on AI-assisted development tasks, as it covers key areas like opinion generation, planning, and code review. It is slightly lean but reasonable, as each tool serves a distinct and valuable purpose without redundancy.
The tool set covers core AI-assisted development workflows: opinion generation, planning, and code review. Minor gaps exist, such as the lack of tools for executing plans or managing project states, but agents can work around these by combining tools or using external methods.
Maintenance
Related MCP Connectors
An MCP server that gives your AI access to the source code and docs of all public github repos
MCP server for generating rough-draft project plans from natural-language prompts.
Driflyte MCP server which lets AI assistants query topic-specific knowledge from web and GitHub.
Related MCP Servers
- FlicenseAqualityDmaintenanceAn MCP server that connects Gemini 2.5 Pro to Claude Code, enabling users to generate detailed implementation plans based on their codebase and receive feedback on code changes.514-
- AlicenseAqualityFmaintenanceAn MCP server that provides code review functionality using OpenAI, Google, and Anthropic models, serving as a "second opinion" tool that works with any MCP client.1104 npm34MIT
- AlicenseAqualityDmaintenanceAn MCP server that gives your IDE or agent access to Google Gemini with autonomous codebase exploration, enabling deep code analysis, architectural reviews, and bug hunting.2010MIT
- AlicenseNot gradedqualityCmaintenanceAn MCP server that integrates Google Gemini CLI with Claude Code for AI-powered development assistance, enabling code review, bug analysis, feature planning, and code explanation without requiring an API key.8MIT