struct ACP::Protocol::McpServerSse

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

Defined in:

acp/protocol/capabilities.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(name : String, url : String, headers : Array(HttpHeader) = [] of HttpHeader) #

[View source]
def self.new(pull : JSON::PullParser) #

[View source]

Instance Method Detail

def headers : Array(HttpHeader) #

HTTP headers to set when establishing the SSE connection.


[View source]
def headers=(headers : Array(HttpHeader)) #

HTTP headers to set when establishing the SSE connection.


[View source]
def name : String #

Human-readable name identifying this MCP server.


[View source]
def name=(name : String) #

Human-readable name identifying this MCP server.


[View source]
def transport_type : String #

Must be "sse".


[View source]
def transport_type=(transport_type : String) #

Must be "sse".


[View source]
def url : String #

URL of the SSE endpoint.


[View source]
def url=(url : String) #

URL of the SSE endpoint.


[View source]