Mcp Server Decisions

io.github.Roberton003由 GitHub 帳號 Roberton003 發布v1.0.2更新於 Oct 24, 2026

Decision tracking with prediction validation and outcome gates for AI agents

已驗證STDIO僅桌面效率與工作流知識與記憶

概覽

AI 產生的概覽

一個本機 MCP 伺服器,讓助理記錄架構決策、附加可驗證的預測、登錄結果並查詢決策歷史。

可以做什麼
記錄決策,包含問題、所選方案、替代方案、技術與預測,並為既有決策加入可衡量的預測。登錄觀察到的結果,並將每項預測歸類為成功、部分成功或失敗。依關鍵字、技術、領域或結果數量上限搜尋決策。回傳結果閘門提醒,標出仍缺驗證的預測,並彙整已驗證結果形成技術回饋。
適用情境
適合團隊或代理需要一份可稽核、僅附加的技術選擇紀錄,並與可衡量的預測連結,同時希望在認定工作完成前收到結果驗證提醒的情境。也適合偏好純 JSONL 日誌而非資料庫的早期專案。
執行需求
以 PyPI 套件形式透過 stdio 在本機執行;需要 Python 3.10 或更新版本以及相容 MCP 的用戶端。除標準函式庫外無執行期相依套件。預設寫入使用者資料目錄下的日誌檔,可透過環境變數 MCP_DECISIONS_LOG_PATH 變更。
安裝前請注意
伺服器會寫入並附加本機決策日誌檔,請將 MCP_DECISIONS_LOG_PATH 指向你可控制的位置。結果閘門提醒僅是工作流程訊號,不代表採用情況或實測影響。專案處於早期階段,尚未收集外部採用指標。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Mcp Server Decisions,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

🧠 MCP Server: Decisions

An open-source MCP server that helps teams record architectural decisions, connect them to testable predictions, and validate outcomes over time. It gives AI agents and developers a lightweight, auditable memory for technical choices.

[Python 3.10+] [MCP] [License: MIT] [PyPI] [Glama]

[Architectural Decision Feedback Loop with Outcome Gates]

✨ Project Highlights

  • Outcome-linked decisions — connect each technical choice to measurable predictions and observed results.
  • In-band outcome gates — tool responses identify predictions that still need validation before the work is considered complete.
  • Portable storage — append-only JSONL keeps the log inspectable, easy to back up, and free from database setup.
  • Zero runtime dependencies — Python's standard library is enough to run the server.
  • MCP-native interface — expose decision tracking through JSON-RPC over stdio to MCP-compatible clients.
  • Technology feedback — aggregate validated outcomes to inform future technology choices.

🧰 Technical Stack

LayerTechnology
ProtocolModel Context Protocol over JSON-RPC 2.0
RuntimePython 3.10+
StorageAppend-only JSONL file
PackagingPyPI / Hatchling
TestingBuilt-in self-test command
LicenseMIT

🔄 Architecture

mermaid
flowchart TD    A[MCP client or AI agent] --> B[JSON-RPC over stdio]    B --> C[mcp-server-decisions]    C --> D[Record decision]    C --> E[Attach prediction]    C --> F[Record outcome]    C --> G[Query decisions and technology history]    D --> H[(Append-only JSONL log)]    E --> H    F --> H    G --> H    F --> I[Validation status and accuracy]    I --> J[Future technical decisions]

📌 What It Provides

The server exposes four tools:

ToolPurpose
record-decisionStore the problem, chosen solution, alternatives, technologies, and predictions.
record-predictionAdd a measurable prediction to an existing decision.
record-outcomeRecord the observed result and classify the prediction as success, partial success, or failure.
query-decisionsSearch decisions by keyword, technology, domain, or result limit.

Example flow

text
Decide → Predict → Implement → Measure → Validate → Learn

A decision can produce an outcome-gate reminder such as:

json
{  "decision_id": "DEC-2026-0001",  "status": "OK",  "OUTCOME_GATE": "2 prediction(s) still lack outcomes."}

The reminder is a workflow signal, not a claim about adoption or measured impact. See the Outcome Gate Pattern for the design and trade-offs.

📊 Current Project Status

AreaStatus
Decision, prediction, and outcome trackingAvailable
Outcome-gate remindersAvailable
Technology performance reportAvailable
PyPI packagePublished as 1.0.2
External adoption metricsNot collected yet
Web UI and notificationsRoadmap

The project is early-stage. Contributions, examples from real projects, and feedback are welcome.

🚀 Setup

Prerequisites

  • Python 3.10 or newer
  • An MCP-compatible client

Install from PyPI

bash
python3 -m pip install mcp-server-decisions

Run the self-test

bash
python3 -m pip install -e .python3 server.py --selftest

Configure an MCP client

json
{  "mcpServers": {    "mcp-server-decisions": {      "command": "mcp-server-decisions"    }  }}

For client-specific configuration and troubleshooting, see Client Integrations. For a guided first run, see Quick Start.

Configure the log path

By default, the server writes to ~/.local/share/mcp-decisions/decisions_log.json. Set MCP_DECISIONS_LOG_PATH to use another file:

bash
MCP_DECISIONS_LOG_PATH=/path/to/decisions.json mcp-server-decisions

🗂️ Project Structure

text
.├── server.py                         # MCP server and tool implementations├── scripts/                          # Reports derived from the decision log├── docs/                             # Architecture, examples, and integrations├── .github/ISSUE_TEMPLATE/           # Reusable bug and feature templates├── CONTRIBUTING.md                   # Development and contribution workflow├── QUICKSTART.md                     # Guided setup and first decision├── server.json                       # MCP Registry metadata├── pyproject.toml                    # PyPI package metadata└── LICENSE                           # MIT license

📚 Documentation

🛣️ Roadmap

  • Core decision, prediction, and outcome tracking
  • Outcome-gate reminders
  • Technology performance reporting
  • Web UI for browsing and searching decisions
  • Notifications for low prediction accuracy
  • Reusable decision templates and domain patterns

🤝 Contributing

Issues and pull requests are welcome. Start with CONTRIBUTING.md, run the self-test, and explain the problem or use case in the pull request.

📄 License

MIT © 2026 Roberto Nascimento

來源:README.md,提交 e8963a0

工具

0
SourceWeft 尚未在沙箱中啟動過該軟體包,因此其工具未知。

版本歷史

1
  1. v1.0.2最新Sep 16, 2026

評分

已滿足適用檢查項的 50%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分