JamJet
JamJet’s MCP server exposes tools to run and govern durable AI-agent workflows and registered agents.
Start new workflow executions with input, workflow version, and tenant context.
Retrieve execution details, list executions with filters/pagination, and inspect immutable ordered event logs.
Approve or reject paused executions, including audit comments and action digests.
Cancel running or paused executions irreversibly.
List registered agents filtered by status, skill, or protocol.
Discover and register remote agents by fetching their Agent Card.
Enables integrating Brave Search as an MCP tool within agent workflows to provide web search and information retrieval capabilities.
The action-control plane for AI agents. One policy file. One audit trail. Across hooks, guardrails, MCP gateways, SDKs, and custom runtimes.
jamjet.dev · Quickstart · Docs · Examples · Blog · Discord
Write the safety policy once. Run it everywhere your agents can act.
JamJet sits underneath your agent (Claude Code, OpenAI Agents SDK, MCP clients, LangChain, CrewAI, ADK, Spring AI, custom code) and enforces what prompts cannot:
🛡️ Block unsafe tool calls at runtime: database deletes, payments, file writes
✋ Pause for human approval on risky actions, durably
💸 Cap cost per agent, per run, per project
📒 Record an audit trail of every decision, with approvals signed and hash-chained
⏪ Replay or resume crashed runs from the last checkpoint
Keep your agent framework. Add JamJet where tool calls need control.

See it in 60 seconds
pip install jamjet
jamjet demo unsafe-tool-callNo API key. No Docker. No cloud account. The model is mocked; the policy check is the SDK's own evaluator. The demos run in process and do not start the runtime. Three more demos run the same way:
jamjet demo approval # pause-for-approval flow
jamjet demo budget-cap # $0.05 cost cap
jamjet demo mcp-tool-policy # policy on an MCP-shaped request (no MCP server involved)Related MCP server: jamjet-labs/engram-mcp-server
Run an agent with no API key
Set model="scripted/<path to a YAML file>" and each model call is answered from
the file. Only the model is scripted. Policy, approval, budget and durability are
the real ones.
# scripts/book.yaml: turn N answers the agent's Nth model call
turns:
- tool_calls:
- name: search_venues
arguments: {city: Lisbon, date: "2026-12-11"}
- tool_calls:
- name: check_dates
arguments: {venue: Casa do Rio}
- tool_calls:
- name: pay_deposit
arguments: {venue: Casa do Rio, amount: 500}
- content: "Booked Casa do Rio in Lisbon for 11 December. The 500 deposit is paid."# book.py
import asyncio
from jamjet import Agent
from venue_tools import search_venues, check_dates, pay_deposit # plain `def` functions under @tool
agent = Agent(
"venue-booker",
model="scripted/scripts/book.yaml",
tools=[search_venues, check_dates, pay_deposit],
instructions="You book event venues. Use the tools.",
strategy="react",
policy={"require_approval_for": ["pay_deposit"], "blocked_tools": ["cancel_*"]},
)
result = asyncio.run(agent.run_durable("Book a venue in Lisbon for 2026-12-11."))
print(result.output, result.execution_id)A relative script path is resolved from the working directory of the process that
reads it. Run jamjet dev from your project folder, or give an absolute path.
Run jamjet dev --modules venue_tools in one terminal and python book.py in
another. The run waits at pay_deposit. Then:
jamjet executions # every run
jamjet approvals # every run waiting for approval
jamjet approve <id> -d approved --as <name>
jamjet audit <id>On a real run, jamjet audit ended with:
pay_deposit ran 1 time, approved by tester at 03:09:24The full walkthrough, with the output of each command, is in the
Python guide. Python 3.11 or newer.
pip install jamjet is enough for in-process runs on the scripted model.
jamjet dev and durable runs need pip install 'jamjet[sidecar]'.
Real providers need jamjet[model] as well.
Watch it built
Build Your First AI Agent with JamJet is part 1 of the code-along, seven minutes long. It builds this venue-booking agent from an empty folder: an agent with instructions, two tools, then a pay_deposit tool that pays because the prompt said so. The code is in examples/venue-booking-agent, one folder per step. The later steps there add approval before the payment, a blocked tool, and an engine killed while the payment waits.
Works alongside Claude Code · OpenAI Agents SDK · MCP clients · LangChain · CrewAI · ADK · Spring AI · LangChain4j.
On the JVM
JamJet Java Runtime embeds durable execution directly in your JVM process: Java 21, no Docker, 8.9× faster than calling out to a REST sidecar (benchmark and launch post). Works with Spring AI, LangChain4j, and Google ADK.
→ See a Spring Boot agent survive kill -9 mid-run in examples/loan-underwriter-agent: resumes from disk checkpoints, gates disbursement on human approval, emits a signed receipt bundle.
To record Spring AI calls on this runtime over HTTP instead, see jamjet-spring. Its 0.1.0 release on Maven Central calls routes this runtime does not serve and records nothing.
The same policy, everywhere
Every agent toolchain is inventing its own safety layer. JamJet gives you one policy file and one audit trail across all of them.
Adapter | Install | Host |
| Claude Code PreToolUse hook | |
| Any MCP client (Claude Desktop, Cursor, …) | |
| OpenAI Agents SDK tool guardrail (TS) | |
| OpenAI Agents SDK tool guardrail (Python) | |
| Python SDK + runtime | |
Maven / Gradle | Spring AI ChatClient advisors | |
| TypeScript SDK + shared engine | |
| Unified |
All adapters load the same policy.yaml. All emit conformant audit JSONL to ~/.jamjet/audit/. Run jamjet audit show to tail every decision across every adapter in one chronological view.
JamJet does not replace the hook points these platforms give you. It makes them do more: Claude Code's PreToolUse hook gets a real policy engine, approval flow, and audit trail, and the same rules carry unchanged to OpenAI Agents SDK, MCP clients, Spring AI, and your own Python or TypeScript code.
One policy, every adapter
# ~/.jamjet/policy.yaml
version: 1
rules:
- { match: "*delete*", action: block }
- { match: "payments.*", action: require_approval }
- { match: "shell.exec", action: block }Drop this file in ~/.jamjet/. Every adapter listed above uses it automatically.
Prompts are not a security boundary. The runtime is.
→ Read When AI Deletes the Database for why this is a runtime architecture problem, not a model problem.
Policy in your own code
Drop a policy beside your agent code. The runtime checks every step against it before a worker runs the step: a blocked_tools match fails the step, and a require_approval_for match holds it until a reviewer decides. For a Python step the patterns match its handler (module:function, or the same path with dots) and its node id. The request and the decision are stored, so a restart loses neither. Outside dev mode the person who started a run cannot approve it.
# workflow.yaml
policy:
blocked_tools:
- "*delete*"
- "payments.refund"
require_approval_for:
- "database.*"
- "payment.transfer"
- "user.suspend"Python, with the hosted control plane:
import jamjet
jamjet.cloud.configure(api_key="jj_...", project="my-agent")
jamjet.cloud.policy("block", "*delete*")
jamjet.cloud.policy("require_approval", "database.*")
# Gated in this process: sync OpenAI chat.completions create/parse/stream and
# Anthropic messages and beta.messages create/parse: *delete* tools are
# stripped, and a database.* tool call waits for approval. OpenAI's Responses
# API, Anthropic's messages.stream(), async clients, batch APIs and raw
# streamed responses are not enforced and refuse to run while a block or
# approval rule is set.→ Runnable approval workflow in examples/hitl-approval · Cloud Quickstart
Where JamJet sits
Your Agent / Framework
(LangChain · CrewAI · ADK · custom · MCP client)
│
▼
┌───────────────────────────────────────────────┐
│ JamJet Safety Layer │
│ policy · approval · budget · audit · replay │
└───────────────────────────────────────────────┘
│
▼
Tools · MCP servers · APIs · DBs · AgentsUse JamJet when your agent can…
call MCP servers or arbitrary tools
write to a database
send emails or Slack messages
trigger payments or external API calls
access customer data or PII
run for minutes/hours and needs to survive crashes
spend real model budget at scale
delegate to other agents
What JamJet adds
Without JamJet | With JamJet |
Agent crashes lose progress | Resume from the last checkpoint |
Tool calls rely on scattered app logic | Runtime policy blocks unsafe actions |
Human approval is custom glue | Approval is a durable workflow step |
Costs are discovered after the bill | Budgets enforced per agent / per run |
Audit evidence is stitched from logs | Append-only event log per run; approvals sealed into a signed, hash-chained audit log |
Memory is framework-specific | Pair with Engram for portable memory (MCP · REST · Python · Java) |
Frameworks stay siloed | One policy file across hooks, MCP clients and SDKs; the runtime is also an MCP server ( |
A full runtime underneath
The safety layer runs on a durable, event-sourced execution engine. When you want more than enforcement, it's already there:
Durable execution. Event log, snapshots and crash recovery: after a restart a run picks up where it stopped, and steps that already completed do not run again.
agent.run_durable(...)inexamples/react-agent-durable.Sessions and memory. Persistent
Sessionthreads across runs and restarts, with a governed Engram retrieve/record loop.examples/session-memory.Multi-agent.
Sequential,Parallel, coordinatorTeam, andLoop; each sub-agent runs as its own governed durable execution.examples/team-multi-agent. Declare whole fleets in YAML with cron schedules:examples/fleet.Evaluation. Batch eval with LLM-judge scoring (
examples/eval-harness) and trajectory regression diffs (examples/trajectory-eval).Deploy.
agent.deploy(runtime="local" | "self-host" | "cloud")ships the same compiled IR to any runtime.examples/deploy-an-agent.Dev loop.
jamjet createscaffolds a project;jamjet devruns the whole local stack with one command.Web Companion. A UI embedded in the runtime binary: graph view, timeline and state inspector.
Works with your stack, not a replacement
JamJet does not replace LangChain, LangGraph, CrewAI, Google ADK, Spring AI, or your custom agent code. Use those to build agent behavior. Use JamJet to control what happens at runtime.
You're using | Keep it for | JamJet adds |
LangChain · LangGraph · CrewAI · Google ADK · AutoGen | Authoring agent behavior | Runtime safety: policy, audit, replay, approvals |
LangSmith · Arize · Weights & Biases | Observability and evaluation | Active enforcement (block at runtime) + durable recovery |
Temporal · Orkes · DBOS | General durable workflows | Agent-native primitives: policy on tool calls, MCP/A2A, memory |
Google · AWS · Azure agent platforms | Cloud-native ecosystems | Open-source, cloud-neutral governance that works on-prem |
Want to build the official integration for your framework? Claim a slot: 8 slots open, the first 10 merged contributors get JamJet swag.
Examples
Example | What it shows |
A destructive tool call blocked before execution | |
The video code-along: one agent in nine steps, from a first tool to approval, a blocked tool and | |
Human approval as a first-class workflow primitive | |
A ReAct agent on the durable engine: event log, replay, park-on-429 | |
Multi-agent Teams, each sub-agent its own governed run | |
Spring Boot agent that survives | |
Insurance pipeline: 4 specialist agents + HITL + audit | |
Batch evaluation with LLM judge scoring |
Engram
Engram is the JamJet ecosystem's memory layer for agents. Where JamJet provides durable execution (process can crash and resume), Engram provides durable memory (facts persist across runs and version cleanly via supersede()). Temporal knowledge graph, hybrid retrieval, conflict detection. Ships as a Rust crate, an MCP server (Docker · GHCR), a standalone Python library (github.com/jamjet-labs/engram, 71% on LongMemEval-S), a Python client for the MCP server, and a Spring AI ChatMemoryRepository. Comparison with Mem0/Zep → java-ai-memory.dev.
Architecture
┌──────────────────────────────────────────────────────────┐
│ Authoring Layer │
│ Python SDK | Java SDK | TypeScript SDK | YAML │
├──────────────────────────────────────────────────────────┤
│ Compilation / Validation │
│ Graph IR | Schema | Policy lint │
├────────────────────────────┬─────────────────────────────┤
│ Rust Runtime Core │ Protocol Layer │
│ Scheduler | State SM │ MCP server (/mcp) │
│ Event log | Snapshots │ Agent discovery │
│ Workers | Timers │ │
├────────────────────────────┴─────────────────────────────┤
│ Governance │
│ Policy | Approvals | RBAC | Signed audit log │
├──────────────────────────────────────────────────────────┤
│ Runtime Services │
│ Model adapters | Model sidecar | External workers │
├──────────────────────────────────────────────────────────┤
│ Storage │
│ SQLite | In-memory (ephemeral) │
└──────────────────────────────────────────────────────────┘Documentation
Full docs at docs.jamjet.dev. The guides in docs/guides are versioned with the code:
Quickstart · Concepts · Python SDK · Java SDK · YAML Reference · Human-in-the-Loop · Security · Deployment · Observability · MCP · A2A · Eval · REST API · CLI
Contributing
Contributions welcome. See CONTRIBUTING.md.
Looking for a starter task?
Build a framework integration: 8 slots open, first 10 contributors get JamJet swag
Browse good first issues
Join the conversation in Discord
Community
GitHub Discussions · Issues · Discord
License
Apache 2.0. See LICENSE.
Hosted control plane available at app.jamjet.dev: traces, approval queue, audit retention, team projects. Optional. The runtime, all SDKs, and Engram are Apache-2.0 with no usage limits.
⭐ Star JamJet if you believe agents need a runtime safety layer
Built by Sunil Prakash · © 2026 JamJet Labs · jamjet.dev · Apache 2.0
Available Tools
8 toolsjamjet_approveA
Submit an approval or rejection decision for a workflow execution that is paused and waiting for human review. Use this when jamjet_list_executions shows a 'paused' execution or jamjet_get_events shows an ApprovalRequested event. Side effects: appends an ApprovalReceived event to the event log, recording the authenticated API token as the approver ('mcp-client' only in dev mode), and, if the execution is paused, resumes it to 'running' status so the next node can proceed. The decision is recorded in the immutable audit trail. Returns a JSON object with execution_id and accepted: true. Fails if execution_id is not found, if decision is not exactly 'approved' or 'rejected', or if nothing is pending approval (or node_id does not match a pending approval). Related: use jamjet_get_events to see the ApprovalRequested event details before deciding.
Inputs: decision (required), execution_id (required), comment, node_id, +2 more.
jamjet_cancel_executionA
Cancel a running or paused workflow execution. This is an irreversible, destructive operation. Side effects: appends a WorkflowCancelled event to the execution's event log and sets the status to 'cancelled'. The execution cannot be resumed after cancellation — start a new execution with jamjet_run_workflow if needed. Use this when a workflow is stuck, no longer needed, or was started with incorrect input. Returns a JSON object with execution_id and status 'cancelled'. Fails if the execution is already in a terminal state (completed, failed, or cancelled) or if the execution_id is not found.
Inputs: execution_id (required), tenant_id.
jamjet_discover_agentA
Discover and register a remote agent by fetching its Agent Card from the given URL. Side effects: makes an outbound HTTP request to the URL to retrieve the agent's metadata (Agent Card), then registers the agent in the local runtime registry so it becomes available for routing and invocation. Use this to onboard external agents (A2A, MCP, or REST) before they can appear in jamjet_list_agents or be routed to by a Coordinator. Returns the full JSON Agent Card of the newly registered agent, including its ID, name, skills, protocol, and endpoint. Fails if the URL is unreachable, does not serve a valid Agent Card, or if a network error occurs. This operation is idempotent — discovering the same URL again updates the existing registration.
Inputs: url (required).
jamjet_get_eventsA
Retrieve the full, ordered event log for a workflow execution. Read-only, no side effects. Use this to debug execution behavior, understand which nodes ran and in what order, or inspect approval decisions. Returns a JSON object with an 'events' array. Each event has: execution_id, sequence (monotonic counter), timestamp, and kind (one of: WorkflowStarted, NodeScheduled, NodeStarted, NodeCompleted, NodeFailed, ApprovalRequested, ApprovalReceived, WorkflowCompleted, WorkflowCancelled, WorkflowFailed). Events are returned in sequence order (oldest first) and represent the complete, immutable audit trail. For a high-level status summary, use jamjet_get_execution instead.
Inputs: execution_id (required), tenant_id.
jamjet_get_executionA
Retrieve the full details of a single workflow execution. Read-only, no side effects. Use this to check an execution's current status, inspect its state, or confirm completion after running jamjet_run_workflow. Returns a JSON object with: execution_id, workflow_id, workflow_version, status (one of: running, paused, completed, failed, cancelled), initial_input, current_state, started_at, updated_at, and completed_at (null if still running). Fails with 'execution not found' if the ID does not exist in the specified tenant. For the full event history, use jamjet_get_events instead.
Inputs: execution_id (required), tenant_id.
jamjet_list_agentsA
List all agents registered in the runtime, with optional filters by status, skill, or protocol. Read-only, no side effects. Use this to discover which agents are available before routing work, or to check the health/status of registered agents. Returns a JSON object with an 'agents' array. Each entry includes the agent's ID, name, description, skills, protocol, status, and Agent Card metadata. All filter parameters are optional and can be combined — omit all to list every registered agent. Returns an empty array if no agents match the filters. Related: use jamjet_discover_agent to register a new remote agent before listing.
Inputs: skill, status, protocol.
jamjet_list_executionsA
List workflow executions with optional status filtering and pagination. Read-only, no side effects. Use this to find executions that need attention — for example, filter by 'paused' to find executions awaiting approval via jamjet_approve, or filter by 'running' to monitor active workflows. Returns a JSON object with an 'executions' array, where each entry has the same fields as jamjet_get_execution. Results are ordered by creation time (newest first). Supports offset-based pagination via limit and offset parameters. All parameters are optional — calling with no arguments returns the 50 most recent executions across all statuses.
Inputs: limit, offset, status, tenant_id.
jamjet_run_workflowA
Start a new durable workflow execution. Use this to kick off a workflow that has already been registered with the runtime. Side effects: creates a new execution record, appends WorkflowStarted and NodeScheduled events to the event log, and enqueues a work item for the first node — the workflow begins processing immediately. Returns a JSON object with the execution_id (format: exec_) that you can pass to jamjet_get_execution, jamjet_get_events, jamjet_cancel_execution, or jamjet_approve. This operation is not reversible — use jamjet_cancel_execution to stop a running workflow. Fails if the workflow_id + version combination is not registered. Outside dev mode the bridge requires a Bearer API token with the developer or operator role.
Inputs: input (required), workflow_id (required), tenant_id, workflow_version.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 8 tools
Each tool targets a distinct resource+action, and the descriptions explicitly cross-reference each other (get_execution vs get_events, list_executions vs get_execution, discover_agent vs list_agents) to steer correct selection. The mutating tools (run_workflow, cancel_execution, approve) are clearly separated by intent and preconditions.
All tools share a consistent jamjet_ prefix and snake_case verb_noun pattern (cancel_execution, get_execution, get_events, list_executions, list_agents, discover_agent, run_workflow). The lone deviation is jamjet_approve, which omits the object noun present in every other name.
Eight tools is well within a healthy range and each one covers a distinct capability (execution lifecycle reads/writes plus agent registry read/write). No tool feels redundant or like filler.
The execution surface covers run/get/list/cancel/approve/events but lacks pause/resume and any workflow-catalog operations (list_workflows, get_workflow, register_workflow), yet run_workflow requires a pre-registered workflow_id+version — a real dead end. The agent side has discover and list but no get_agent, update, or unregister/delete, leaving registry lifecycle incomplete.
Maintenance
Related MCP Connectors
Hosted runtime for persistent agent teams, durable workflows, memory, schedules, and goals.
Persistent memory, knowledge graph, task management and more for AI agents via MCP.
- aXDeprecatedio.github.ax-platform
Agent-native collaboration network: orchestrate a team of long-running agents from any MCP client.
Build and run AI workflows, agents, data tables and 1000+ API integrations from any MCP client.
Related MCP Servers
- AlicenseNot gradedqualityBmaintenanceServer-enforced workflow discipline for AI agents. An MCP server providing persistent work items, dependency graphs, quality gates, and actor attribution. Schemas define what agents must produce — the server blocks the call if they don't. Works with any MCP-compatible client.215MIT
- AlicenseNot gradedqualityDmaintenanceDurable memory MCP server for AI agents. Temporal knowledge graph with hybrid semantic + keyword retrieval, LLM-powered fact extraction, conflict detection, and consolidation. Backed by SQLite or PostgreSQL. 11 MCP tools, 6 LLM provider backends. Part of JamJet.Apache 2.0
- FlicenseCqualityAmaintenanceSelf-hosted, source-available AI workflow automation platform. Build multi-agent, RAG, and tool-using pipelines on a visual canvas and publish any workflow as an MCP server (stdio/SSE/Streamable HTTP). Also an MCP client via the agent node.21,851-
- FlicenseAqualityDmaintenanceAn agent-native workflow MCP server that enables AI agents to execute text-defined, versionable workflows with checkpointing and state management.10-