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.
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
#name ⇒ Object
Returns the value of attribute name.
1375 1376 1377 |
# File 'lib/claude_agent_sdk/types.rb', line 1375 def name @name end |
#version ⇒ Object
Returns the value of attribute version.
1375 1376 1377 |
# File 'lib/claude_agent_sdk/types.rb', line 1375 def version @version end |