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.



1617
1618
1619
1620
1621
# File 'lib/claude_agent_sdk/types.rb', line 1617

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

Instance Attribute Details

#instanceObject

Returns the value of attribute instance.



1615
1616
1617
# File 'lib/claude_agent_sdk/types.rb', line 1615

def instance
  @instance
end

#nameObject

Returns the value of attribute name.



1615
1616
1617
# File 'lib/claude_agent_sdk/types.rb', line 1615

def name
  @name
end

#typeObject

Returns the value of attribute type.



1615
1616
1617
# File 'lib/claude_agent_sdk/types.rb', line 1615

def type
  @type
end

Instance Method Details

#to_hObject



1623
1624
1625
# File 'lib/claude_agent_sdk/types.rb', line 1623

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