Class: ClaudeAgentSDK::McpServerInfo

Inherits:
Object
  • Object
show all
Defined in:
lib/claude_agent_sdk/types.rb

Overview

MCP server info (name and version)

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name:, version: nil) ⇒ McpServerInfo

Returns a new instance of McpServerInfo.



1377
1378
1379
1380
# File 'lib/claude_agent_sdk/types.rb', line 1377

def initialize(name:, version: nil)
  @name = name
  @version = version
end

Instance Attribute Details

#nameObject

Returns the value of attribute name.



1375
1376
1377
# File 'lib/claude_agent_sdk/types.rb', line 1375

def name
  @name
end

#versionObject

Returns the value of attribute version.



1375
1376
1377
# File 'lib/claude_agent_sdk/types.rb', line 1375

def version
  @version
end