struct ACP::Protocol::SessionNewParams

Overview

Params for the session/new method (Client → Agent).

Included Modules

Defined in:

acp/protocol/types.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(cwd : String, mcp_servers : Array(McpServer), meta : Hash(String, JSON::Any) | Nil = nil) #

Convenience constructor that accepts typed McpServer values.


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

[View source]
def self.new(cwd : String, mcp_servers : Array(JSON::Any) = [] of JSON::Any, meta : Hash(String, JSON::Any) | Nil = nil) #

[View source]

Instance Method Detail

def cwd : String #

The current working directory (absolute path).


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

The current working directory (absolute path).


[View source]
def mcp_servers : Array(JSON::Any) #

List of MCP servers the agent should connect to. See: https://agentclientprotocol.com/protocol/session-setup#mcp-servers


[View source]
def mcp_servers=(mcp_servers : Array(JSON::Any)) #

List of MCP servers the agent should connect to. See: https://agentclientprotocol.com/protocol/session-setup#mcp-servers


[View source]
def meta : Hash(String, JSON::Any) | Nil #

Extension metadata.


[View source]
def meta=(meta : Hash(String, JSON::Any) | Nil) #

Extension metadata.


[View source]