struct
ACP::Protocol::McpServerSse
- ACP::Protocol::McpServerSse
- Struct
- Value
- Object
Overview
Configuration for connecting to an MCP server via SSE transport. Only available when Agent capabilities indicate mcpCapabilities.sse is true. Note: SSE transport has been deprecated by the MCP spec. See: https://agentclientprotocol.com/protocol/session-setup#sse-transport
Included Modules
- JSON::Serializable
Defined in:
acp/protocol/capabilities.crConstructors
- .new(name : String, url : String, headers : Array(HttpHeader) = [] of HttpHeader)
- .new(pull : JSON::PullParser)
Instance Method Summary
-
#headers : Array(HttpHeader)
HTTP headers to set when establishing the SSE connection.
-
#headers=(headers : Array(HttpHeader))
HTTP headers to set when establishing the SSE connection.
-
#name : String
Human-readable name identifying this MCP server.
-
#name=(name : String)
Human-readable name identifying this MCP server.
-
#transport_type : String
Must be "sse".
-
#transport_type=(transport_type : String)
Must be "sse".
-
#url : String
URL of the SSE endpoint.
-
#url=(url : String)
URL of the SSE endpoint.
Constructor Detail
Instance Method Detail
def headers=(headers : Array(HttpHeader))
#
HTTP headers to set when establishing the SSE connection.