mcp-server-decisions

mcp-server-decisions

Tracks architectural decisions with testable predictions, outcome validation, and in-band feedback nudges to close decision loops for AI agents and teams.

Category
Visit Server

README

<!-- mcp-name: io.github.Roberton003/mcp-server-decisions -->

<div align="center">

🧠 MCP Server: Decisions

Python 3.10+ License: MIT Registry GitHub

<p align="center"> <b>Architectural decision tracking with prediction validation and outcome gates.</b><br /> Record choices, state testable predictions, measure outcomes, and close the feedback loop for AI agents & teams. </p>


</div>

⚑ Zero External Dependencies β€’ Stdlib-only Python β€’ Append-only JSONL storage β€’ Fully portable


πŸ“Œ Key Features

  • 🎯 Decision Recording β€” Capture architectural choices with problem statement, solution, rejected alternatives, and target technologies.
  • πŸ“ˆ Prediction Linking β€” Attach testable claims (latency, cost, scalability, reliability) tied to decisions.
  • βœ… Outcome Validation β€” Record measured results and automatically compute accuracy scores (0–100 scale).
  • πŸ“Š Technology Performance Registry β€” Aggregate success rates and confidence metrics per technology over time.
  • πŸšͺ Outcome Gate Pattern β€” In-band nudges inside tool responses prevent decision feedback loops from leaking (3.8% β†’ 14.5% closure rate).
  • ⚑ Zero Dependencies β€” Portable append-only JSONL log. No database servers, no migrations, no background daemons.

⚑ Quick Example

1️⃣ Record a Decision

# Agent or user records a choice:
record-decision(
  problem="Query latency exceeds SLA (p99 > 500ms)",
  chosen_solution="DuckDB + Parquet caching",
  rejected_alternatives=["Redis", "Elasticsearch"],
  technologies=["duckdb", "parquet"],
  predictions=[
    {"prediction_type": "LATENCY", "predicted_value": "p99 < 200ms"},
    {"prediction_type": "COST", "predicted_value": "< $50/month"}
  ]
)
# βž” Returns: DEC-2026-0001, PRD-2026-0001, PRD-2026-0002

2️⃣ Record an Outcome

record-outcome(
  prediction_id="PRD-2026-0001",
  actual_value="p99 = 180ms",
  measurement_source="MONITORING",
  accuracy_score=95
)
# βž” Returns: SUCCESS βœ… (95% accuracy)

3️⃣ Query Prior Decisions & Technology Stats

# Search past decisions before choosing a technology:
query-decisions(technology="duckdb", max_results=5)

# View aggregated technology performance:
python3 scripts/technology_performance_report.py
# βž” Output:
# technology: duckdb  | successful: 12 | failed: 1 | avg_accuracy: 91.2% | confidence: HIGH

πŸš€ Quick Start & Setup

πŸ“¦ Installation

# From PyPI (once published) or local editable install:
pip install -e .

πŸ› οΈ Client Configuration

Add to your MCP client configuration (e.g. Claude Desktop, Claude Code, Cursor, OpenCode):

{
  "mcpServers": {
    "mcp-server-decisions": {
      "type": "stdio",
      "command": "mcp-server-decisions"
    }
  }
}

For client-specific setup guides (Claude, OpenCode, Codex, Antigravity), see πŸ“– docs/INTEGRATIONS.md.


How It Works

The Loop

Decide β†’ Predict β†’ Implement β†’ Measure β†’ Validate β†’ Learn β†’ Next Decision
  1. Record a decision β€” Store the problem, chosen solution, alternatives, and technologies
  2. Make predictions β€” Attach testable claims (latency, cost, reliability, etc.)
  3. Implement β€” Build the system
  4. Measure results β€” Capture actual values from monitoring, logs, benchmarks
  5. Validate β€” The server calculates accuracy (0-100) and validation status (SUCCESS / PARTIAL_SUCCESS / FAILED)
  6. Learn β€” Review what worked via the Technology Performance Registry
  7. Next decision β€” Query past decisions before making new recommendations

The Outcome Gate Pattern

Decision loops leak because predictions aren't validated. This server embeds a reminder directly in tool responses:

Without Outcome Gate:

  • Decision is made β†’ implementation starts β†’ results come in β†’ nobody checks if prediction was right

With Outcome Gate:

{
  "decision_id": "DEC-2026-0001",
  "status": "OK",
  "OUTCOME_GATE": "⚠️  2 prediction(s) from this session still lack outcomes: [PRD-2026-0001, PRD-2026-0002]. Record results via record-outcome before ending."
}

The nudge is in-band (inside the tool response), where agents are already looking. Result: 3.8% β†’ 14.5% closure rate improvement (validated on internal tool).

Real Example: After recording a decision with 3 predictions, the response includes:

{
  "decision_id": "DEC-2026-0042",
  "prediction_ids": ["PRD-2026-0051", "PRD-2026-0052", "PRD-2026-0053"],
  "status": "OK",
  "OUTCOME_GATE": "⚠️  3 prediction(s) from this session still lack outcomes: [PRD-2026-0051, PRD-2026-0052, PRD-2026-0053]. Record results via record-outcome before ending."
}

Next query still shows the gate until all 3 outcomes are recorded. Once they are, the gate disappears automatically.

For the full pattern explanation, see docs/OUTCOME-GATE-PATTERN.md.

πŸ›οΈ Architecture & Tech Stack

  • Storage: Single append-only JSONL file (no database setup, no migrations, portable & git-friendly).
  • IDs: Sequential per calendar year (DEC-2026-0001, PRD-2026-0002, OUT-2026-0003).
  • Accuracy Scoring: Automatic classification (β‰₯90 SUCCESS, 50–89 PARTIAL_SUCCESS, <50 FAILED).
  • Runtime: Stdlib-only Python 3.10+ (zero external pip runtime dependencies).
  • Protocol: Model Context Protocol (JSON-RPC 2.0 over stdio).

βš™οΈ Environment Variables

Variable Description Default Path
MCP_DECISIONS_LOG_PATH Path to the append-only JSONL log file ~/.local/share/mcp-decisions/decisions_log.json

πŸ“š Documentation & Resources

Document Purpose
⚑ Quick Start 5-minute setup guide & first decision
πŸ”Œ Client Integrations Setup configs for Claude, OpenCode, Codex, Antigravity
πŸ“ Architecture & Design Core design rationale & data models
πŸ’‘ Detailed Examples Real JSON-RPC request/response payloads
πŸšͺ Outcome Gate Pattern In-band feedback loop design philosophy
πŸ“– Wiki FAQ and advanced topics

πŸ§ͺ Development & Testing

Run unit & selftests locally:

python3 server.py --selftest
# βž” βœ… All self-tests passed

See πŸ“ CONTRIBUTING.md to contribute features or fixes.


πŸ—ΊοΈ Roadmap

  • [x] Core decision / prediction / outcome tracking
  • [x] Outcome Gate in-band nudges
  • [x] Technology Performance Registry
  • [ ] Web UI for browsing & searching decisions
  • [ ] Webhooks / notifications on low prediction accuracy
  • [ ] Pre-built decision templates & domain patterns

πŸ“„ License & Disclaimer

MIT Β© 2026 Roberton003 β€” See LICENSE.

This project is community-built and independent. It is not affiliated with any organization or standard-setting body.


<div align="center"> <b>Made for AI agents. Built for teams. Learn from every decision.</b> </div>

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured