Class: ClaudeAgentSDK::McpSdkServerConfig

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name:, instance:) ⇒ McpSdkServerConfig

Returns a new instance of McpSdkServerConfig.



640
641
642
643
644
# File 'lib/claude_agent_sdk/types.rb', line 640

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

Instance Attribute Details

#instanceObject

Returns the value of attribute instance.



638
639
640
# File 'lib/claude_agent_sdk/types.rb', line 638

def instance
  @instance
end

#nameObject

Returns the value of attribute name.



638
639
640
# File 'lib/claude_agent_sdk/types.rb', line 638

def name
  @name
end

#typeObject

Returns the value of attribute type.



638
639
640
# File 'lib/claude_agent_sdk/types.rb', line 638

def type
  @type
end

Instance Method Details

#to_hObject



646
647
648
# File 'lib/claude_agent_sdk/types.rb', line 646

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