← Open Source
agentclientprotocol

rust-sdk (Open on GitHub)

Rust SDK for ACP clients and agents.

AI EngineeringBuild agent workflow (SDK)ProtocolsRust
Momentum
+2stars in 24 hours+0.8%
256
Stars
57
Forks
+5
This week
36
Contributors
Created 2025-10-13 · Updated 2026-12-05 · #3988 today
Top developers
README

Agent Client Protocol

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

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

Patterns, examples, and testing

Documentation

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

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.

Nearby in the ranking
Similar items

AI Rank for iPhone

Follow AI model rankings

Download on the App Store