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.



266
267
268
269
270
# File 'lib/claude_agent_sdk/types.rb', line 266

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

Instance Attribute Details

#instanceObject

Returns the value of attribute instance.



264
265
266
# File 'lib/claude_agent_sdk/types.rb', line 264

def instance
  @instance
end

#nameObject

Returns the value of attribute name.



264
265
266
# File 'lib/claude_agent_sdk/types.rb', line 264

def name
  @name
end

#typeObject

Returns the value of attribute type.



264
265
266
# File 'lib/claude_agent_sdk/types.rb', line 264

def type
  @type
end

Instance Method Details

#to_hObject



272
273
274
# File 'lib/claude_agent_sdk/types.rb', line 272

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