struct ACP::Protocol::McpServerHttp

Overview

Configuration for connecting to an MCP server via HTTP transport. Only available when Agent capabilities indicate mcpCapabilities.http is true. See: https://agentclientprotocol.com/protocol/session-setup#http-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 making requests to the MCP server.


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

HTTP headers to set when making requests to the MCP server.


[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 "http".


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

Must be "http".


[View source]
def url : String #

URL to the MCP server.


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

URL to the MCP server.


[View source]