Class: ClaudeAgentSDK::McpClaudeAIProxyServerConfig

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

Overview

Claude.ai proxy MCP server config Output-only type that appears in status responses for servers proxied through Claude.ai

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Type

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

Constructor Details

#initialize(attributes = {}) ⇒ McpClaudeAIProxyServerConfig

Returns a new instance of McpClaudeAIProxyServerConfig.



1204
1205
1206
1207
# File 'lib/claude_agent_sdk/types.rb', line 1204

def initialize(attributes = {})
  super
  @type = 'claudeai-proxy'
end

Dynamic Method Handling

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

Instance Attribute Details

#idObject

Returns the value of attribute id.



1201
1202
1203
# File 'lib/claude_agent_sdk/types.rb', line 1201

def id
  @id
end

#typeObject (readonly)

Returns the value of attribute type.



1202
1203
1204
# File 'lib/claude_agent_sdk/types.rb', line 1202

def type
  @type
end

#urlObject

Returns the value of attribute url.



1201
1202
1203
# File 'lib/claude_agent_sdk/types.rb', line 1201

def url
  @url
end

Instance Method Details

#to_hObject



1209
1210
1211
# File 'lib/claude_agent_sdk/types.rb', line 1209

def to_h
  { type: @type, url: @url, id: @id }
end