Class: ClaudeAgentSDK::McpSdkServerConfigStatus

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

Overview

Output-only serializable version of McpSdkServerConfig (without live instance) Returned in MCP status responses

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(type: 'sdk', name:) ⇒ McpSdkServerConfigStatus

Returns a new instance of McpSdkServerConfigStatus.



1428
1429
1430
1431
# File 'lib/claude_agent_sdk/types.rb', line 1428

def initialize(type: 'sdk', name:)
  @type = type
  @name = name
end

Instance Attribute Details

#nameObject

Returns the value of attribute name.



1426
1427
1428
# File 'lib/claude_agent_sdk/types.rb', line 1426

def name
  @name
end

#typeObject

Returns the value of attribute type.



1426
1427
1428
# File 'lib/claude_agent_sdk/types.rb', line 1426

def type
  @type
end

Instance Method Details

#to_hObject



1433
1434
1435
# File 'lib/claude_agent_sdk/types.rb', line 1433

def to_h
  { type: @type, name: @name }
end