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.



1449
1450
1451
1452
# File 'lib/claude_agent_sdk/types.rb', line 1449

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

Instance Attribute Details

#nameObject

Returns the value of attribute name.



1447
1448
1449
# File 'lib/claude_agent_sdk/types.rb', line 1447

def name
  @name
end

#typeObject

Returns the value of attribute type.



1447
1448
1449
# File 'lib/claude_agent_sdk/types.rb', line 1447

def type
  @type
end

Instance Method Details

#to_hObject



1454
1455
1456
# File 'lib/claude_agent_sdk/types.rb', line 1454

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