Class: ClaudeAgentSDK::McpClaudeAIProxyServerConfig

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

Constructor Details

#initialize(type: 'claudeai-proxy', url:, id:) ⇒ McpClaudeAIProxyServerConfig

Returns a new instance of McpClaudeAIProxyServerConfig.



1443
1444
1445
1446
1447
# File 'lib/claude_agent_sdk/types.rb', line 1443

def initialize(type: 'claudeai-proxy', url:, id:)
  @type = type
  @url = url
  @id = id
end

Instance Attribute Details

#idObject

Returns the value of attribute id.



1441
1442
1443
# File 'lib/claude_agent_sdk/types.rb', line 1441

def id
  @id
end

#typeObject

Returns the value of attribute type.



1441
1442
1443
# File 'lib/claude_agent_sdk/types.rb', line 1441

def type
  @type
end

#urlObject

Returns the value of attribute url.



1441
1442
1443
# File 'lib/claude_agent_sdk/types.rb', line 1441

def url
  @url
end

Instance Method Details

#to_hObject



1449
1450
1451
# File 'lib/claude_agent_sdk/types.rb', line 1449

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