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.



1398
1399
1400
1401
# File 'lib/claude_agent_sdk/types.rb', line 1398

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

Instance Attribute Details

#nameObject

Returns the value of attribute name.



1396
1397
1398
# File 'lib/claude_agent_sdk/types.rb', line 1396

def name
  @name
end

#versionObject

Returns the value of attribute version.



1396
1397
1398
# File 'lib/claude_agent_sdk/types.rb', line 1396

def version
  @version
end