struct
ACP::Protocol::McpServerHttp
- ACP::Protocol::McpServerHttp
- Struct
- Value
- Object
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
- 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 making requests to the MCP server.
-
#headers=(headers : Array(HttpHeader))
HTTP headers to set when making requests to the MCP server.
-
#name : String
Human-readable name identifying this MCP server.
-
#name=(name : String)
Human-readable name identifying this MCP server.
-
#transport_type : String
Must be "http".
-
#transport_type=(transport_type : String)
Must be "http".
-
#url : String
URL to the MCP server.
-
#url=(url : String)
URL to the MCP server.
Constructor Detail
Instance Method Detail
def headers=(headers : Array(HttpHeader))
#
HTTP headers to set when making requests to the MCP server.