Class: ClaudeAgentSDK::McpSdkServerConfigStatus

Inherits:
Type
  • 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

Methods inherited from Type

#[], #[]=, from_hash, wrap

Constructor Details

#initialize(attributes = {}) ⇒ McpSdkServerConfigStatus

Returns a new instance of McpSdkServerConfigStatus.



1275
1276
1277
1278
# File 'lib/claude_agent_sdk/types.rb', line 1275

def initialize(attributes = {})
  super
  @type = 'sdk'
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class ClaudeAgentSDK::Type

Instance Attribute Details

#nameObject

Returns the value of attribute name.



1272
1273
1274
# File 'lib/claude_agent_sdk/types.rb', line 1272

def name
  @name
end

#typeObject (readonly)

Returns the value of attribute type.



1273
1274
1275
# File 'lib/claude_agent_sdk/types.rb', line 1273

def type
  @type
end

Instance Method Details

#to_hObject



1280
1281
1282
# File 'lib/claude_agent_sdk/types.rb', line 1280

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