Class: ClaudeAgentSDK::McpServerInfo
- Inherits:
-
Object
- Object
- ClaudeAgentSDK::McpServerInfo
- Defined in:
- lib/claude_agent_sdk/types.rb
Overview
MCP server info (name and version)
Instance Attribute Summary collapse
-
#name ⇒ Object
Returns the value of attribute name.
-
#version ⇒ Object
Returns the value of attribute version.
Instance Method Summary collapse
-
#initialize(name:, version: nil) ⇒ McpServerInfo
constructor
A new instance of McpServerInfo.
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
#name ⇒ Object
Returns the value of attribute name.
1396 1397 1398 |
# File 'lib/claude_agent_sdk/types.rb', line 1396 def name @name end |
#version ⇒ Object
Returns the value of attribute version.
1396 1397 1398 |
# File 'lib/claude_agent_sdk/types.rb', line 1396 def version @version end |