Skip to main content
Glama
Retrieval-Augmented Thinking MCP Server

Retrieval-Augmented Thinking MCP Server

by stat-guy

検索拡張思考MCPサーバー

構造化された検索拡張思考プロセスによってAIモデルの機能を強化するMCP(モデル・コンテキスト・プロトコル)サーバー実装。このサーバーは、動的な思考連鎖、並列探索パス、再帰的な改良サイクルを可能にし、推論と問題解決能力を向上させます。

特徴

  • 適応型思考チェーン:分岐と修正機能により一貫した推論フローを維持します

  • 反復的な仮説生成:仮説検定のための検証サイクルを実装する

  • コンテキストの一貫性: 非線形推論パス全体でコンテキストを維持する

  • ダイナミックスコープ調整:柔軟な探索と改良をサポート

  • 品質評価:思考プロセスのリアルタイム評価

  • ブランチ管理: 並列探索パスを処理する

  • リビジョントラッキング: 再帰的な改良サイクルを管理します

Related MCP server: Sequential Thinking MVP Server

インストール

npm install @modelcontextprotocol/server-retrieval-augmented-thinking

使用法

コマンドライン

mcp-server-retrieval-augmented-thinking

プログラムによる使用

import { Server } from '@modelcontextprotocol/sdk/server';
import { StdioServerTransport } from '@modelcontextprotocol/sdk/server/stdio';

// Initialize and run the server
const server = new Server({
  name: 'retrieval-augmented-thinking',
  version: '0.1.0'
});

// Connect transport
const transport = new StdioServerTransport();
await server.connect(transport);

ツール構成

サーバーは、次のパラメータを持つツールを提供します。

  • thought (文字列):現在の推論ステップ

  • thoughtNumber (数字):推論の連鎖における位置

  • totalThoughts (数値): 推定範囲

  • nextThoughtNeeded (boolean): チェーン継続信号

  • isRevision (ブール値、オプション):改良ステップをマークする

  • revisesThought (数値、オプション): 参照対象の思考

  • branchFromThought (数値、オプション): 分岐の起点

  • branchId (文字列、オプション): ブランチ識別子

  • needsMoreThoughts (ブール値、オプション): スコープ拡張シグナル

高度な機能

思考連鎖分析

サーバーは思考連鎖の品質に関するさまざまな指標を追跡します。

  • チェーンの有効性

  • 改訂の影響

  • ブランチ成功率

  • 全体的な品質

  • 個人の思考指標(複雑さ、深さ、質、影響)

パターン認識

以下の思考パターンを分析します:

  • 推論構造

  • コンテキストの保存

  • 仮説検証

  • ソリューションの一貫性

発達

# Build
npm run build

# Watch mode
npm run watch

貢献

貢献を歓迎します!貢献ガイドラインをお読みになり、プルリクエストを送信してください。

ライセンス

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

Available Tools

1 tool
ratB

A context-aware reasoning system that orchestrates structured thought processes through dynamic trajectories.

Core Capabilities:

  • Maintains adaptive thought chains with branching and revision capabilities

  • Implements iterative hypothesis generation and validation cycles

  • Preserves context coherence across non-linear reasoning paths

  • Supports dynamic scope adjustment and trajectory refinement

Reasoning Patterns:

  • Sequential analysis with backtracking capability

  • Parallel exploration through managed branch contexts

  • Recursive refinement via structured revision cycles

  • Hypothesis validation through multi-step verification

Parameters: thought: Structured reasoning step that supports: • Primary analysis chains • Hypothesis formulation/validation • Branch exploration paths • Revision proposals • Context preservation markers • Verification checkpoints

next_thought_needed: Signal for continuation of reasoning chain thought_number: Position in current reasoning trajectory total_thoughts: Dynamic scope indicator (adjustable) is_revision: Marks recursive refinement steps revises_thought: References target of refinement branch_from_thought: Indicates parallel exploration paths branch_id: Context identifier for parallel chains needs_more_thoughts: Signals scope expansion requirement

Execution Protocol:

  1. Initialize with scope estimation

  2. Generate structured reasoning steps

  3. Validate hypotheses through verification cycles

  4. Maintain context coherence across branches

  5. Implement revisions through recursive refinement

  6. Signal completion on validation success

The system maintains solution integrity through continuous validation cycles while supporting dynamic scope adjustment and non-linear exploration paths.

Inputs: thought (required), thoughtNumber (required), totalThoughts (required), nextThoughtNeeded (required), +5 more.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3.1/5.0

    Scored across 1 tool

    Disambiguation5/5

    Only one tool exists, so there is no possibility of confusion or misselection. The tool's purpose, while broad, is clearly the sole entry point.

    Naming Consistency2/5

    The single tool name 'rat' is vague and does not follow a clear verb_noun pattern or any recognizable convention. With only one tool, there's no consistent pattern to infer, and the name appears arbitrary.

    Tool Count3/5

    Exposing just one tool is on the lower end of acceptable, borderline 'thin.' Although the tool is highly capable, a server focused on 'Retrieval-Augmented Thinking' might benefit from separate tools for retrieval and reasoning sub-tasks.

    Completeness2/5

    The server name implies both retrieval and thinking, but the tool only covers the reasoning aspect, missing retrieval or external context fetching. This leaves a significant gap in the expected functionality, and the single tool is overloaded with parameters rather than modularly covering the domain.

    Related MCP Connectors

    Related MCP Servers