Protocol Stack
ISH supports agent-to-tool, agent-to-agent, editor, and frontend protocols through shared Rust operations and language-native adapters across its six SDKs. Callback integration and transport APIs remain specific to each host language.
- Python
- TypeScript
- Rust
- Go
- C#
- Java
from ish.integrations.protocols import (
A2ARouter,
ACPServer,
AGUIEvent,
AGUIStream,
MCPClient,
MCPServer,
RemoteMCPClient,
load_mcp_tools,
)
import {
A2ARouter,
ACPServer,
AGUIEvent,
AGUIStream,
McpProtocol,
McpServer,
McpTransportClient,
} from "ish-harness";
use ish_harness::caps::mcp::transports::NativeMcpClient;
use ish_harness::data_plane::protocols::{A2AMessageLog, AcpSessionManager};
use ish_harness::ish_invoke_json; // supports "agui.event.validate" / "agui.event.sse"
import ish "github.com/ish-harness/ish-harness/sdks/go"
// MCP: ish.StartMcpStdioTransport / ish.StartMcpHTTPTransport / ish.NewMcpServer / ish.NewMcpProtocol
// A2A: ish.NewA2ARouter
// ACP: ish.NewAcpServer
// AG-UI: ish.ValidateAGUIEvent / ish.FormatAGUISSE
using Ish.Harness;
// MCP: McpTransportClient, McpServer, McpProtocol
// A2A: A2ARouter
// ACP: ACPServer
// AG-UI: AGUIStream, AGUIEvent
import io.github.ishharness.AGUIEvent;
import io.github.ishharness.AGUIStream;
import io.github.ishharness.AgentProtocols; // AgentProtocols.A2ARouter, AgentProtocols.ACPServer
import io.github.ishharness.McpProtocol;
import io.github.ishharness.McpServer;
import io.github.ishharness.McpTransportClient;
Protocol Comparison Matrix
| Protocol | Primary Transport | Direction | Typical Use Case |
|---|---|---|---|
| MCP | stdio, HTTP / SSE | Agent to/from Tool Server | Discovering tools, reading resources, retrieving prompts |
| A2A | In-process router / message log | Agent to/from Peer Agent | Correlated message passing and delegation |
| ACP | stdio JSON-RPC | IDE to/from agent host | Driving agent sessions from editors |
| AG-UI | Server-Sent Events (SSE) | Agent to Frontend UI | Streaming structured status, token, and tool events |
Selecting a Protocol
- Use MCP to expose tools, resources, and prompts cleanly to agents—or consume third-party MCP servers.
- Use A2A for structured, size-bounded message routing with correlation IDs between local or coordinated peer agents.
- Use ACP when integrating an agent loop with an IDE or editor extension.
- Use AG-UI when pushing live execution steps, thoughts, tokens, or tool calls to a reactive web interface.
Protocol entry points by language
All six SDKs expose entry points for MCP, A2A, ACP, and AG-UI. The adapters use shared Rust validation and protocol state where those operations are exposed; their callback integration and native transports are language-specific and do not imply identical APIs or behavior across every path: