Labsco
stat-guy logo

Retrieval Augmented Thinking

โ˜… 24

from stat-guy

A server implementing Chain of Draft reasoning for enhanced problem-solving capabilities using OpenAI.

๐Ÿ”ฅ๐Ÿ”ฅ๐Ÿ”ฅโœ“ VerifiedFreeQuick setup

RAT MCP Server (Node.js)

Retrieval Augmented Thinking MCP Server - A reasoning tool that processes structured thoughts with metrics, branching, and revision capabilities.

Tool Parameters

Required

  • thought (string): The thought content to process
  • nextThoughtNeeded (boolean): Whether another thought is needed to continue
  • thoughtNumber (integer): Current thought number in the sequence
  • totalThoughts (integer): Total expected thoughts (adjustable)

Optional

  • isRevision (boolean): Whether this revises a previous thought
  • revisesThought (integer): The thought number being revised
  • branchFromThought (integer): Thought number to branch from
  • branchId (string): Unique identifier for this branch
  • needsMoreThoughts (boolean): Extend beyond totalThoughts if needed

Response Format

{
  "thought_number": 1,
  "total_thoughts": 3,
  "metrics": {
    "complexity": 0.342,
    "depth": 0.521,
    "quality": 0.643,
    "impact": 0.289,
    "confidence": 0.758
  },
  "analytics": {
    "total_thoughts": 5,
    "average_quality": 0.612,
    "chain_effectiveness": 0.145
  },
  "next_thought_needed": true,
  "visual_output": "โ”Œโ”€ ๐Ÿ’ญ Thought 1/3 โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”\\nโ”‚ Analysis shows clear patterns... โ”‚\\nโ”œโ”€ Metrics โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค\\nโ”‚ Quality: 0.64 | Impact: 0.29... โ”‚\\nโ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜"
}

Testing

Run the test suite:

npm test

Test tool execution:

node test-tool.js