struct
ACP::Protocol::SessionNewParams
- ACP::Protocol::SessionNewParams
- Struct
- Value
- Object
Overview
Params for the session/new method (Client → Agent).
Included Modules
- JSON::Serializable
Defined in:
acp/protocol/types.crConstructors
-
.new(cwd : String, mcp_servers : Array(McpServer), meta : Hash(String, JSON::Any) | Nil = nil)
Convenience constructor that accepts typed McpServer values.
- .new(pull : JSON::PullParser)
- .new(cwd : String, mcp_servers : Array(JSON::Any) = [] of JSON::Any, meta : Hash(String, JSON::Any) | Nil = nil)
Instance Method Summary
-
#cwd : String
The current working directory (absolute path).
-
#cwd=(cwd : String)
The current working directory (absolute path).
-
#mcp_servers : Array(JSON::Any)
List of MCP servers the agent should connect to.
-
#mcp_servers=(mcp_servers : Array(JSON::Any))
List of MCP servers the agent should connect to.
-
#meta : Hash(String, JSON::Any) | Nil
Extension metadata.
-
#meta=(meta : Hash(String, JSON::Any) | Nil)
Extension metadata.
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.
def self.new(cwd : String, mcp_servers : Array(JSON::Any) = [] of JSON::Any, meta : Hash(String, JSON::Any) | Nil = nil)
#
Instance Method Detail
def mcp_servers : Array(JSON::Any)
#
List of MCP servers the agent should connect to. See: https://agentclientprotocol.com/protocol/session-setup#mcp-servers
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