behavior-mcp

behavior-mcp is a cursor rule for Cursor from putervision/state-memory-mcp. It costs 322 tokens per session, scanned A, original, MIT.

A browser runtime for executing deterministic behavior trees, which are step-by-step decision structures, with triggers and controls for stopping unsafe behavior.

In plain words
What is it for?
It is for running named behavior trees, changing their parameters, responding to emergency triggers, stopping execution, replaying recorded actions, and checking runtime metrics.
Why use it?
It provides a defined way to load, monitor, interrupt, pause, replay, and measure automated behavior in a browser.

Cursor rule for Cursor

Written for Cursor: installed under .cursor/.

Good fit It is for running named behavior trees, changing their parameters, responding to emergency triggers, stopping execution, replaying recorded actions, and checking runtime metrics.

Compare 6 cursor rules from other repositories ↓
Install with agentmods
npx agentmods add rules/putervision/state-memory-mcp/behavior-mcp
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/putervision/state-memory-mcp

Made for: Cursor.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for behavior-mcp

README.md
[![agentmods](https://agentmods.dev/badge/rules/putervision/state-memory-mcp/behavior-mcp/github.svg)](https://agentmods.dev/rules/putervision/state-memory-mcp/behavior-mcp)
Your own site
<a href="https://agentmods.dev/rules/putervision/state-memory-mcp/behavior-mcp"><img src="https://agentmods.dev/badge/rules/putervision/state-memory-mcp/behavior-mcp/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for behavior-mcp

Your own site · 80×15
<a href="https://agentmods.dev/rules/putervision/state-memory-mcp/behavior-mcp"><img src="https://agentmods.dev/badge/rules/putervision/state-memory-mcp/behavior-mcp.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 322 This file is loaded in full into every session.
When invoked 322 The same file — it is already loaded in full.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00322 $0.00322
Opus 5.5 $0.00129 $0.00129
Sonnet 5.5 $0.00064 $0.00064
Haiku 4.5 $0.00032 $0.00032

Measured 1mo ago against content hash 4bbaa0a1e74b, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

behavior-mcp scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.cursor/rules/behavior-mcp.mdc · 24 lines

What it actually says

Behavior Runtime Engine (behavior-mcp)

This project uses behavior-mcp with project slug "state-memory-mcp" to execute deterministic behavior trees at ~60Hz in browser runtimes with reactive triggers and safety guardrails.

Mandatory Runtime Workflow

  1. Load Behavior: Call load_behavior(action: "load", behavior_name: "...") to activate execution.
  2. Monitor Execution: Check get_status(action: "current") and inspect active node traversal paths.
  3. Reactive Triggers: Register high-priority emergency interrupts via register_trigger(action: "register", ...).
  4. Safety & Abort: Call abort_behavior(action: "abort") to immediately halt execution if anomalous behavior occurs.

10 Core MCP Tools

  • load_behavior: Inject and start behavior tree execution.
  • set_parameters: Update execution parameters on the fly.
  • get_status: Query active status, current node path, and tick counters.
  • abort_behavior: Immediately halt, pause, or resume execution.
  • register_trigger: Configure priority interrupts with cooldown guards.
  • replay_recording: Capture and replay deterministic frame actions.
  • get_metrics: Query execution telemetry and duration statistics.
  • manage_behaviors: Register and version behavior tree definitions with SHA-256 tree hashes.
  • manage_blackboard: Read and write behavior tree blackboard state variables.
  • manage_runtime_db: Database maintenance, diagnostics, and SHA-256 Merkle audit verification.
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 24 lines · 322 tokens per session scan A 4bbaa0a1e74b

Subscribe to this mod's changes

behavior-mcp is a cursor rule published in the GitHub repository putervision/state-memory-mcp (48 stars, last pushed 12d ago), licensed MIT. It adds 322 tokens to every session, about $0.0013 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-11.