Class: ClaudeCode::McpStdioServerConfig
- Inherits:
-
Object
- Object
- ClaudeCode::McpStdioServerConfig
- Defined in:
- lib/claude_code/types.rb
Overview
MCP Server configurations
Instance Attribute Summary collapse
-
#args ⇒ Object
readonly
Returns the value of attribute args.
-
#command ⇒ Object
readonly
Returns the value of attribute command.
-
#env ⇒ Object
readonly
Returns the value of attribute env.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(command:, args: [], env: {}, type: 'stdio') ⇒ McpStdioServerConfig
constructor
A new instance of McpStdioServerConfig.
- #to_h ⇒ Object
Constructor Details
#initialize(command:, args: [], env: {}, type: 'stdio') ⇒ McpStdioServerConfig
Returns a new instance of McpStdioServerConfig.
88 89 90 91 92 93 |
# File 'lib/claude_code/types.rb', line 88 def initialize(command:, args: [], env: {}, type: 'stdio') @command = command @args = args @env = env @type = type end |
Instance Attribute Details
#args ⇒ Object (readonly)
Returns the value of attribute args.
86 87 88 |
# File 'lib/claude_code/types.rb', line 86 def args @args end |
#command ⇒ Object (readonly)
Returns the value of attribute command.
86 87 88 |
# File 'lib/claude_code/types.rb', line 86 def command @command end |
#env ⇒ Object (readonly)
Returns the value of attribute env.
86 87 88 |
# File 'lib/claude_code/types.rb', line 86 def env @env end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
86 87 88 |
# File 'lib/claude_code/types.rb', line 86 def type @type end |
Instance Method Details
#to_h ⇒ Object
95 96 97 98 99 100 101 102 |
# File 'lib/claude_code/types.rb', line 95 def to_h { type: @type, command: @command, args: @args, env: @env } end |