alias ACP::Protocol::McpServer

Overview

Union type representing all MCP server transport configurations. Uses the "type" discriminator to determine transport kind; stdio servers omit the type field (they are the default).

For JSON deserialization, use McpServer.from_json which handles the discriminator logic. For simplicity in Crystal, the type is kept as a tagged union.

See: https://agentclientprotocol.com/protocol/session-setup#transport-types

Alias Definition

ACP::Protocol::McpServerHttp | ACP::Protocol::McpServerSse | ACP::Protocol::McpServerStdio

Defined in:

acp/protocol/capabilities.cr