Class: ClaudeCode::McpSSEServerConfig

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(url:, headers: {}) ⇒ McpSSEServerConfig

Returns a new instance of McpSSEServerConfig.



108
109
110
111
112
# File 'lib/claude_code/types.rb', line 108

def initialize(url:, headers: {})
  @url = url
  @headers = headers
  @type = 'sse'
end

Instance Attribute Details

#headersObject (readonly)

Returns the value of attribute headers.



106
107
108
# File 'lib/claude_code/types.rb', line 106

def headers
  @headers
end

#typeObject (readonly)

Returns the value of attribute type.



106
107
108
# File 'lib/claude_code/types.rb', line 106

def type
  @type
end

#urlObject (readonly)

Returns the value of attribute url.



106
107
108
# File 'lib/claude_code/types.rb', line 106

def url
  @url
end

Instance Method Details

#to_hObject



114
115
116
117
118
119
120
# File 'lib/claude_code/types.rb', line 114

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