agent-client-protocol
Library Featured
Core protocol types and traits for the Agent Client Protocol
- Downloads
- 941,949
- Dependents
- 145
- Stars
- 245
- Forks
- 54
- Contributors
- 35
- Commits
- 887
- Latest release
- 5.0.0 ·
About
The Agent Client Protocol (ACP) standardizes communication between code editors (interactive programs for viewing and editing source code) and coding agents (programs that use generative AI to autonomously modify code).
Learn more at agentclientprotocol.com.
This repository is the official Rust SDK for ACP. It provides crates for building clients, agents, and proxies, plus a conductor that orchestrates chains of proxies between an editor and an agent so that behavior can be extended without modifying the agent itself.
Crates
Core SDK
agent-client-protocol– Roles (Client, Agent, Proxy, Conductor), connection builders, handlers, and protocol types.agent-client-protocol-http– HTTP/SSE and WebSocket transports.agent-client-protocol-rmcp– Integration with thermcpMCP SDK.agent-client-protocol-derive– Derive macros used by the core crate.
Read the full README
Native MCP-over-ACP support is currently opt-in through the core crate's
unstable_mcp_over_acp feature. Standalone MCP servers need no ACP transport
feature; the rmcp integration exposes a matching passthrough feature when those
servers are attached to ACP. Stable protocol v1 supports per-session and global
proxy attachment. Draft protocol v2 supports the same two attachment scopes
when both unstable_protocol_v2 and unstable_mcp_over_acp are enabled:
Proxy.v2().with_mcp_server(...) injects a global declaration into each
supported session setup request, while
v2::SessionBuilder::with_mcp_server(...) attaches a server to one new session
and v2::ResumeSessionBuilder::with_mcp_server(...) attaches one while resuming.
With unstable_session_fork, v2::ForkSessionBuilder::with_mcp_server(...)
attaches one while forking. Successful v2 attachments remain active for the
connection lifetime, and all three builders expose on_proxy_session_start to
forward proxied setup without coupling later session events to that response.
Proxy orchestration
agent-client-protocol-conductor– Binary and library that manages chains of proxy components.agent-client-protocol-polyfill– Compatibility proxies, including adapting native MCP-over-ACP declarations to HTTP for agents that cannot consume them directly.agent-client-protocol-trace-viewer– Interactive sequence-diagram viewer for conductor trace files.
Patterns, examples, and testing
agent-client-protocol-cookbook– Practical patterns for clients, agents, and proxies, rendered as rustdoc.agent-client-protocol-test– Shared test utilities and fixtures.yopo– "You Only Prompt Once", an example client.
Documentation
- API reference for individual crates is on docs.rs/agent-client-protocol.
- Design and architecture documentation lives in the mdbook at agentclientprotocol.github.io/rust-sdk. Source is in
md/. - Draft protocol v2 setup, version-typed connections, and high-level session usage are covered in Protocol V2. To run a complete v2 agent/client pair first, use the Runnable V2 Quickstart.
Every connection names its protocol version: Client.v1(), Agent.v1(), and
Proxy.v1() start stable-v1 connections, and their .v2() counterparts select
the draft-v2 API. The matching types live in agent_client_protocol::v1 and
agent_client_protocol::v2, which export the same names (ConnectionTo,
Builder, Responder, SessionBuilder, ...). With unstable_protocol_v2,
use Proxy.protocol_router() to expose separate strict v1 and v2 proxy
implementations as one component. Custom raw routing infrastructure can use
Builder::new(role), which applies no protocol-version guard.
Integrations
- Protocol schema and documentation
- Agents
- Clients
- Official Libraries
- Kotlin:
acp-kotlin– supports JVM, other targets are in progress - Rust:
agent-client-protocol- See the stable-v1 agent and client, or the draft-v2 agent and client examples - TypeScript:
@agentclientprotocol/sdk- See examples/
- Kotlin:
- Community Libraries
Pull Requests
Pull requests should intend to close an existing issue.
Issues
- Bug Reports: If you notice a bug in the protocol, please file an issue and we will be in touch.
- Protocol Suggestions: If you'd like to propose additions or changes to the protocol, please start a discussion first. We want to make sure proposed suggestions align well with the project. If accepted, we can have a conversation around the implementation of these changes. Once that is complete, we will create an issue for pull requests to target.
License
By contributing, you agree that your contributions will be licensed under the Apache 2.0 License.
Compatibility
- Runs on
- GPU support unknown
What shows it
- no dependency or feature matches a backend row
- Native code
- None found
- No native code found
- Python bindings
- No Python binding crate found
- License
- Apache-2.0
Compare with similar projects
Order: strongest tier first, then most downloads, then name, with unmeasured values last. A library counts downloads over 30 days. An app counts binary downloads per release. An app with none counts its crate downloads over 30 days. ML Rust runs this catalogue, so its closest project always gets a row.
| Project | Downloads | Dependents | Stars | Latest release | Runs on (GPU) | Native code | License |
|---|---|---|---|---|---|---|---|
|
Core protocol types and traits for the Agent Client Protocol |
941,949 downloads over 30 days | 145 | 245 | 5.0.0 | GPU support unknown | No native code found | Apache-2.0 |
|
rust-mcp-schema Featured
Type-safe implementation of the Model Context Protocol in Rust, designed to reduce errors and accelerate development with powerful utilities. |
107,187 downloads over 30 days | 19 | 79 | 2.0.0 | GPU support unknown | No native code found | MIT |
|
rust-mcp-sdk Featured
An asynchronous SDK and framework for building MCP-Servers and MCP-Clients, leveraging the rust-mcp-schema for type safe MCP Schema Objects. |
29,764 downloads over 30 days | 51 | 199 | 2.0.0 | GPU support unknown | No native code found | MIT |
|
symposium-acp Listed
Core protocol types and traits for SACP (Symposium's extensions to ACP) |
25,834 downloads over 30 days | 21 | 36 | 11.0.0 | GPU support unknown | No native code found | Apache-2.0 OR MIT |
|
The autonomous, self-improving AI agent. Single Rust binary. Every channel. Recommended: the 40MB prebuilt binary for macOS, Linux and Windows: https://github.com/opencrabs/opencrabs/releases |
125 binary downloads per release | Not applicable | 1,027 | 0.5.15 | GPU support unknown | Binds native code: libsqlite3-sys, llama-cpp-sys-2, opusic-sys (feature local-tts), tree-sitter (feature code-graph), alsa-sys (feature local-stt) and 1 more | MIT |
|
An open protocol that gives AI agents a secure, sandboxed place to run code and use tools — with lean context usage. AXP works alongside MCP |
Not measured | Not applicable | 3 | Not measured | Not measured | Not measured | Apache-2.0 |
|
pond New
Lossless storage and search for sessions from any AI agent client |
79 downloads over 30 days | 0 | 90 | 0.20.3 | CUDA | Binds native code: libsqlite3-sys, zstd-sys | Apache-2.0 |
Why FeaturedIt passes every Featured gate.
What it meets
- It has 91 active dependents and 91 new dependents in 365 days. Featured needs 11 active dependents or 9 new dependents in 365 days.
- Active dependents are at 100% of their peak. Featured needs at least 50%.
- Docs are present. The release commit or a manifest ties the crate to the repository.
- No vulnerability advisory stays unpatched past the grace window. At least one version is neither a prerelease nor 0.0.x.
- The last activity is on 2 Nov 2026, 7 days ago. The rules expect an update within 800 days. Dormancy rule
Exact rules: Featured library. The check on applied thresholds version 9.
Every rule outcome, as the check records it
expected-interval: version 5.0.0 base 200, doubled for 941949 downloads per month, doubled for 91 active users: E = 800 daysdormancy: last activity 2026-11-02, 7 days ago, E = 800: activefeatured: featured: active_users 91, new_adopters 91, former_glory 1
Crates6 crates
Measurements and sources
Each signal row shows the raw value, its source and the fetch date. The Sources list gathers every distinct source on this page. Movement needs more history.
Sources6 sources
- Description: the crates.io description
- crates.io database dump, fetched
- RustSec advisory database, fetched
- GitHub repository, fetched
- crates.io package, fetched
- GitHub contributors, fetched
Adoption91 active dependents, 91 new dependents in 365 days1 not measured
| Signal | Value | Source | Fetched | Counts |
|---|---|---|---|---|
| Active dependents | 91 | crates.io database dump | Yes | |
| New dependents (365 days) | 91 | crates.io database dump | Yes | |
| Peak active dependents | 89.5 | crates.io database dump | Yes | |
| Active dependents as a share of the peak | 1 | crates.io database dump | Yes | |
| Binary downloads per release | Not measured | Yes |
MaintenanceLatest human commit: 7 days ago3 not measured
| Signal | Value | Source | Fetched | Counts |
|---|---|---|---|---|
| Latest human commit | 2026-11-02 | GitHub repository | Yes | |
| Latest release | 2026-11-02 | crates.io database dump | Yes | |
| First release | 2025-07-24 | crates.io database dump | Yes | |
| Latest version | 5.0.0 | crates.io database dump | Yes | |
| Days the oldest outside issue waits for a reply | 100 | GitHub repository | Yes | |
| Maintainer replies over 365 days | 11 | GitHub repository | Yes | |
| Repository archived | false | GitHub repository | Yes | |
| Repository gone | false | GitHub repository | Yes | |
| Release commit or manifest in the repo | true | crates.io package | Yes | |
| Published docs | true | crates.io database dump | Yes | |
| Latest release fails cargo check | Not measured | Yes | ||
| Build check date | Not measured | Yes | ||
| Build check toolchain | Not measured | Yes |
SecurityUnpatched vulnerabilities: none
| Signal | Value | Source | Fetched | Counts |
|---|---|---|---|---|
| Unpatched vulnerabilities past the grace window | none | RustSec advisory database | Yes | |
| RustSec unmaintained advisory | none | RustSec advisory database | Yes | |
| Deprecation notice | none | crates.io database dump | Yes | |
| Deprecated requirement | none | crates.io database dump | Yes |
Distribution87 releases, 941,949 downloads over 30 days5 not measured
| Signal | Value | Source | Fetched | Counts |
|---|---|---|---|---|
| Releases | 87 | crates.io database dump | Yes | |
| Downloads over 30 days | 941949 | crates.io database dump | Yes | |
| Binary downloads over the last 3 releases | Not measured | Yes | ||
| Homebrew installs on request over 365 days | Not measured | Yes | ||
| Repology repository families | Not measured | Yes | ||
| Docker pull growth over 90 days | Not measured | Yes | ||
| Docker pulls at the growth baseline | Not measured | Yes | ||
| Every version a prerelease | false | crates.io database dump | Yes | |
| Every version 0.0.x | false | crates.io database dump | Yes | |
| Every version yanked | false | crates.io database dump | Yes | |
| Crate deleted from crates.io | false | crates.io database dump | Yes |
Repository245 stars, 54 forks, 35 contributors, 887 commits. Stars alone never qualify a project.
| Signal | Value | Source | Fetched | Counts |
|---|---|---|---|---|
| GitHub stars | 245 | GitHub repository | Yes — one part of the repository route | |
| GitHub forks | 54 | GitHub repository | Yes — one part of the repository route | |
| Contributors with a GitHub account | 35 | GitHub contributors | Yes — one part of the repository route | |
| Commits on the default branch | 887 | GitHub repository | No | |
| Repository's main crate left out of the entry | none | crates.io database dump | Yes |
Facts that never count
| Signal | Value | Source | Fetched | Counts |
|---|---|---|---|---|
| License | Apache-2.0 | crates.io database dump | No | |
| Runs on, from listed crates and their direct dependencies | GPU support unknown | crates.io database dump | No | |
| What shows each backend | no dependency or feature matches a backend row | crates.io database dump | No | |
| Native code, from listed crates and their dependencies | No native code found | crates.io database dump | No | |
| Python bindings, from direct dependencies of listed crates | No Python binding crate found | crates.io database dump | No | |
| Crates that depend on a listed crate directly | 145 | crates.io database dump | No |
Corrections and review history
No correction applies to this entry.
Judgments
A judgment enters only through an approved issue and a merged pull request.
No judgment applies to this entry.