Behavior Runtime MCP

v0.4.1
io.github.putervision/behavior-mcp Checked 13 hours ago Published 1 month ago

In-browser ~60Hz behavior tree execution engine with reactive triggers and blackboard projection.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

load_behavior

Load, unload, or hot-swap a behavior tree instance in the browser runtime (actions: load, unload, swap). Use load_behavior instead of manage_behaviors when executing an active behavior tree instance at runtime rather than registering or inspecting definitions. Returns execution handle, runtime state, active node, and session/intention bindings.

ParameterTypeDescription
action *stringBehavior loading operation: load, unload, swap
behavior_name *stringName of the behavior tree to load
behavior_versionnumberVersion of behavior tree (defaults to latest)
client_request_idstringIdempotency key
dispatch_tokenobjectCryptographically signed dispatch token issued by agent-reasoning-mcp (gate_intention)
intentionobjectOptional linked intention payload matching the dispatch token
intention_idstringLinked agent-reasoning intention ID
parametersobjectInitial execution parameters
projectstringTarget project slug
session_idstringLinked state-memory session ID
trace_idstringDistributed trace ID for cross-server correlation

set_parameters

Dynamically set, inspect, or reset execution parameters for the active behavior runtime (actions: set, get, reset). Use set_parameters instead of manage_blackboard for tuning tree-level execution variables and thresholds rather than sharing cross-node data keys. Returns updated parameter map and execution ID.

ParameterTypeDescription
action *stringParameter operation: set, get, reset
execution_idstringTarget execution instance ID
parametersobjectKey-value parameters map to apply
projectstringTarget project slug

get_status

Query active behavior execution status, history, or full tree node traversal state (actions: current, history, tree_state). Use get_status instead of get_metrics when inspecting active execution state and node traversal paths rather than aggregated runtime performance telemetry. Returns execution status, current node path, tick counters, duration, and error states.

ParameterTypeDescription
action *stringStatus query mode: current, history, tree_state
execution_idstringTarget execution ID (or latest if omitted)
limitnumberMax history entries
projectstringTarget project slug

abort_behavior

Immediately halt, pause, resume, or unstick behavior execution and disengage active inputs (actions: abort, pause, resume, unstick). Use abort_behavior instead of register_trigger when manually halting or recovering execution rather than configuring automatic condition interrupts. Returns transition status, disengaged inputs, and unstick diagnostics.

ParameterTypeDescription
action *stringExecution control operation: abort, pause, resume, unstick (resets stuck score and disengages inputs)
execution_idstringTarget execution ID
projectstringTarget project slug
reasonstringReason for abort or pause
trace_idstringDistributed trace ID

register_trigger

Configure or list reactive interrupt triggers with priority preemption and cooldown guards (actions: register, list). Use register_trigger instead of abort_behavior when defining automatic condition-based interrupts rather than manually pausing or stopping a tree. Returns registered trigger configuration, ID, or trigger list.

ParameterTypeDescription
action *stringTrigger operation: register, list
behavior_namestringBehavior tree to activate when condition fires
condition_paramsobjectCondition evaluation parameters
condition_typestringCondition type (e.g. hp_threshold, enemy_proximity)
cooldown_msnumberMinimum cooldown interval between fires
namestringTrigger name
prioritynumberPreemption priority
projectstringTarget project slug
trigger_idstringTrigger ID

replay_recording

Capture or list deterministic browser action sequences with adaptive timing (actions: capture, list). Use replay_recording instead of load_behavior when recording or inspecting fixed action sequences rather than running a dynamic behavior tree. Returns recording metadata, frame sequences, or list of stored recordings.

ParameterTypeDescription
action *stringRecording operation: capture, list
execution_idstringTarget execution ID
framesarrayCaptured frame sequence
namestringRecording name
projectstringTarget project slug
recording_idstringRecording ID

get_metrics

Retrieve runtime execution telemetry, tick durations, stuck events, category statistics, and 60Hz action outcome spool entries (actions: current, history, aggregate, compare, spool, drain_spool). Use get_metrics instead of get_status when evaluating tick performance, reading spooled action outcomes, or inspecting aggregated statistics rather than active node traversal. Returns telemetry metrics, duration percentiles, stuck event counts, spooled outcome records, or drained entry counts.

ParameterTypeDescription
action *stringMetrics query mode: current, history, aggregate, compare, spool, drain_spool
behavior_namestringFilter metrics by behavior tree name
execution_idstringFilter metrics by execution ID
limitnumberMax records
projectstringTarget project slug
trace_idstringDistributed trace ID
unsynced_onlybooleanFilter only unsynced spool entries (action: spool)

manage_behaviors

Manage immutable JSON behavior tree definitions with SHA-256 hash verification (actions: register, list, get, synthesize). Use manage_behaviors instead of load_behavior when defining, versioning, or synthesizing behavior tree structures rather than executing them. Returns tree definition, version metadata, SHA-256 content hash, or synthesis DAG.

ParameterTypeDescription
action *stringBehavior definition management operation: register, list, get, synthesize
client_request_idstringIdempotency key
descriptionstringTree description
namestringBehavior tree name
projectstringTarget project slug
stepsarraySteps or actions to synthesize into a behavior tree
strategystringRoot composition strategy for synthesize action (default: sequence)
treeobjectBehavior tree JSON object
tree_jsonstringRaw behavior tree JSON string
versionnumberTree version

manage_blackboard

Read, write, delete, lease, list, or ingest structured state slices into shared behavior tree blackboard state (actions: get, set, delete, lease, list, ingest_slice). Use manage_blackboard instead of set_parameters when coordinating state across behavior nodes, projecting perception/spatial slices with staleness protection, or acquiring agent mutex leases. Returns blackboard value, lease acquisition status, key listings, or slice ingestion summary with expiry metadata.

ParameterTypeDescription
action *stringBlackboard operation: get, set, delete, lease, list, ingest_slice
agent_idstringAgent identifier for lease actions
duration_secondsnumberLease duration in seconds
execution_idstringTarget execution ID
keystringBlackboard variable key
modestringLease action mode: acquire or release (default: acquire)
payloadobjectKey-value dictionary of slice data to project into blackboard (action: ingest_slice)
projectstringTarget project slug
slice_typestringSlice category for ingest_slice (default: spatial)
ttl_msnumberTime-to-live before slice expires and is marked stale (default: 5000ms)
valueBlackboard variable value

manage_runtime_db

Database maintenance, diagnostics, SHA-256 Merkle audit verification, and snapshot management (actions: stats, audit, doctor, snapshot, diff, restore). Use manage_runtime_db instead of get_metrics when auditing SQLite integrity and Merkle proofs or restoring database snapshots. Returns maintenance diagnostics, Merkle audit trees, snapshot metadata, or diff reports.

ParameterTypeDescription
action *stringDatabase maintenance operation: stats, audit, doctor, snapshot, diff, restore
descriptionstringSnapshot description
namestringSnapshot name
projectstringTarget project slug