jamjet-policy
OfficialJamJet policy as an OpenAI Agents SDK guardrail, enforcing policies on agent actions.
JamJet Policy
The portable policy layer for AI agent actions.
One policy file. One audit trail. Across hooks, guardrails, MCP gateways, SDKs, and custom runtimes.
Packages
@jamjet/claude-code-hook— JamJet policy as a Claude Code PreToolUse hook@jamjet/openai-guardrail— JamJet policy as an OpenAI Agents SDK guardrail@jamjet/mcp-shim— JamJet policy as an MCP stdio interceptor@jamjet/cedar: Cedar policies (AgentCore, AGT style) validated against a published tool-call schema and composed withpolicy.yaml@jamjet/cli— Unifiedaudit show+approveacross all adapters
All four adapters share a single policy.yaml format and a single audit JSONL schema.
See conformance/ for the spec these adapters all satisfy.
Available Tools
3 toolspolicy_evaluateA
Evaluate the currently loaded JamJet policy against a candidate MCP tool name. Returns the matched rule, the decision (allow / block / require_approval / audit), and the matched glob pattern. Use this to dry-run a tool call before issuing it, or to explain why a previous call was blocked. Read-only and side-effect free — does not write to the audit log.
Inputs: tool_name (required), arguments.
policy_list_rulesA
List every rule in the currently loaded JamJet policy, in declaration order. Each entry includes the rule index, action (allow / block / require_approval / audit), and the glob pattern it matches. Use this to inspect the active policy without reading the YAML file directly, or to verify a rollout placed rules in the expected order. Read-only.
Inputs: no named parameters.
policy_load_infoA
Report the path to the policy file currently loaded by this server, plus the number of rules it contains and the policy schema version. Use this once at session start to confirm the server has the expected policy attached. Read-only.
Inputs: no named parameters.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 3 tools
Each tool has a clearly distinct purpose: evaluate a specific tool against policy, list all rules, and report loaded policy info. No overlap between them.
All tools follow the consistent pattern 'policy_verb[_noun]' using snake_case, making them predictable and easy to understand.
With 3 tools, the server is tightly scoped to policy inspection and evaluation, fitting its purpose well without unnecessary bloat.
The set covers the essential operations for a read-only policy server: evaluating a candidate, inspecting rules, and confirming the loaded policy. No missing functionality for its intended use.
Maintenance
Related MCP Connectors
Guard wraps stdio MCP servers: risky calls wait for a person; no answer, no run. Remote: cooperative
Zero-LLM guardrail MCP to detect prompt injections, redact/HMAC PII, and validate tool args.
Real-time MCP & A2A prompt-injection, jailbreak, and tool-schema poisoning firewall for AI agents.
Security & DLP proxy for MCP: tool-poisoning scans, PII redaction on tool args/results. Beta.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenancePolicy-enforcing MCP proxy that blocks dangerous tool calls before they execute. Protects credentials, filesystem, shell, and databases across Claude Desktop, Cursor, Windsurf, and OpenClaw.17 npm41Apache 2.0
- AlicenseNot gradedqualityDmaintenanceRuntime proxy that intercepts and blocks MCP tool calls based on YAML-defined policies, enforcing security rules for AI agents like Claude Code or Cursor.51 npm1Apache 2.0
- AlicenseNot gradedqualityBmaintenanceEnables developers to wrap existing MCP servers with a deterministic policy enforcement gate that intercepts tool discovery and tools/call requests over stdio, allowing only authorized calls to reach the downstream server. It supports dynamic tool exposure or hiding, allow/deny/approval-required decisions, configurable error disclosure modes, and Ed25519-signed retry credentials for approved workflows.Apache 2.0
- AlicenseNot gradedqualityBmaintenanceSits in front of any MCP server to enforce allow/ask/block policies on tool calls, paths, shell commands, and network domains, with local approval prompts and an audit log.MIT