#mcp #ai-agents #zap #rpc #capnproto

zap-proto

ZAP - Zero-copy Application Protocol for AI agent communication. See zap-schema for the main crate.

1 stable release

new 1.0.0 Jan 26, 2026

#4 in #zap

MIT/Apache

545KB
11K SLoC

Rust 7.5K SLoC // 0.0% comments TypeScript 2K SLoC // 0.2% comments Python 1.5K SLoC // 0.2% comments JavaScript 122 SLoC // 0.1% comments Shell 53 SLoC // 0.1% comments

zap-proto

This crate re-exports zap-schema.

Installation

cargo add zap-schema

See zap-schema documentation for full API reference.


zap-proto

This crate re-exports zap-schema.

Installation

cargo add zap-schema

About ZAP

ZAP (Zero-copy Application Protocol) is a high-performance RPC protocol for AI agent communication featuring:

  • Clean whitespace-significant schema language
  • Zero-copy serialization via Cap'n Proto
  • Multi-transport support (TCP, WebSocket, HTTP/SSE, Unix socket)
  • MCP gateway for aggregating Model Context Protocol servers
  • Post-quantum cryptography (ML-KEM, ML-DSA)
  • Agent consensus voting
  • W3C DID identity

Dependencies

~20–40MB
~532K SLoC