Class: Pikuri::Mcp::Registry::HttpEntry
- Inherits:
-
Data
- Object
- Data
- Pikuri::Mcp::Registry::HttpEntry
- 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
-
#headers ⇒ Object
readonly
Returns the value of attribute headers.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#url ⇒ Object
readonly
Returns the value of attribute url.
Instance Method Summary collapse
-
#initialize(id:, url:, headers: {}) ⇒ HttpEntry
constructor
A new instance of HttpEntry.
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
#headers ⇒ Object (readonly)
Returns the value of attribute 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 |
#id ⇒ Object (readonly)
Returns the value of attribute 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 |
#url ⇒ Object (readonly)
Returns the value of attribute 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 |