Class: Copilot::MCPLocalServerConfig
- Inherits:
-
Struct
- Object
- Struct
- Copilot::MCPLocalServerConfig
- Defined in:
- lib/copilot/types.rb
Overview
MCP local/stdio server configuration.
Instance Attribute Summary collapse
-
#args ⇒ Object
Returns the value of attribute args.
-
#command ⇒ Object
Returns the value of attribute command.
-
#cwd ⇒ Object
Returns the value of attribute cwd.
-
#env ⇒ Object
Returns the value of attribute env.
-
#timeout ⇒ Object
Returns the value of attribute timeout.
-
#tools ⇒ Object
Returns the value of attribute tools.
-
#type ⇒ Object
Returns the value of attribute type.
Instance Method Summary collapse
Instance Attribute Details
#args ⇒ Object
Returns the value of attribute args
334 335 336 |
# File 'lib/copilot/types.rb', line 334 def args @args end |
#command ⇒ Object
Returns the value of attribute command
334 335 336 |
# File 'lib/copilot/types.rb', line 334 def command @command end |
#cwd ⇒ Object
Returns the value of attribute cwd
334 335 336 |
# File 'lib/copilot/types.rb', line 334 def cwd @cwd end |
#env ⇒ Object
Returns the value of attribute env
334 335 336 |
# File 'lib/copilot/types.rb', line 334 def env @env end |
#timeout ⇒ Object
Returns the value of attribute timeout
334 335 336 |
# File 'lib/copilot/types.rb', line 334 def timeout @timeout end |
#tools ⇒ Object
Returns the value of attribute tools
334 335 336 |
# File 'lib/copilot/types.rb', line 334 def tools @tools end |
#type ⇒ Object
Returns the value of attribute type
334 335 336 |
# File 'lib/copilot/types.rb', line 334 def type @type end |
Instance Method Details
#to_h ⇒ Object
338 339 340 341 342 343 344 345 |
# File 'lib/copilot/types.rb', line 338 def to_h h = { tools: tools || [], command: command, args: args || [] } h[:type] = type if type h[:timeout] = timeout if timeout h[:env] = env if env h[:cwd] = cwd if cwd h end |