Fail-closed policy gate for AI agent actions, with local evaluation and native pre-tool hooks.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
π‘ Paste the JSON block into your client's configuration file under mcpServers, then restart the application.
Let agents propose. Let policy decide.
Agent-Safe Pipeline is a reference architecture for executing AI-agent actions through an independent authorization boundary.
This repository is a library and runnable reference implementation, not a hosted authorization service or a substitute for provider-side identity, least privilege, network isolation, and incident response. Its safety claims apply only when the documented trust boundary is preserved.
Agents can reason, plan, and propose actions. They must not determine whether their own actions are authorized, possess downstream privileged credentials, or choose which trusted handler runs.
Requirements: Node.js 22.14 or later and pnpm 9.
The demos use an explicitly non-production fixture authority. A production integration uses DecionisGate and DecionisGrantVerifier with server-side credentials.
The executor accepts a captured intent and a decision. It does not accept an arbitrary callback from the agent. A sealed ActionRegistry maps action names to trusted handlers and validates parameters before consuming a single-use grant.
packages/pipeline β IntentCapture, DecionisGate, Presence coordination, and SafeExecutor.examples/basic-agent β the smallest BLOCK flow.examples/shopify-refund-agent β amount-based ALLOW / ESCALATE / BLOCK.examples/github-deploy-agent β environment and force-push controls.examples/procurement-agent β an in-budget software request held when existing tools still have user capacity.examples/mcp-tool-gate β a real stdio MCP server with a governed tool.ARCHITECTURE.md and THREAT-MODEL.md β trust boundary and abuse analysis.conformance/agent-safe-intent-v1.json β portable canonical-hash test vector.conformance/vectors/ β edge-case canonical-hash vectors (Unicode/astral, NFC vs NFD, negative zero, fractional/exponent numbers, nested arrays, UTF-16 key sort order), auto-discovered by the conformance test.FIXTURE-PROVENANCE.md β origin and permitted use of every fixture family.DEPENDENCY-LICENSES.md β generated inventory method and platform-conditional dependency notes.SECURITY-EVIDENCE.md β control-to-artifact evidence map and published gaps.PUBLICATION-SIGNOFFS.md β human decisions that automation cannot make.See docs/trust-boundary.md before integrating a real downstream API.
This is intended to be the public, canonical reference implementation. It should not be mirrored: mirrors create contract and security-fix drift. Public content belongs hereβarchitecture, package source, synthetic policies, and runnable examples. Production policy bundles, customer data, credentials, internal infrastructure, and private incident material do not.
Decionis remains the authoritative decision service, Presence remains the human-verification service, and their server internals can evolve independently behind versioned contracts.
The package is published as @decionis/agent-safe-pipeline. Install the latest stable release with npm install @decionis/agent-safe-pipeline; prereleases require an explicit version such as npm install @decionis/agent-safe-pipeline@0.1.3-rc.2.
pnpm verify enforces formatting, Markdown lint, fixture conventions, canonical licensing, separate
production/toolchain audits, deterministic performance tests, types, tests, and coverage thresholds
of 90% for lines/functions/statements and 85% for branches. pnpm mutation checks that
trust-boundary tests kill deliberate code mutations. pnpm fuzz runs deterministic property tests
against canonical intent handling; CI also runs them weekly with a larger bounded sample.
Installation activates the repository's simple-git-hooks pre-commit guardrails.
Apache-2.0 licensed. See LICENSE, TRADEMARKS.md, SECURITY.md, and CONTRIBUTING.md. Report suspected vulnerabilities through GitHub's private advisory form, not a public issue.
No reviews yet β be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/mcp-224)<a href="https://allmcps.com/mcp/mcp-224"><img src="https://allmcps.com/api/badge/mcp-224?style=directory" alt="Agent Safe Pipeline on AllMCPs" /></a>