World Model MCP

io.github.putervision由 GitHub 帳號 putervision 發布v0.6.1更新於 Oct 24, 2026

Persistent 3D/2D spatial world model for AI agents with dynamic velocity and entity tracking.

發布方自己的服務:model.tools — Zero-Auth Agent Utilities

概覽

AI 產生的概覽

本機 MCP 伺服器,為 AI 代理維護持久化的 3D/2D 空間世界模型,記錄實體、關係與移動。

可以做什麼
  • 建立、更新與查詢帶有 3D 邊界、標籤、信心值與歷史的空間實體,並以 on、inside、near 等拓撲關係連結它們。
  • 將世界匯出為 JSON、GeoJSON、glTF、OBJ 或觀察者相對的精簡切片。
  • 模擬移動並進行碰撞偵測與路徑點規劃,接收視覺偵測結果,計算預期視野視錐。
  • 把實體連結到目標、記錄動作結果、註冊並驗證空間設計契約、產生 SHA-256 證據包。
  • 透過主題看板協調多個代理,管理快照與時間回溯,並產生 Playwright 的 WASD 按鍵持續時間序列與螢幕投影。
適用情境
適合需要跨步驟持久空間記憶的情境:3D 遊戲或瀏覽器自動化、類機器人的導航與碰撞規劃、視覺結果與世界模型的對帳,以及實體離開視野後仍需保留的多代理協作。
執行需求
需要 Node.js 18.18.0 或更新版本,並在本機以 npm 安裝此套件;需在專案目錄執行 world-model-mcp init,它會建立 .world-model-mcp 資料夾並寫入 IDE 與 MCP 設定。資料存於本機 SQLite,未宣告帳號或 API 金鑰。
安裝前請注意
init 指令會變更專案,更新 .gitignore 並產生 IDE 與 MCP 設定檔。相關工具會寫入、更新與刪除空間資料,並可透過快照回復狀態,在共用工作區中應先確認變更。產生的按鍵序列會驅動 Playwright 瀏覽器自動化,執行前請確認其作用對象。

安裝

在 SourceWeft 中

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

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

其他 MCP 客戶端

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

README

@putervision/world-model-mcp

[npm version] [version] [npm downloads] [CI] [Node] [TypeScript] [Website] [License: MIT]

@putervision/world-model-mcp is a zero-infrastructure, deterministic Model Context Protocol (MCP) server that maintains a persistent 3D/2D spatial world model for AI agents. It bridges perception (@putervision/vision-memory-mcp) and reasoning/action (@putervision/state-memory-mcp) with durable entity tracking, object permanence with confidence decay, movement simulation with AABB collision avoidance, expected view frustum projection, and Playwright 3D game automation.

🌐 Official Documentation & Website: putervision.com


⚡ Quick Start & Installation

Prerequisites: Node.js >= 18.18.0

bash
# 1. Install globallynpm install -g @putervision/world-model-mcp
# 2. Navigate to your project directorycd your-project
# 3. Initialize world-model-mcp# Creates .world-model-mcp/, updates .gitignore, registers project,# and scaffolds IDE instructions and MCP configs for Cursor, Claude, VS Code, Windsurf, etc.world-model-mcp init
# Done! Restart your IDE or Agent Manager to activate.

Alternative Options

bash
# Run directly via binary (after global install)world-model-mcp run
# Launch interactive 3D WebGL Scene Visualizerworld-model-mcp view
# Display database metrics and permanence confidence statsworld-model-mcp stats

🌟 Key Highlights

  • 🌐 Deterministic 3D/2D Spatial Memory & Compact Slices: Zero LLM in the loop for spatial indexing; deterministic SQLite WAL queries with FTS5 search, 3D Euclidean proximity radius lookups, and sub-1KB observer-relative compact slices ($K \le 16$ nearest entities) for System 1 fast path evaluation.
  • ⚡ 15 Production-Grade Consolidated MCP Tools: Full CRUD, topological spatial graphs (on, inside, contains, near), ray-AABB occlusion frustum culling, waypoint navigation, and time-travel rollback.
  • ⏳ Object Permanence & Decay: Entities remain in persistent memory even when out of view, with configurable exponential confidence decay ($C = C_0 \cdot e^{-\lambda t}$) and status lifecycles (active → hidden → lost).
  • 🚀 Collision & Movement Simulation: Predicts entity displacement trajectories, detects AABB obstacle collisions, and computes obstacle-avoiding navigation waypoints before actions execute.
  • 🎮 Playwright Game Automation: Generates timed WASD / Arrow keyboard hold sequences (KeyW for 450ms, ArrowLeft for 290ms) and 3D↔2D coordinate screen projections.
  • 🤝 Multi-Agent Spatial Blackboard: Topic-based coordination with TTL, mutex locks, and collision intent alerts across parallel subagents.
  • 🛡️ Spatial Spec-Driven Development (Spatial SDD): Physical design contract baseline registration, live verification (clearance, bounds, containment), and cryptographic SHA-256 evidence bundles.
  • 🎨 Interactive 3D WebGL Visualizer: Browser-based Three.js 3D viewport rendering active entities, orientation axes, frustum cones, and topological links (world-model-mcp view).
  • 🔒 100% Local & Private: All spatial entities, relations, and history stay inside .world-model-mcp/ in your workspace.

🛠️ MCP Tool Suite

@putervision/world-model-mcp provides 15 production-grade consolidated MCP tools organized across 5 core workflow domains:

  • Spatial Memory & Search: update_entity (entity CRUD, 3D bounds, properties, confidence), query_entities (FTS5 search, proximity radius, status/tags filter, history lookup), set_relation (topological graph links: on, inside, near, contains), get_spatial_map (JSON, GeoJSON, glTF 2.0, OBJ, summary, and format: "compact_slice").
  • Simulation & Vision Integration: simulate_movement (displacement prediction, AABB collision checks, waypoint routing), ingest_observation (vision detection ingestion, Euclidean re-identification, frustum reconciliation), get_expected_view (observer pose, horizontal FOV cone, ray-AABB occlusion).
  • Goal & State Integration: link_to_goal (associate entities/regions with State Memory tasks, extract spatial context slices), record_outcome (record execution results, position shifts, property changes, destruction).
  • Spatial SDD & Proofs: manage_spatial_spec (register physical clearance/containment contracts, live verification scoring), create_evidence_pack (cryptographic SHA-256 evidence bundles linking spatial proofs to task nodes).
  • Multi-Agent, Replay & Automation: use_spatial_blackboard (topic board, mutex claim/release, intent conflicts), manage_snapshot (checkpoints, snapshot diffing, time-travel undo), wait_for_spatial_state (async polling for target spatial condition), generate_game_inputs (Playwright WASD hold timings, 3D↔2D screen ray projection).

👉 For complete parameter specifications, return schemas, and example payloads, see the API Reference Guide and Database Schema.


🚀 Architecture & Spatial Memory Lifecycle

                     Perception / Vision Detection                                  │                                  ▼                 ┌─────────────────────────────────┐                 │  Perception Ingestion & Re-ID   │ ──▶ ingest_observation(reconcile: true)                 └────────────────┬────────────────┘                                  │                                  ▼                 ┌─────────────────────────────────┐                 │  Durable Entity & Permanence    │ ──▶ update_entity(...)                 │  (3D Bounding Boxes, Decay)     │ ──▶ set_relation(relation: "on"|"inside")                 └────────────────┬────────────────┘                                  │                                  ▼                 ┌─────────────────────────────────┐                 │  Simulation & Waypoint Routing  │ ──▶ simulate_movement(mode: "navigate")                 │  (AABB Collision Avoidance)     │ ──▶ get_expected_view(fov: 90)                 └────────────────┬────────────────┘                                  │                                  ▼                 ┌─────────────────────────────────┐                 │  Playwright & Action Execution  │ ──▶ generate_game_inputs(...)                 │  (WASD Sequences, Screen Rays)  │ ──▶ record_outcome(action_type: "move")                 └────────────────┬────────────────┘                                  │                                  ▼                 ┌─────────────────────────────────┐                 │  Spatial SDD & Cryptographic    │ ──▶ manage_spatial_spec(action: "verify")                 │  Evidence Bundling to Tasks     │ ──▶ create_evidence_pack(...)                 └────────────────┬────────────────┘                                  │                                  ▼                 ┌─────────────────────────────────┐                 │  Persistent SQLite Engine       │ ──▶ .world-model-mcp/world.db (WAL mode)                 │  Append-Only History Ledger     │ ──▶ SHA-256 Cryptographic Audit Chain                 └─────────────────────────────────┘

📚 Documentation Directory

Explore dedicated guides and deep dives in the docs/ directory:

GuideDescription
🏗️ Architecture & Codebase DistillationHigh-signal architectural overview, module inventory, data flows, and design decisions.
💡 Features & Triad OverviewPuterVision Autonomous Triad interaction, 3D WebGL scene visualizer, and evidence packs.
📋 Spatial World Model ConceptsObject Permanence ($C = C_0 \cdot e^{-\lambda t}$), Confidence Decay, Frustum Projection, and Spatial SDD.
⚙️ Configuration & IDE SetupAuto-Initialization details, Environment Variables, and Editor Configs (Cursor, VS Code, Claude, Windsurf).
🛠️ CLI Command ReferenceCLI flags (init, run, view, stats, inspect, map, export, import, doctor, snapshot, spec, blackboard).
🧰 Tools & API ReferenceComplete reference for all 15 Consolidated MCP Tools, legacy tool mapping, and parameter examples.
🗄️ Database SchemaSQLite tables (entities, spatial_relations, entity_history, spatial_specs, blackboard_items, evidence_packs).
🎮 Interactive 3D Game Arena DemoAutonomous 3D browser arena with Three.js bridge diagnostics (window.__WORLD_MODEL_BRIDGE).
🧭 Examples & TutorialsDeep-dive examples: Spatial Navigation, Perception Reconciliation, and Multi-Agent Blackboard.

📖 Agent Playbook: 5-Step Canonical Workflow

When an autonomous AI agent enters a repository with world-model-mcp:

1. Orient & Explore   ──▶ get_spatial_map(format: "summary") + get_expected_view(fov: 90)2. Query & Locate     ──▶ query_entities(query: "chest", radius: 15) + query_entities(entity_id: "...")3. Plan & Simulate    ──▶ simulate_movement(mode: "navigate") + manage_spatial_spec(action: "verify")4. Execute & Ingest   ──▶ generate_game_inputs(...) + ingest_observation(reconcile: true)5. Record & Evidence  ──▶ record_outcome(...) + create_evidence_pack(task_id: "...")

🧪 Testing

bash
# Run full unit, integration, and geometry stress test suite across 47 test files (206 tests)npm test
# Run multi-Node matrix test suite across Node.js 18, 20, and 22npm run test:matrix
# Run 3D geometry, projection, and Playwright game loop testsnpm run test:3d

⚖️ License & Disclaimers

Developed and maintained by PuterVision. Released under the MIT License.

  • Local Storage Guarantee: All spatial coordinates, bounding volumes, and entity history remain 100% local in your workspace. No telemetry or project data is ever transmitted.
  • Trademarks & Non-Affiliation: Product names (Cursor, Claude Code, Gemini, Windsurf, VS Code, GitHub, SQLite, Three.js, Playwright) are property of their respective owners and used solely for compatibility identification.

來源:README.md,提交 57354e0

工具

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

版本歷史

5
  1. v0.6.1最新Oct 3, 2026
  2. v0.6.0Oct 2, 2026
  3. v0.5.1Sep 29, 2026
  4. v0.5.0Sep 26, 2026
  5. v0.4.1Sep 16, 2026

評分

已滿足適用檢查項的 50%

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

  • 近 30 天內可連通25 分

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

  • 已宣告認證方式10 分

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

  • 已列出工具15 分

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

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

其他 Model 整合