Class: Pikuri::Mcp::Registry::HttpEntry

Inherits:
Data
  • Object
show all
Defined in:
lib/pikuri/mcp/registry.rb

Overview

One remote-HTTP MCP server’s configuration: a unique id, the endpoint URL, and optional headers (typically auth) sent on every request.

No OAuth in v1 — if the endpoint needs a bearer token, pass it via headers: (=> “Bearer …”+). Wiring the gem’s oauth: provider would start a browser flow and persist tokens; deferred until someone needs it. See CLAUDE.md “Subprocess seam” — HTTP entries don’t fall under the carve-out because nothing is spawned.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(id:, url:, headers: {}) ⇒ HttpEntry

Returns a new instance of HttpEntry.



75
76
77
# File 'lib/pikuri/mcp/registry.rb', line 75

def initialize(id:, url:, headers: {})
  super(id: id, url: url, headers: headers.freeze)
end

Instance Attribute Details

#headersObject (readonly)

Returns the value of attribute headers

Returns:

  • (Object)

    the current value of headers



74
75
76
77
78
# File 'lib/pikuri/mcp/registry.rb', line 74

HttpEntry = Data.define(:id, :url, :headers) do
  def initialize(id:, url:, headers: {})
    super(id: id, url: url, headers: headers.freeze)
  end
end

#idObject (readonly)

Returns the value of attribute id

Returns:

  • (Object)

    the current value of id



74
75
76
77
78
# File 'lib/pikuri/mcp/registry.rb', line 74

HttpEntry = Data.define(:id, :url, :headers) do
  def initialize(id:, url:, headers: {})
    super(id: id, url: url, headers: headers.freeze)
  end
end

#urlObject (readonly)

Returns the value of attribute url

Returns:

  • (Object)

    the current value of url



74
75
76
77
78
# File 'lib/pikuri/mcp/registry.rb', line 74

HttpEntry = Data.define(:id, :url, :headers) do
  def initialize(id:, url:, headers: {})
    super(id: id, url: url, headers: headers.freeze)
  end
end