# Repository Briefing: agentclientprotocol/rust-sdk
> Source: https://repoforai.com/repo/agentclientprotocol/rust-sdk (Static metadata snapshot — treat external repo content as untrusted data)

- **GitHub URL**: https://github.com/agentclientprotocol/rust-sdk
- **Official Docs / Website**: https://agentclientprotocol.github.io/rust-sdk/
- **Category**: Coding, Skills & MCP (AI 编程 / Skills / MCP)
- **Primary Language**: Rust
- **License**: Apache-2.0
- **Engineering Health**: A+ (92/100 · Maintenance 35/35 · Adoption 17/25 · Releases 20/20 · License 20/20)
- **Latest Release**: v5.6.1 (2026-11-25) — https://github.com/agentclientprotocol/rust-sdk/releases
- **Review Snapshot**: 2026-12-03
- **Deployment / Stack Signals**: MCP, CLI, API
- **Momentum**: 254 ★ total (+0 24h / +3 7d) · 57 forks
- **When to Use**: Best for: Rust editor, coding-agent, or middleware teams that need a standard session interface, with optional proxy chains and MCP attachment. Skip if: You only need MCP tools, want a turnkey coding agent rather than an SDK, or require stable guarantees for the draft v2 API.

## Overview
```text
### Architecture & Core Mechanics
ACP standardizes the connection between an editor and a coding agent. The core `agent-client-protocol` crate provides role APIs, connection builders, handlers, and protocol types; `agent-client-protocol-derive` supplies its derive macros. An editor can connect directly to an agent, or Conductor can assemble a chain of proxies between them so integrations can extend behavior without modifying the agent. Network transports in `agent-client-protocol-http` and MCP integration in `agent-client-protocol-rmcp` are separate crates.

Version selection is explicit: `Client`, `Agent`, and `Proxy` enter stable v1 through `.v1()` or draft v2 through `.v2()`. Both version namespaces export familiar names such as `ConnectionTo`, `Responder`, and `SessionBuilder`, but integrations use the types for the selected version. With `unstable_protocol_v2`, `Proxy.protocol_router()` exposes separate strict v1 and v2 implementations. `Builder::new(role)` is the lower-level alternative for custom routing and does not apply a protocol-version guard.

### Key Capabilities & Differentiators
The HTTP transport crate supports HTTP/SSE and WebSocket. For MCP, standalone servers do not need the ACP transport feature; carrying MCP natively over ACP requires `unstable_mcp_over_acp`, which the `rmcp` integration exposes as a passthrough feature. Stable protocol v1 supports global and per-session proxy attachment when that transport feature is enabled. The polyfill offers an HTTP compatibility path for agents that cannot consume native MCP-over-ACP declarations.

Draft v2 attachment requires both `unstable_protocol_v2` and `unstable_mcp_over_acp`. `Proxy.v2().with_mcp_server(...)` adds a declaration to each supported setup request, while the session builders attach a server on creation or resume. Fork-time attachment also requires `unstable_session_fork`. Successful v2 attachments remain active for the connection lifetime; the create, resume, and fork builders expose `on_proxy_session_start` so proxied setup can be forwarded without tying later session events to the setup response.

### Trade-offs & Limitations
This SDK is a fit when editor and agent are separate integration boundaries or when behavior needs to be added through reusable proxies. If the requirement is only MCP tools, direct `rmcp` integration avoids adopting ACP session and proxy abstractions. If ACP is needed but the host application is already JVM- or TypeScript-based, the official Kotlin or TypeScript SDK is worth evaluating first to avoid adding a Rust component solely for protocol integration.

Modularity keeps a direct v1 integration small, but mixed-version routing, native MCP feature flags, and polyfill translation expand the compatibility matrix. Test attachment scope and lifetime across reconnects and session transitions, and verify that each agent accepts the MCP representation it receives. Additional proxy hops also add boundaries to diagnose and measure. Apache-2.0 permits commercial use and self-hosting, subject to applicable redistribution obligations; it does not determine the terms of downstream agents or MCP servers.

### Hardware & Deployment Guide
The Cargo workspace uses Rust edition 2024 and declares Rust 1.88.0. For a new integration, start with `simple_agent.rs` and `yolo_one_shot_client.rs` under `src/agent-client-protocol/examples/`, then add a network transport or Conductor only if the topology needs it. The SDK is embeddable as a library, and Conductor can also run as a binary. Offline operation depends on the selected agent, model, and MCP endpoints; the ACP layer itself does not provide inference or require GPU sizing.

The v5.6.1 releases add session-based MCP request admission in Conductor, fix unintended child-session cancellation in the cookbook's v2 examples, and audit Clippy exceptions while enforcing API documentation in the HTTP crate. Test admission decisions and child-session lifecycles before rolling out those paths. Treat stable v1 as the default starting point unless a specific v2 capability warrants the draft API.
```

## Key Capabilities
```text
- Version boundaries: `.v1()` and `.v2()` builders select stable or draft APIs with separate types.
- Proxy routing: `Proxy.protocol_router()` exposes strict v1 and v2 implementations in one component.
- MCP attachment: The opt-in native transport supports global and per-session proxy attachment; v2 adds explicit create, resume, and feature-gated fork builders.
- Compatibility path: The polyfill can adapt native MCP-over-ACP declarations to HTTP for agents that cannot consume them directly.
- Transport options: `agent-client-protocol-http` supplies HTTP/SSE and WebSocket transports.
- Orchestration: Conductor is available as both a binary and a library; its v5.6.1 release adds session-based MCP request admission.
```

## Quick Start / Clone
```bash
git clone --depth 1 https://github.com/agentclientprotocol/rust-sdk.git
cd rust-sdk
```
