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.
1428 1429 1430 1431 |
# File 'lib/claude_agent_sdk/types.rb', line 1428 def initialize(name:, version: nil) @name = name @version = version end |
Instance Attribute Details
#name ⇒ Object
Returns the value of attribute name.
1426 1427 1428 |
# File 'lib/claude_agent_sdk/types.rb', line 1426 def name @name end |
#version ⇒ Object
Returns the value of attribute version.
1426 1427 1428 |
# File 'lib/claude_agent_sdk/types.rb', line 1426 def version @version end |