Class: ClaudeCode::McpHttpServerConfig

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: {}) ⇒ McpHttpServerConfig

Returns a new instance of McpHttpServerConfig.



126
127
128
129
130
# File 'lib/claude_code/types.rb', line 126

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

Instance Attribute Details

#headersObject (readonly)

Returns the value of attribute headers.



124
125
126
# File 'lib/claude_code/types.rb', line 124

def headers
  @headers
end

#typeObject (readonly)

Returns the value of attribute type.



124
125
126
# File 'lib/claude_code/types.rb', line 124

def type
  @type
end

#urlObject (readonly)

Returns the value of attribute url.



124
125
126
# File 'lib/claude_code/types.rb', line 124

def url
  @url
end

Instance Method Details

#to_hObject



132
133
134
135
136
137
138
# File 'lib/claude_code/types.rb', line 132

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