Class: Elelem::MCP::HttpServer
- Inherits:
-
Object
- Object
- Elelem::MCP::HttpServer
- Includes:
- ServerInterface
- Defined in:
- lib/elelem/mcp/client.rb
Instance Method Summary collapse
- #close ⇒ Object
-
#initialize(url:, headers: {}, read_timeout: 3600, open_timeout: 10) ⇒ HttpServer
constructor
A new instance of HttpServer.
Methods included from ServerInterface
#call, #extract_content, #tools
Constructor Details
#initialize(url:, headers: {}, read_timeout: 3600, open_timeout: 10) ⇒ HttpServer
Returns a new instance of HttpServer.
157 158 159 160 161 162 163 164 165 166 |
# File 'lib/elelem/mcp/client.rb', line 157 def initialize(url:, headers: {}, read_timeout: 3600, open_timeout: 10) @uri = URI.parse(url) @headers = resolve_headers(headers) @read_timeout = read_timeout @open_timeout = open_timeout @id = 0 @session_id = nil @access_token = nil handshake! end |
Instance Method Details
#close ⇒ Object
168 |
# File 'lib/elelem/mcp/client.rb', line 168 def close; end |