struct ACP::Protocol::McpServerStdio

Overview

Configuration for connecting to an MCP server via stdio transport. All Agents MUST support this transport. See: https://agentclientprotocol.com/protocol/session-setup#stdio-transport

Included Modules

Defined in:

acp/protocol/capabilities.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(name : String, command : String, args : Array(String) = [] of String, env : Array(EnvVariable) = [] of EnvVariable) #

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

[View source]

Instance Method Detail

def args : Array(String) #

Command-line arguments to pass to the MCP server.


[View source]
def args=(args : Array(String)) #

Command-line arguments to pass to the MCP server.


[View source]
def command : String #

Path to the MCP server executable.


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

Path to the MCP server executable.


[View source]
def env : Array(EnvVariable) #

Environment variables to set when launching the MCP server.


[View source]
def env=(env : Array(EnvVariable)) #

Environment variables to set when launching 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]