ASAP: Async Simple Agent Protocol
✨ From agents, for agents. Delivering reliability, as soon as possible.
A production-ready protocol for agent-to-agent communication, and the capability, approval, and compliance layer that works alongside A2A and MCP.
Quick Info: Latest release · PyPI asap-protocol | Apache 2.0 | Python 3.13+ | Documentation | Changelog
This source tree contains v2.6.0 Interop. Check GitHub Releases, PyPI, and npm for published versions.
📦 Install —
asap-protocolon PyPI (Python) ·@asap-protocol/clienton npm (TypeScript)
🚀 Live now our agentic marketplace — browse agents, register yours, request verification.
Why ASAP?
Multi-agent systems hit three walls that point-to-point agent protocols often leave open:
- Connection sprawl — pairwise HTTP does not scale as orchestrators fan out.
- State drift — long workflows stall without durable task state and resumability.
- Fragmentation — delegation, artifacts, and MCP tool calls end up in incompatible layers.
ASAP answers with a schema-first protocol and reference SDKs in Python and TypeScript:
- Resumable orchestration — task state machine, snapshot store, SSE streaming, and built-in
trace_id/correlation_id. - One typed envelope — tasks, MCP tool execution, and artifact exchange on the same JSON Schema contract.
- Production trust — Ed25519 signed manifests, Host/Agent JWTs, constrained capabilities, OAuth2, opt-in WebAuthn — plus the MCP Auth Bridge (v2.5.0) for scoped native
tools/call. - Ecosystem-ready — agentic marketplace, Lite Registry, edge-AI discovery, OpenAPI import, and framework adapters (Python & npm).
Plain HTTP between two agents is enough for the simplest cases. ASAP is built for multi-agent orchestration, stateful workflows, and governed capability access in production — see documentation and the feature table below.
Key Features
| Area | Highlights | Docs |
|---|---|---|
| Stateful orchestration | Task state machine, snapshotting, resumable workflows | State management |
| Schema-first | Pydantic v2 + JSON Schema for cross-agent interchange | API reference |
| Async-native | asyncio + httpx; sync and async handlers |
Transport |
| MCP integration | Tool execution and coordination in one envelope (Mode B) | MCP integration |
| MCP Auth Bridge | Opt-in Agent JWT + capability grants on native stdio MCP tools/call (Mode A) |
MCP Auth Bridge |
| Observability | trace_id and correlation_id for debugging |
Observability |
| Security | OAuth2/JWT, Ed25519 manifests, mTLS, rate limiting | Security |
| Identity & capabilities | Host/Agent JWTs, constrained grants, approval flows, opt-in WebAuthn | Capabilities |
| Streaming & wire protocol | SSE /asap/stream, JSON-RPC batch, ASAP-Version negotiation |
Transport |
| Adoption tools | OpenAPI adapter, @asap-protocol/client, auto-registration, escalation |
Migration (v2.2 → v2.3) |
| Edge-AI discovery | Hardware/inference manifests, registry mirror, marketplace filters | ShellClaw guide |
| Framework adapters (npm) | @asap-protocol/mastra and @asap-protocol/openai-agents tool bridges |
Mastra · OpenAI Agents |
| Economics | Usage metering, delegation tokens, SLA breach alerts | Audit log |
Full overview and upgrade paths: docs/index.md.
Framework Ecosystem
ASAP meets agents where they run — optional Python extras, npm tool bridges, and protocol-native MCP.
| Runtime | Integrations | Docs |
|---|---|---|
| Python | LangChain, CrewAI, LlamaIndex, PydanticAI, SmolAgents, OpenClaw (pip install "asap-protocol[extra]"); Vercel AI SDK router; MCP; MCP Auth Bridge; A2H; OpenAPI workflow connectors (Lab II) |
OpenClaw · Vercel AI SDK · MCP · MCP Auth Bridge · Workflow connectors · NeMo Agent Toolkit (experimental) |
| TypeScript (npm) | @asap-protocol/client (Vercel AI / OpenAI / Anthropic adapters), @asap-protocol/mastra, @asap-protocol/openai-agents |
TypeScript SDK · Mastra · OpenAI Agents · Microsoft Agent Framework (research) |
Installation
We recommend using uv for dependency management:
uv add asap-protocol
Or with pip:
pip install asap-protocol
TypeScript packages on npm (v2.4.1 examples)
@asap-protocol/client— SDK docs@asap-protocol/mastra— docs · demo@asap-protocol/openai-agents— docs · demo
npm install @asap-protocol/client@2.4.1
npm install @asap-protocol/mastra@2.4.1 @asap-protocol/client @mastra/core zod
npm install @asap-protocol/openai-agents@2.4.1 @asap-protocol/client @openai/agents zod
See the v2.6.0 upgrade guide for Interop upgrade steps. The v2.5.12 upgrade guide covers the 2.5.12 maintenance changes. Start a project with Build for agents or the starter examples.
Quick Start
Run the demo (echo agent + coordinator in one command):
uv run python -m asap.examples.run_demo
Build your first agent here — server setup, client code, step-by-step (~15 min).
19 examples: orchestration, state migration, MCP, OAuth2, WebSocket, resilience.
Testing
Fast loop, local coverage floor, and the CI argv are the canonical commands.
Testing Guide (structure, fixtures, property/load/chaos tests). Contributing (dev setup, CI).
Compliance Harness
Validate that your agent follows the ASAP protocol:
uv add "asap-compliance>=1.3.0"
pytest --asap-agent-url https://your-agent.example.com -m asap_compliance
For MCP Auth Bridge stdio gates (mcp-auth-bridge profile), use asap-compliance 1.3.0+ with asap-protocol 2.5.0+ — published on PyPI via tag v2.5.0.1.
See Compliance Testing Guide for handshake, schema and state machine validation.
Documentation
Learn
- Docs | API Reference
- MCP Auth Bridge — v2.5.0 opt-in JWT + capability grants for native stdio MCP
- Interoperability: A2A, MCP, and ASAP — ASAP grants in front of A2A v1.0 agents and HTTP MCP servers
- TypeScript client SDK —
@asap-protocol/client(identity, capabilities, streaming, adapters) - Tutorials — First agent to production checklist
- Migration from A2A/MCP
- Raw Fetch (non-Python) — Fetch registry.json and revoked_agents.json with curl/fetch; implement your own client.
Deep Dive
- State Management | Best Practices: Failover & Migration | Error Handling
- Transport | Security | Security Model (OAuth2 trust, Custom Claims)
- Identity Signing | Compliance Testing | Migration v1.1 to v1.2 | mTLS
- Observability | Testing
Decisions & Operations
- ADRs — 19 Architecture Decision Records
- Tech Stack — Rationale for Python, Pydantic, Next.js choices
- Deployment | Troubleshooting
Release
- Changelog | PyPI listing —
https://pypi.org/project/asap-protocol/(install:pip install asap-protocol)
CLI
asap --version # Show version
asap list-schemas # List JSON schemas
asap export-schemas # Export schemas to disk
asap validate-schema payload.json # Validate JSON against a schema
asap compliance-check --url https://agent.example # Remote Compliance Harness v2
asap audit export --store memory --format json # Export audit log (stdout)
asap keys generate -o key.pem # Ed25519 keypair
asap manifest sign -k key.pem manifest.json # Sign agent manifest
asap delegation create -d <urn> -s read -k key.pem --delegator <urn>
asap trace <trace-id> --log-file asap.log # Visualize request flow from logs
See docs/cli.md for delegation tokens, schema validation, trace visualization, REPL, and full flag reference. Run asap --help for your installed version.
Version History
High-level only — see Changelog and the docs index for full notes.
| Version | What shipped |
|---|---|
| v2.5.5 and later v2.5.x patches | Security fixes, dependency floors, and regression tests. The wire protocol stays compatible. The v2.5.x feature train closed at 2.5.11. See the latest published release, changelog, and v2.5.12 upgrade steps. |
| v2.5.4 | Distribution Loop — GitHub Release v2.5.4 · thin starters (examples/starters/), Build for agents, homepage agent-first CTAs, telemetry ops (no public metrics UI). See CHANGELOG, PRD, and Migration (v2.5.3 → v2.5.4) |
| v2.5.3 | Adapter Lab II — GitHub Release v2.5.3 · workflow OpenAPI connectors + security guide, experimental MAF / NeMo guides, JSON-safe -32602, MCP example client DX. See CHANGELOG, PRD, and Migration (v2.5.2 → v2.5.3) |
| v2.5.2 | Security & correctness follow-up — opt-in operator API auth, extra="forbid" ingress, Redis JTI replay, web distributed rate limits, v2.5.1 CR follow-ups (#245–#249), registry signed-manifest/400 fixes. See CHANGELOG, PRD, and Migration (v2.5.1 → v2.5.2) |
| v2.5.1 | Code quality patch — behavior-preserving refactor (transport/server, client, websocket, SQLite storage, auth, integrations) + six correctness/security fixes (atomic revoke_cascade, usage_events DDL, unified Host-JWT verifier, WS now enforces OAuth2, OpenAPI handler cleanup, client correlation_id binding). Deprecated import paths removed in v2.6.0. See CHANGELOG and Migration (v2.5.0 → v2.5.1) |
| v2.5.0.1 | Compliance publish — GitHub Release v2.5.0.1 · PyPI asap-compliance 1.3.0 (mcp-auth-bridge profile; requires asap-protocol>=2.5.0). No asap-protocol API change. See CHANGELOG |
| v2.5.0 | MCP Auth Bridge — GitHub Release v2.5.0 · opt-in protect_server for stdio MCP; Agent JWT + capability grants; reference example examples/mcp_auth_bridge/. See CHANGELOG and Migration (v2.4.1 → v2.5.0) |
| v2.4.1 | Security hardening — OAuth2 iss/aud, fail-closed identity binding, web SSRF/redirect fixes, dependency bumps. See CHANGELOG and Migration (v2.4.0 → v2.4.1) |
| v2.4.0 | Edge-AI discovery — optional hardware / inference manifest fields, registry mirror, marketplace filters, @asap-protocol/client@2.4.0, ShellClaw onboarding docs. See CHANGELOG and Migration (v2.3.x → v2.4.0) |
| v2.3.1 | npm TS patch — GitHub Release v2.3.1 · @asap-protocol/mastra, @asap-protocol/openai-agents, @asap-protocol/client@2.3.1 (additive adapter exports). Python 2.3.0 unchanged. See CHANGELOG and Migration (v2.3.0 → v2.3.1) |
| v2.3.0 | OpenAPI Adapter ([openapi]) · TypeScript client (@asap-protocol/client) · Auto-Registration · Capability escalation · ASAP HTTP challenge — see CHANGELOG and Migration |
| v2.2.1 | Opt-in WebAuthn (asap-protocol[webauthn]) · asap compliance-check & asap audit export · stricter ResolvedAgent.run() · AuditChainBroken · pinned security deps |
| v2.2 | Per-runtime identity & capability auth · SSE POST /asap/stream · ASAP-Version · JSON-RPC batch · tamper-evident audit · async state stores · Compliance Harness v2 |
| v2.1.1 | Patch: JWT allowlist · SQLite async bridge · optional Redis rate limits · web SSRF hardening |
| v2.1 | MarketClient · framework extras (LangChain, CrewAI, LlamaIndex, …) · registry UX |
| v2.0 | Marketplace web app · Lite Registry (GitHub Pages) · IssueOps · OAuth · verification flow |
| v1.3 | asap delegation create / revoke |
| v1.2 | Ed25519 manifests · trust levels · optional mTLS · Compliance Harness |
| v1.1 | OAuth2 · WebSocket · discovery (well-known + Lite Registry) · SQLite state · webhooks |
🔭 What's Next?
The agentic marketplace and Lite Registry are live. The v2.5.x feature train closed at 2.5.11.
- v2.6.0 Interop adds signed A2A v1.0 Agent Cards, grants for external OAuth 2.1 access tokens, and
@asap-protocol/mcp-authfor HTTP MCP servers. See the interoperability guide. - v2.7.0 Spec profile is next. The RFC 2119 profile will cover ASAP identity, capability grants, approvals, lifecycle, and errors. Each MUST will map to an
asap-compliancecheck. See the Spec profile PRD. - Economy proceeds when the triggers in its PRD are met.
See the roadmap, release policy, integration support tiers, and ADR index.
Contributing
Community feedback and contributions are essential for ASAP Protocol's evolution. We're working on improvements and your input helps shape the future of the protocol.
Every contribution, from bug reports to feature suggestions, documentation improvements and code contributions, makes a real difference.
Check out our contributing guidelines to get started. It's easier than you think! 🚀
Contact
| Channel | Use for |
|---|---|
| GitHub Discussions or Issues | Public questions, bugs, and feature ideas |
| info@asap-protocol.com | Private coordination — protocol, marketplace, partnerships, press |
| SECURITY.md | Security vulnerabilities only — do not use email or public issues |
Privacy
See PRIVACY.md for how the public site and maintainer telemetry use aggregate metrics (including Vercel Web Analytics) without collecting agent IDs or end-user PII in repository outputs.
License
This project is licensed under the Apache 2.0 License - see the license file for details.
Built with Cursor, with Composer, Grok, Opus, Gemini, Kimi and more.
Metadata
Release files for asap-protocol 2.6.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| asap_protocol-2.6.0.tar.gz | 485.2 kB | Without provenance | Details for asap_protocol-2.6.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| asap_protocol-2.6.0-py3-none-any.whl | Python 3 | none | any | Details for asap_protocol-2.6.0-py3-none-any.whl |
Total release size: 1.0 MB
Release files / asap_protocol-2.6.0.tar.gz
| Download URL | asap_protocol-2.6.0.tar.gz |
|---|---|
| Size | 485.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d50e081b000a279e0828864f15d39e41203aa1ee6849ba67a78c5fe4f6a59d03
|
|
BLAKE2b-256 checksum How to use checksums |
29f59d917fe88e3327723930fde8da0109d83bb6a88fecfc67e51ebac7abd318
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Release files / asap_protocol-2.6.0-py3-none-any.whl
| Download URL | asap_protocol-2.6.0-py3-none-any.whl |
|---|---|
| Size | 547.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b910d94ed96d9dbb00d2bae79613da2c7b7ba50a142968f5d9a5cd9677010ef8
|
|
BLAKE2b-256 checksum How to use checksums |
cde7895c8cd5f4e1cd6b0f9a221edcc9b7ffd540c647f05612fc63aaf33b056e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Security for asap-protocol 2.6.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.