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.



1494
1495
1496
1497
1498
# File 'lib/claude_agent_sdk/types.rb', line 1494

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

Instance Attribute Details

#idObject

Returns the value of attribute id.



1492
1493
1494
# File 'lib/claude_agent_sdk/types.rb', line 1492

def id
  @id
end

#typeObject

Returns the value of attribute type.



1492
1493
1494
# File 'lib/claude_agent_sdk/types.rb', line 1492

def type
  @type
end

#urlObject

Returns the value of attribute url.



1492
1493
1494
# File 'lib/claude_agent_sdk/types.rb', line 1492

def url
  @url
end

Instance Method Details

#to_hObject



1500
1501
1502
# File 'lib/claude_agent_sdk/types.rb', line 1500

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