ANCP connects AI agents, LLMs, microservices, and workflow nodes through a single unified communication protocol.
Part of the BizFirstAi platform · v1.0.2 Production Ready
The nervous system connecting your AI agents, workflow nodes, microservices, and frontend applications — with identity, correlation, and multi-tenancy built in from the start.
Designed for agentic systems. Every message carries caller identity, correlation ID, message pattern, and tenant context. Not just RPC.
Fire-and-forget, request-reply, streaming (SSE), and task-start. Pick the right pattern for every operation — no compromises.
Connect Claude, GPT-4, local Ollama models, or custom LLMs. One protocol, any model — with per-model cost tracking built in.
Every distributed system has different communication needs. ANCP gives you the right tool for every job — chosen at the call site, not baked into the transport.
Returns 202 Accepted immediately. The caller is never blocked — work happens in the background. Best for email notifications, background job submission, audit log writes, and event publishing.
Synchronous — blocks until a typed response is received. Best for data queries, calculations, validation checks, and form auto-fill where the result is needed immediately.
Real-time token-by-token delivery via Server-Sent Events. Best for LLM text generation with tokens arriving live, report generation with progress, large data exports, and chat applications.
Returns a taskId immediately, then poll for Running / Completed / Failed / Cancelled status. Best for batch processing, large analysis jobs that take minutes or hours, and background workflows.
From React front-ends to C# backends to full agent orchestration — ANCP is the single wire connecting every layer.
First-class React hooks: useAncpInvoke, useAncpStream, useAncpTask, useAncpCapabilities. Wrap your app with AncpProvider and every component gets typed, reactive access to any ANCP node.
Register handlers with OnInvoke, OnFireAndForget, OnStream, and OnTask. Every handler receives a fully typed AncpActionContext<T> with payload, identity, tenant, and correlation fields.
ANCP is the communication backbone of Octopus. Chat sends via ANCP, the agent executor receives via ANCP, and streams responses back via ANCP. AI Agent Nodes and AI Function Nodes in ProcessServer use ANCP to communicate.
Deep-dive guides, protocol spec, and comparisons to help you evaluate and adopt ANCP.
Step-by-step walkthrough — from installation to your first agent call. Covers React hooks, C# node setup, and all four messaging patterns with runnable examples.
Read Guide →The full ANCP v1.0.2 specification. Message envelope schema, envelope fields, transport rules, error codes, authentication modes, and discovery document format.
Read Spec →Side-by-side comparison of Google Agent-to-Agent (A2A) and ANCP. Understand the architectural differences, feature gaps, and when to choose each protocol.
Compare →Two packages. One protocol. Every pattern.
npm install @bizfirst/ancp-core @bizfirst/ancp-react