Back to Browse

Behavior MCP Server

Developer ToolsModerate5.5MCP RegistryLocal
Free

Server data from the Official MCP Registry

In-browser ~60Hz behavior tree execution engine with reactive triggers and safety guardrails.

About

In-browser ~60Hz behavior tree execution engine with reactive triggers and safety guardrails.

Security Report

5.5
Moderate5.5Moderate Risk

The behavior-mcp MCP server is a developer tool for executing behavior trees in browser runtimes with safety guardrails. Code quality is generally good with proper error handling and input validation. However, there are moderate concerns: file system operations lack comprehensive path validation in some areas, the policy gate mechanism is basic and could be bypassed, and rate limiting is enforced but not persistent across restarts. Permissions align well with the stated purpose (file I/O for behavior trees, SQLite database, network-optional for browser integration). Supply chain analysis found 3 known vulnerabilities in dependencies (0 critical, 1 high severity). Package verification found 1 issue.

6 files analyzed ยท 11 issues found

Security scores are indicators to help you make informed decisions, not guarantees. Always review permissions before connecting any MCP server.

Permissions Required

This plugin requests these system permissions. Most are normal for its category.

File System Read

Reads files on your machine. Normal for tools that analyze or process local data.

File System Write

Writes or modifies files on your machine. Check that this is expected for the tool.

env_vars

Check that this permission is expected for this type of plugin.

database

Check that this permission is expected for this type of plugin.

process_spawn

Check that this permission is expected for this type of plugin.

How to Install

Add this to your MCP configuration file:

{
  "mcpServers": {
    "io-github-putervision-behavior-mcp": {
      "args": [
        "-y",
        "@putervision/behavior-mcp"
      ],
      "command": "npx"
    }
  }
}

Documentation

View on GitHub

From the project's GitHub README.

@putervision/behavior-mcp

npm version CI Node License: MIT

High-Frequency (~60Hz) In-Browser Behavior Tree Tactical Runtime Engine for AI Agents

@putervision/behavior-mcp is a Model Context Protocol (MCP) server that executes deterministic behavior trees directly in browser runtimes at ~60Hz with reactive trigger preemption, frame recordings, SHA-256 Merkle audit chains, and a 5-layer safety guardrail stack.

๐ŸŒ Official Documentation: putervision.com โ€ข Interactive Web Docs


โšก 15-Second Quick Start

# 1. Initialize runtime & seed default behavior trees in your workspace
npx @putervision/behavior-mcp init

# 2. Run system diagnostic and health checks
npx @putervision/behavior-mcp doctor

# 3. Inspect active executions, blackboard state, and reactive triggers
npx @putervision/behavior-mcp inspect

๐Ÿ› ๏ธ 10 Core MCP Tools

ToolActionsPurpose
load_behaviorload, unload, swapInject, initialize, or hot-swap a behavior tree in browser runtime
set_parametersset, get, resetDynamically update or query runtime execution parameters
get_statuscurrent, history, tree_stateQuery active status, node traversal path, tick count, duration
abort_behaviorabort, pause, resumeHalt, pause, or resume behavior execution safely
register_triggerregister, listConfigure reactive interrupt triggers with priority preemption
replay_recordingcapture, listCapture or inspect deterministic browser action sequences
get_metricscurrent, historyRetrieve runtime telemetry, tick durations, and stuck events
manage_behaviorsregister, get, listCRUD for immutable behavior tree JSON with SHA-256 tree hashes
manage_blackboardget, setRead, write, or query shared behavior tree blackboard variables
manage_runtime_dbstats, audit, snapshot, restoreSQLite diagnostics, SHA-256 Merkle audit, and checkpoint rollback

๐Ÿ›ก๏ธ 5-Layer Safety Guardrail Stack

  1. Fail-Closed Evaluator: Unrecognized node definitions throw fatal exceptions immediately.
  2. Watchdog Heartbeat Timer: Halts execution if tick evaluation stalls beyond 5,000ms.
  3. Action Rate Limiter: Strict 60 actions/sec maximum throughput ceiling.
  4. Leaf Policy Gate: Blocks irreversible, high-risk mutations (delete_item, spend_currency).
  5. Emergency Kill Switch: Atomic safety latch (EmergencySafety.engageKillSwitch()) halts all runtimes.

๐Ÿ“š Deep Documentation Guides


๐Ÿ”— Client Configuration

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

{
  "mcpServers": {
    "behavior-mcp": {
      "command": "behavior-mcp",
      "args": ["run"]
    }
  }
}

๐Ÿงช Testing

# Run full unit and integration test suite across 15 test files (87 tests)
npm test

๐Ÿ“„ License

MIT ยฉ PuterVision

Reviews

No reviews yet

Be the first to review this server!