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 分