Class: ClaudeAgentSDK::McpStdioServerConfig
- Defined in:
- lib/claude_agent_sdk/types.rb
Overview
MCP Server configurations
Instance Attribute Summary collapse
-
#args ⇒ Object
Returns the value of attribute args.
-
#command ⇒ Object
Returns the value of attribute command.
-
#env ⇒ Object
Returns the value of attribute env.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ McpStdioServerConfig
constructor
A new instance of McpStdioServerConfig.
- #to_h ⇒ Object
Methods inherited from Type
Constructor Details
#initialize(attributes = {}) ⇒ McpStdioServerConfig
Returns a new instance of McpStdioServerConfig.
1230 1231 1232 1233 |
# File 'lib/claude_agent_sdk/types.rb', line 1230 def initialize(attributes = {}) super @type = 'stdio' end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class ClaudeAgentSDK::Type
Instance Attribute Details
#args ⇒ Object
Returns the value of attribute args.
1227 1228 1229 |
# File 'lib/claude_agent_sdk/types.rb', line 1227 def args @args end |
#command ⇒ Object
Returns the value of attribute command.
1227 1228 1229 |
# File 'lib/claude_agent_sdk/types.rb', line 1227 def command @command end |
#env ⇒ Object
Returns the value of attribute env.
1227 1228 1229 |
# File 'lib/claude_agent_sdk/types.rb', line 1227 def env @env end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
1228 1229 1230 |
# File 'lib/claude_agent_sdk/types.rb', line 1228 def type @type end |
Instance Method Details
#to_h ⇒ Object
1235 1236 1237 1238 1239 1240 |
# File 'lib/claude_agent_sdk/types.rb', line 1235 def to_h result = { type: @type, command: @command } result[:args] = @args if @args result[:env] = @env if @env result end |