Elite Reasoning MCP
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Elite Reasoning MCPDebug the function that calculates Fibonacci numbers"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Elite Reasoning MCP
Model Context Protocol workflow memory, evaluation, and reasoning-safety layer for AI coding agents.
Why Elite Reasoning?
Every AI coding assistant makes the same mistakes twice. Elite Reasoning fixes that.
It's a Model Context Protocol server for AI IDEs and coding agents. It wraps around any LLM — GPT, Claude, Gemini, open-source — and adds a persistent reasoning layer with workflow flight recording, anti-pattern memory, decision tracking, confidence calibration, release doctor checks, eval harness exports, and self-improving prevention rules.
One install. Zero config. Works with Cursor, Antigravity, VS Code + Continue, Windsurf, and any MCP-compatible IDE.
Who This Is For
Developers who use Cursor, Claude Desktop, Gemini CLI, VS Code + Continue, Windsurf, or another MCP-compatible AI IDE.
AI coding-agent users who want persistent memory without blindly injecting stale, low-trust, or sensitive context.
Maintainers who need auditable multi-step execution, release gates, risk checks, and repeatable eval scaffolds.
Teams building agentic development workflows that need reasoning safety, confidence calibration, and workflow evidence.
The Problem
Without Elite Reasoning | With Elite Reasoning |
LLM forgets past mistakes | ✅ Anti-pattern memory prevents repeats |
No confidence tracking | ✅ Brier-scored calibration per prediction |
Generic responses | ✅ Intent-classified, complexity-scored routing |
No decision audit trail | ✅ Every architectural decision logged + searchable |
Manual quality checks | ✅ Automated pre-commit audits + FMEA risk gates |
Multi-step work gets lost | ✅ |
Memory can poison context | ✅ Trust/confidence/privacy gates quarantine risky memories |
Related MCP server: Clear Thought 1.5
⚡ Quick Start
One-Line Install
pip install elite-reasoning-mcpFor an isolated CLI installation:
uv tool install elite-reasoning-mcpAdd to your IDE
Antigravity / Gemini CLI (~/.gemini/config/mcp_config.json):
{
"mcpServers": {
"elite-reasoning": {
"command": "elite-reasoning-mcp",
"args": [],
"env": {
"ELITE_BRAIN_DIR": "~/.elite-reasoning/brain"
}
}
}
}Cursor (.cursor/mcp.json):
{
"mcpServers": {
"elite-reasoning": {
"command": "elite-reasoning-mcp",
"env": {
"ELITE_BRAIN_DIR": "~/.elite-reasoning/brain"
}
}
}
}VS Code + Continue (~/.continue/config.yaml):
mcpServers:
- name: elite-reasoning
command: elite-reasoning-mcp
env:
ELITE_BRAIN_DIR: ~/.elite-reasoning/brainActivate the Pipeline
Add this to your IDE's system prompt (e.g., ~/.gemini/GEMINI.md or Cursor Rules):
## ⚡ RULE #0 — ELITE MCP PIPELINE
For non-trivial build, debug, research, audit, or release tasks, start with:
orchestrate_request_tool(user_prompt="<the user's exact message>")
For multi-step work that must be auditable, then create a durable run:
workflow_run(user_prompt="<the user's exact message>")
Skip tool calls for trivial acknowledgements like "ok", "thanks", "yes", "no".That's it. Restart your IDE and every conversation automatically benefits from the reasoning pipeline.
🚀 Features
🧠 Reasoning Pipeline
Every prompt flows through an intelligent routing system that classifies intent (13 categories), scores complexity (1-5), selects thinking mode, and checks anti-patterns — before your LLM even sees the task.
🛡️ Anti-Pattern Memory
Past mistakes are recorded with root-cause analysis and automatically surfaced when similar patterns appear. Your AI literally learns from its errors.
📊 Confidence Calibration
Track prediction accuracy with proper Brier scores. Know when your AI is overconfident vs. well-calibrated. Every prediction gets a confidence score and outcome tracking.
⚖️ Decision Council
Critical decisions get a 5-perspective adversarial review — optimist, pessimist, pragmatist, innovator, and devil's advocate — before committing.
🔒 Prevention Rules
Custom auto-triggered rules for your workflow. Define patterns that should trigger warnings, blocks, or automatic corrections. Rules self-improve through a learning pipeline.
📈 8-Layer Middleware Chain
Every tool call passes through telemetry → anti-pattern injection → prevention rules → cost tracking → usage logging → latency budgets → retry → fallback — with zero config.
🧪 Risk Analysis
FMEA (Failure Mode & Effects Analysis), Swiss Cheese audits, smoke test gates, and pre-mortem simulations — all built-in, all callable as MCP tools.
💾 Persistent Memory
Cross-session knowledge graph with temporal confidence decay, semantic search, decision audit trails, and quality-gated memory context. Your AI remembers what it learned last week without blindly injecting low-trust or sensitive content.
🧭 Workflow Flight Recorder
workflow_run turns complex work into a persisted execution contract: intent, complexity, budget tier, relevant memory, evidence requirements, validation gates, confidence, and step status.
🏥 Release Doctor
elite_doctor checks version, dependencies, DB schema, capability routing, exposed tool count, active IDE mismatch, and release blockers before shipping.
🧪 Eval Harness Exports
export_eval_harness generates optional Promptfoo, DeepEval, and Inspect AI scaffolds for MCP-on/MCP-off comparisons without adding hard runtime dependencies.
🏗️ Architecture
Your Prompt
↓
orchestrate_request_tool (complex-task routing)
↓
┌──────────────────────────────────────────────┐
│ 🎯 Intent Classifier → 13 categories │
│ 📊 Complexity Scorer → 1-5 scale │
│ 🧠 Thinking Mode → convergent/div. │
│ 🛡️ Anti-Pattern Check → Past mistake scan │
│ ⚡ Prevention Engine → Custom auto-rules │
│ 🔀 MCP/Skill Router → Specialized tools │
└──────────────────────────────────────────────┘
↓
Execution Plan (returned to LLM)
↓
LLM follows plan → Better output
↓
┌──────────────────────────────────────────────┐
│ 8-Layer Middleware Chain (wraps every tool) │
│ Telemetry → Injection → Prevention → │
│ Cost → Usage → Latency → Retry → Fallback │
└──────────────────────────────────────────────┘
↓
Results recorded → Learning loop improves next time🔧 90+ Tools
Tool | Description |
| Master routing — fires on every prompt, classifies intent, routes to tools |
| Pre-flight checklist for complex tasks |
| Score confidence before committing to a plan |
Tool | Description |
| Create a durable evidence-gated execution contract |
| Inspect persisted workflow run status |
| Attach validation evidence to workflow steps |
| Human-readable release-readiness health check |
| Structured release-readiness report |
| Generate Promptfoo, DeepEval, and Inspect AI eval scaffolds |
| Store quality-gated scoped memory |
| Retrieve trusted memory context for a task |
Tool | Description |
| Semantic search over past mistakes |
| Log mistakes with root cause analysis |
| Score output quality (1-10) |
| Track quality trends over time |
| Audit code before delivering |
| Detect cognitive biases in reasoning |
Tool | Description |
| Log architectural decisions with rationale |
| Query past decisions (FTS + semantic) |
| 5-perspective adversarial review |
| Build-or-adopt analysis framework |
| Challenge your own plan's assumptions |
| Post-mortem structured review |
Tool | Description |
| Failure Mode & Effects Analysis |
| Risk threshold gate (block if RPN too high) |
| Pre-deploy smoke test |
| Multi-layer safety audit (Reason model) |
| Pre-mortem / regret simulation |
Tool | Description |
| Log predictions with confidence % |
| Record actual outcomes |
| Brier score accuracy report |
Tool | Description |
| Store cross-session knowledge |
| Semantic search over memory |
| Persist decisions to long-term memory |
| Persist mistakes to memory |
| Knowledge graph queries with time decay |
Tool | Description |
| Define goals with key results |
| Review active goals |
| Update goal progress |
| Lifecycle management |
| Track performance benchmarks |
| Tool usage analytics |
Tool | Description |
| Track prompt patterns |
| Session analysis |
| Cognitive model of user patterns |
| Update learned patterns |
| Create custom auto-rules |
| View active rules |
| Predict failures before they happen |
| Self-improvement scan |
| System health diagnostic |
| Autonomy rate and gap report |
| Auto-generate improvement goals |
| Log when the system should have caught something |
Tool | Description |
| Bayesian probability updates |
| Expected value calculations |
| Compound growth modeling |
| Root cause analysis (5 Whys) |
| Validate prediction batches |
Tool | Description |
| User preference profile |
| Update user settings |
| Team user management |
| Share learned skills |
| Sync memory across team |
Tool | Description |
| Create structured plans |
| Deep analysis mode |
| Comprehensive audit |
| Make tracked predictions |
| Learn from outcomes |
| Self-reflection on reasoning |
Tool | Description |
| Log testable hypotheses |
| Record hypothesis outcomes |
| Pre-register potential failures |
| Record failure outcomes |
| Search learned patterns |
Plus 7 MCP Resources (elite://profile, elite://anti_patterns, elite://decisions, elite://quality, elite://health, elite://goals, elite://benchmarks) for real-time dashboards.
⚙️ Configuration
Environment Variables
Variable | Default | Description |
|
| Where to store persistent memory |
|
| Enable legacy monkey-patch interceptor |
| (built-in) | Custom Gemini API endpoint |
Development Setup
# Clone the repo
git clone https://github.com/Snehgabani/elite-reasoning-mcp.git
cd elite-reasoning-mcp
# Install with dev dependencies
uv sync --extra dev
# Run the release gate used by CI
uv run python scripts/release_check.py
# Build package
uv build🧪 Testing
# Run all tests (229 tests)
ELITE_BRAIN_DIR=/tmp/elite-test uv run pytest tests/ -v --tb=short
# Run the full release gate: tests, ruff, focused pyright, build, MCP smoke
uv run python scripts/release_check.py
# Run with coverage
uv run pytest tests/ --cov=core --cov-report=htmlThe test suite covers:
✅ Persistent store (CRUD, FTS, graph, goals, benchmarks)
✅ Graph store (nodes, edges, temporal queries, hypotheses)
✅ Connection pooling and stale connection recovery
✅ FTS sanitization (injection prevention)
✅ Workflow flight recorder and MCP tool exposure
✅ Quality-gated memory quarantine
✅ Release doctor and eval harness exporters
🔐 Security & Trust
Elite Reasoning MCP is local-first by default: memory is stored under ELITE_BRAIN_DIR, and external API access is opt-in through environment configuration.
Public repository hardening includes:
SECURITY.mdwith supported versions, private vulnerability reporting, and memory/privacy boundariesDependabot for Python, GitHub Actions, and telemetry UI dependencies
CodeQL scanning for Python security issues
Dependency Review on pull requests
OpenSSF Scorecard visibility for supply-chain posture
Immutable GitHub Action and Docker image pins, with Dependabot update coverage
GitHub build provenance and PyPI digital attestations for release distributions
Release-gate evidence via
scripts/release_check.py
Security reports should use GitHub private vulnerability reporting, not public issues.
For the next tracking and monitoring layer, see the Elite Telemetry Roadmap.
🤝 Contributing
Contributions are welcome. Start with CONTRIBUTING.md, GOVERNANCE.md, and the security boundaries in SECURITY.md.
Fork the repository
Create a feature branch (
git checkout -b feature/amazing-feature)Run the release gate (
uv run python scripts/release_check.py)Document MCP behavior, privacy impact, and validation evidence in your PR
Commit your changes (
git commit -m 'feat: add amazing feature')Push to the branch (
git push origin feature/amazing-feature)Open a Pull Request
Commit Convention
We use Conventional Commits:
feat:— New featuresfix:— Bug fixeschore:— Maintenancedocs:— Documentation
📄 License
MIT © Sneh Gabani
Maintenance
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
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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/Snehgabani/elite-reasoning-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server