Skip to main content

Module schema

Module schema 

Source
Expand description

ACP protocol schema types - all message types, requests, responses, and supporting types ACP protocol schema types and message implementations.

This module contains all the types from the Agent-Client Protocol schema, including requests, responses, notifications, and supporting types. All types are re-exported flatly from this module.

Modules§

v1
Agent Client Protocol v1 schema types.
v2unstable_protocol_v2
Agent Client Protocol v2 draft schema types.

Structs§

InitializeProxyRequest
Initialize request for proxy components.
McpConnectRequest
Creates a new MCP connection. This is equivalent to “running the command”.
McpConnectResponse
Response to an MCP connect request
McpDisconnectNotification
Disconnects the MCP connection.
McpOverAcpMessage
An MCP request sent via ACP. This could be an MCP-server-to-MCP-client request (in which case it goes from the ACP client to the ACP agent, note the reversal of roles) or an MCP-client-to-MCP-server request (in which case it goes from the ACP agent to the ACP client).
ProtocolVersion
Protocol version identifier.
SuccessorMessage
A message being sent to the successor component.

Enums§

MaybeUndefined
Similar to Option, but it has three states, undefined, null and x.

Constants§

METHOD_INITIALIZE_PROXY
JSON-RPC method name for proxy initialization.
METHOD_MCP_CONNECT_REQUEST
JSON-RPC method name for MCP connect requests
METHOD_MCP_DISCONNECT_NOTIFICATION
JSON-RPC method name for MCP disconnect notifications
METHOD_MCP_MESSAGE
JSON-RPC method name for MCP requests over ACP
METHOD_SUCCESSOR_MESSAGE
JSON-RPC method name for successor forwarding.

Traits§

IntoMaybeUndefined
Utility trait for builder methods for optional values. This allows the caller to either pass in the value itself without wrapping it in Some, or to just pass in an Option if that is what they have, or set it back to undefined.
IntoOption
Utility trait for builder methods for optional values. This allows the caller to either pass in the value itself without wrapping it in Some, or to just pass in an Option if that is what they have.