← Back to Leaderboard
Ragentclientprotocol

agentclientprotocol/rust-sdk

Rust ACP SDK for editor–agent sessions, with versioned APIs and composable proxies

Engineering Health (Methodology)
A+ · 92/100
Maintenance Activity
● Updated 2d ago
Latest Release
v5.6.1
Commercial License Check
Apache-2.0 · Commercial Friendly

Automated SPDX check for reference only — not legal advice. Disclaimer

Maintenance35/35
Fork Adoption17/25
Release Cadence20/20
License Clarity20/20
MCPCLIAPI
Total Stars
★ 254
24h Growth
+0
7d Growth
+3
Forks
57

GitHub Star History

Full-history star trajectory from GitHub official history. Switch ranges or hover any point for exact counts.

agentclientprotocol/rust-sdk Star History (2025-10-12 - 2026-12-04) ALL-TIME STAR HISTORY (2025-10 – 2026-12) +253 in 418d · avg +1/day 268 134 0 2025-10-12: ★ 12025-11-08: ★ 82025-12-06: ★ 142026-01-03: ★ 262026-01-31: ★ 432026-02-28: ★ 692026-03-28: ★ 892026-04-25: ★ 1102026-05-23: ★ 1362026-06-20: ★ 1552026-07-18: ★ 1682026-08-15: ★ 1842026-09-12: ★ 2012026-10-10: ★ 2182026-11-05: ★ 2392026-12-04: ★ 254 ★ 254 2025-10 2026-05 2026-12

Evidence-Backed Technical Brief

AI Deep Review

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.

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.
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.

Reviewed on 2026-12-03 · Grounded in GitHub README, root file tree & releasesMethodology

Comparison vs. Top Coding, Skills & MCP Alternatives

Full comparison →
RepositoryStars7d TrendStackLicenseCore Positioning
rust-sdk ★254+3RustApache-2.0Rust ACP SDK for editor–agent sessions, with versioned APIs and composable proxi
headroom81.5k+455PythonApache-2.0Local context compression for LLMs via a Python library, proxy, and MCP server
cc-switch159.1k+1.7kRustMITTauri desktop manager for AI coding providers, local routing, and MCP config
agent-browser55.4k+1kRustApache-2.0Rust CLI and stdio MCP for agents that read and act on live web pages

AI Context Briefing (for Claude / Cursor / Windsurf)

Standardized architecture summary & quickstart commands ready to paste into coding agents.

Raw .md ↗
curl -sL https://repoforai.com/repo/agentclientprotocol/rust-sdk.md

Embed Star History Chart & Badges in README.md

Full-history Star History SVGs and velocity cards on GitHub Camo: drop-in replacement for OSSInsight and Star History widgets.

agentclientprotocol/rust-sdk Star History on RepoForAI

Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).

Frequently Asked Questions about rust-sdk

How should I connect an editor and an agent while preserving version boundaries?

Start with Client.v1() or Agent.v1() and the corresponding stable example. If you need an intermediary, use Proxy.v1(). To expose both versions from one proxy component, enable unstable_protocol_v2 and use Proxy.protocol_router() with separate strict implementations. The router does not turn a v1 implementation into a v2 implementation.

Does the SDK need a GPU, and how should I size a deployment?

Size the SDK process separately from the coding agent and any model it runs. The SDK handles protocol connections, sessions, transports, and proxying rather than model inference. Measure CPU and memory with representative concurrent sessions, message volumes, and proxy-chain lengths. Any GPU or VRAM requirement for local inference depends on the model and runtime you choose.

Can I ship the SDK commercially or run it on my own infrastructure?

The SDK is Apache-2.0, which permits commercial use and self-hosting. When redistributing, comply with the license's requirements for license text, notices, and marking modified files as applicable. Check the terms for your chosen agent, MCP servers, dependencies, and any model service separately.

When is ACP preferable to using `rmcp` directly or choosing another ACP SDK?

Use a direct rmcp integration if your application only needs MCP servers or tools. Add ACP when an editor also needs a standard interface for coding-agent sessions or when you want proxies between the editor and agent. If ACP is already required but your application is JVM- or TypeScript-based, consider the official SDK for that stack before introducing a separate Rust component.

Upstream README & Documentation

This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.

Maintaining agentclientprotocol/rust-sdk? Pin to Homepage + competitor /alternatives pages with a custom Cloud/Demo CTA.Feature agentclientprotocol/rust-sdk on Homepage & Alternatives ($19)
WEEKLY BREAKOUT DIGEST

Top 10 Breakout Open-Source AI Repos, Every Thursday

Signal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.

Zero spam · 1-click unsubscribe · Privacy Policy

Saved in your browser · Export Markdown RFC tables or jump into /vs compare