ChangeGamer

← All resources

Agent Client Protocol (ACP): How Editors Talk to Coding Agents

Guide · updated 2026-10-11 · Markdown variant

Reference for the Agent Client Protocol (ACP), the open protocol that connects code editors and IDEs to coding agents over JSON-RPC: session lifecycle, MCP server hand-off, transports, tool calls, permissions, and how ACP differs from MCP and A2A.


The Agent Client Protocol (ACP) is an open protocol that standardizes communication between code editors or IDEs (the client) and coding agents (programs that use generative AI to modify code). This entry is about that protocol only: it is not the Agentic Commerce Protocol (Stripe and OpenAI; see /resources/agentic-payment-protocols). The acronym is also used by other protocols; this one is defined by the sources listed below.

Key facts

What is the Agent Client Protocol?

Without a shared protocol each editor needs a bespoke integration per agent. ACP defines one JSON-RPC message vocabulary so any ACP-capable editor can drive any ACP-capable agent. The agent edits code and runs commands; the editor owns the UI, renders streamed output and diffs, and decides which permissions to grant.

How does an ACP session start?

Lifecycle per the protocol overview: the client calls initialize; calls authenticate if the agent requires it; then session/new, or an existing session instead: session/load (needs the loadSession capability; the agent replays the conversation history through session/update) or session/resume (needs sessionCapabilities.resume; the agent MUST NOT replay history and returns once the session is ready to continue). Then session/prompt. While working, the agent streams session/update notifications, and the prompt turn ends with a stop reason. A client can end a session with session/close (needs sessionCapabilities.close): the agent MUST cancel ongoing work as if session/cancel had been called, then free the session's resources. The protocol overview page lists session/load and session/set_mode as optional methods; session/resume and session/close appear only on the session-setup page.

Method list for protocol v1 as of 2026-10-11 (a v2 draft exists; the spec is evolving; check the current docs):

Direction Methods
Client to agent initialize, authenticate, session/new, session/prompt, session/load, session/resume, session/close, logout, session/set_mode; notification session/cancel
Agent to client session/request_permission, fs/read_text_file, fs/write_text_file, terminal/create, terminal/output, terminal/release, terminal/wait_for_exit, terminal/kill, elicitation/create; notifications elicitation/complete, session/update

How do ACP agents get MCP servers?

The client passes an mcpServers array in session/new, and the session-setup page says "Agents SHOULD connect to all MCP servers specified by the Client." Stdio transport for MCP servers MUST be supported; HTTP and SSE are optional and advertised in agentCapabilities.mcpCapabilities. The docs note SSE is deprecated by the MCP spec and new agents SHOULD support HTTP.

What transports does ACP use?

How do tool calls and permissions work?

How does ACP relate to MCP, A2A and A2UI? (general context, not from the ACP docs, except the MCP row)

Protocol Connects Relation to ACP
ACP editor/client <-> coding agent this entry
MCP agent <-> tools and data ACP reuses MCP JSON types and forwards MCP servers to the agent
A2A agent <-> agent different layer; see /resources/a2a-protocol
A2UI agent <-> user-facing app UI different layer; see /resources/a2ui-protocol

Inference, not spec text: because the editor decides permission answers and which MCP servers are passed in, it is the natural enforcement point for guardrails on a coding agent (see /resources/agent-guardrails).

What was not verified

The launch date, adoption statistics beyond the 2026-10-11 agent count, and whether any particular agent or editor implements every method above were not verified. The Streamable HTTP transport is described as a draft.

See also: /resources/mcp-vs-a2a, /resources/a2a-protocol, /resources/a2ui-protocol, /resources/generative-ui-for-agents, /resources/agent-guardrails, /resources/agentic-payment-protocols

Verified sources

Fetched directly 2026-10-11:

#acp #agent-client-protocol #protocols #coding-agents #editors #json-rpc #mcp #interoperability

Category: Guide

Free to read, always. Want this whole reference corpus inside your own agents? €5 unlocks every premium reference for one agent; €25 licenses the full corpus as RAG / fine-tuning data with an AI-use grant (procurement one-pager: /corpus-license); €150 adds redistribution rights.

Machine formats: Markdown · JSON · offers at /api/pricing.json · payment at /api/payment.json. Preview the exact corpus format free as NDJSON.