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 分