Class: Copilot::MCPRemoteServerConfig
- Inherits:
-
Struct
- Object
- Struct
- Copilot::MCPRemoteServerConfig
- Defined in:
- lib/copilot/types.rb
Overview
MCP remote server configuration (HTTP or SSE).
Instance Attribute Summary collapse
-
#headers ⇒ Object
Returns the value of attribute headers.
-
#timeout ⇒ Object
Returns the value of attribute timeout.
-
#tools ⇒ Object
Returns the value of attribute tools.
-
#type ⇒ Object
Returns the value of attribute type.
-
#url ⇒ Object
Returns the value of attribute url.
Instance Method Summary collapse
Instance Attribute Details
#headers ⇒ Object
Returns the value of attribute headers
221 222 223 |
# File 'lib/copilot/types.rb', line 221 def headers @headers end |
#timeout ⇒ Object
Returns the value of attribute timeout
221 222 223 |
# File 'lib/copilot/types.rb', line 221 def timeout @timeout end |
#tools ⇒ Object
Returns the value of attribute tools
221 222 223 |
# File 'lib/copilot/types.rb', line 221 def tools @tools end |
#type ⇒ Object
Returns the value of attribute type
221 222 223 |
# File 'lib/copilot/types.rb', line 221 def type @type end |
#url ⇒ Object
Returns the value of attribute url
221 222 223 |
# File 'lib/copilot/types.rb', line 221 def url @url end |
Instance Method Details
#to_h ⇒ Object
225 226 227 228 229 230 |
# File 'lib/copilot/types.rb', line 225 def to_h h = { tools: tools || [], type: type, url: url } h[:timeout] = timeout if timeout h[:headers] = headers if headers h end |