Strategic Agent Reasoning MCP

io.github.putervision由 GitHub 账号 putervision 发布v0.4.1更新于 Nov 1, 2026

Strategic BDI reasoning engine for autonomous AI agents with spatial utility and replanning.

已验证STDIO仅桌面知识与记忆AI 与机器学习

概览

AI 生成的概览

本地 MCP 服务器,为 AI 智能体提供 BDI 推理引擎:目标层级、期望效用评分、风险评估、重规划与快速启发式决策。

可以做什么
  • 管理目标与意图:创建、分解、更新或放弃目标层级,排队或取消派发指令
  • 评估与调整:基于情境快照为候选行动打分,评估或比较风险,并在遇到阻碍和事件时重新规划
  • 调参与解释:配置效用权重,获取决策轨迹与理由,检索已学习的启发式与过往情境
  • 维护信念:更新、查询、过期与协调带置信度衰减的信念状态
  • 快速 System 1 判断:对状态分类、提出类型化概率或选择问题、为选项打分,并在派发前对意图做闸门检查
  • 维护推理数据库:统计、Merkle 审计、快照与恢复
适用场景
适合希望智能体的规划明确且可检查的场景:多步目标、选项之间的权衡、行动前的风险核查,或遇到阻碍时重新规划,而不是在对话中即兴决定。
运行要求
通过 stdio 在本地运行,通常用 npx 启动该 npm 包;提供 init、doctor、inspect 等命令行命令。需先初始化本地推理数据库(SQLite)。README 的客户端配置设置了 PENTAD_HMAC_SECRET 与 DISPATCH_TOKEN_TTL_MS;可选的 SKIP_MODEL_LOAD 或 OFFLINE 可强制离线确定性评估。仅支持桌面客户端。
安装前请注意
README 要求提供共享 HMAC 密钥(PENTAD_HMAC_SECRET)用于签发意图派发令牌,应视为凭据并避免写入共享配置。工具会写入本地推理数据库,并可创建、取消或派发意图,状态变更需复核。快照与恢复会回滚已存的推理数据。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Strategic Agent Reasoning MCP,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

@putervision/agent-reasoning-mcp

[npm version] [version] [CI] [Node] [License: MIT]

Strategic BDI Reasoning, Multi-Attribute Expected Utility Theory & Decision Intelligence for Autonomous AI Agents

@putervision/agent-reasoning-mcp is a formal Model Context Protocol (MCP) server that provides strategic belief-desire-intention (BDI) reasoning, hierarchical goal decomposition, multi-attribute expected utility calculation ((E[U] = \sum w_i u_i)), exponential belief decay, quantitative risk evaluation, and reactive replanning across multi-modal memory bridges.

🌐 Official Documentation: putervision.com • Interactive Web Docs


⚡ 15-Second Quick Start

bash
# 1. Initialize reasoning database & seed default utility profilesnpx @putervision/agent-reasoning-mcp init
# 2. Run health diagnostics and Merkle audit checksnpx @putervision/agent-reasoning-mcp doctor
# 3. Inspect active goals, intentions, and belief statesnpx @putervision/agent-reasoning-mcp inspect

🛠️ 15 Core MCP Tools

BDI Strategic Deliberation (10 Tools)

ToolActionsPurpose
set_goalcreate, update, decompose, get, list, abandonManage goal hierarchy, task DAGs, and success criteria
evaluate_situationsnapshot, quickScore and rank candidate actions from environment snapshots
replanblocker, event, fullAdaptively reconstruct subgoals upon obstacles and abort stale intentions
assess_riskaction, plan, compareQuantitative threat and risk calculation across candidate actions
query_knowledgesearch, patterns, similar_situationsSearch learned heuristics, tactical knowledge, and past decision patterns
set_utility_weightsconfigure, get, list, activateConfigure utility weights (aggression, caution, greed, efficiency, exploration)
get_decision_tracelatest, get, list, explainExplainable chain-of-thought rationale and latency telemetry
manage_beliefsupdate, query, expire, reconcileStructured belief state with exponential confidence decay ($C = C_0 e^{-\lambda t}$)
manage_intentionscreate, dispatch, get, list, cancel, resolveWire contract directives queue for runtime execution engines
manage_reasoning_dbstats, audit, snapshot, restoreReasoning database statistics, SHA-256 Merkle audit, and snapshot rollback

System 1 Fast Decision Layer (5 Tools)

Inspired by the typed System 1 pattern pioneered by TypeSafe's Jev (evaluating typed Choice, Score, and Noul primitives over compact state without token generation), implemented locally via in-memory LRU caches and deterministic heuristics (<2ms) without external API calls.

ToolPurposeLatency TargetL1 Cache (p50)Throughput
classifyLow-latency categorical labeling over multi-modal StatePacks<2ms0.0075 ms~90,000 ops/s
ask_noulTyped probabilistic hypothesis and Boolean verification ($p \in [0.0, 1.0]$)<2ms0.0049 ms~127,000 ops/s
ask_choiceDiscrete $1$-of-$N$ choice selection ($N \le 16$) with probability simplex<2ms0.0138 ms~64,000 ops/s
ask_scoreBounded numeric scalar scoring and calibrated utility rating<2ms0.0057 ms~129,000 ops/s
gate_intentionPre-dispatch blast-radius audit gate issuing signed HMAC dispatch tokens<1ms0.0709 ms~12,000 ops/s

See docs/benchmarks.md for full benchmark reproduction commands, latency percentiles (p50/p95/p99), and multi-tier caching architecture details.


🏛️ PuterVision Pentad Multi-Modal Ecosystem

agent-reasoning-mcp coordinates the closed-loop PuterVision Super-Loop:

  • 🧠 agent-reasoning-mcp: Decides what to do (BDI Strategic Reasoning, Utility Theory, Replanning)
  • ⚡ behavior-mcp: Executes how to act at ~60Hz in browser runtimes
  • 📊 state-memory-mcp: Durable workflow memory, tasks, blockers, decisions
  • 👁️ vision-memory-mcp: Perceptual caching, visual grounding, video timelines
  • 🌐 world-model-mcp: 3D/2D spatial layout, entity permanence, collision simulation

📚 Deep Documentation Guides


🔗 Client Configuration & Environment

Add to .cursor/mcp.json or .vscode/mcp.json:

json
{  "mcpServers": {    "agent-reasoning-mcp": {      "command": "agent-reasoning-mcp",      "args": ["run"],      "env": {        "PENTAD_HMAC_SECRET": "your-secure-shared-secret-here",        "DISPATCH_TOKEN_TTL_MS": "30000"      }    }  }}

Key Environment Variables

  • PENTAD_HMAC_SECRET: 256-bit shared key for cryptographic intention dispatch token signing.
  • DISPATCH_TOKEN_TTL_MS: Dispatch token expiration window (default: 30,000ms).
  • SKIP_MODEL_LOAD: Set to 1 (or OFFLINE=1) to force air-gapped L1/L2 deterministic evaluation.

🧪 Testing & Benchmarks

bash
# Run full unit and integration test suitesnpm test
# Run System 1 fast decision layer benchmark suite (throughput & latency percentiles)npm run benchmark
# Run air-gapped verificationOFFLINE=1 SKIP_MODEL_LOAD=1 npm test

📄 License

MIT © PuterVision

来源:README.md,提交 cdf9b5f

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

5
  1. v0.4.1最新Oct 3, 2026
  2. v0.4.0Oct 2, 2026
  3. v0.3.1Sep 29, 2026
  4. v0.3.0Sep 26, 2026
  5. v0.2.1Sep 16, 2026

评分

已满足适用检查项的 50%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分