Class: OpenAI::Models::Beta::PersistedMcpTransport::Stdio

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/openai/models/beta/persisted_mcp_transport.rb,
sig/openai/models/beta/persisted_mcp_transport.rbs

Instance Attribute Summary collapse

Attributes inherited from Internal::Type::BaseModel

#last_response

Instance Method Summary collapse

Methods inherited from Internal::Type::BaseModel

==, #==, #[], #_request_id, #_set_last_response, coerce, #deconstruct_keys, #deep_to_h, dump, #encode_with, fields, hash, #hash, inherited, #inspect, inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml

Methods included from Internal::Type::Converter

#coerce, coerce, coerce_with_error, dump, #dump, #inspect, inspect, meta_info, new_coerce_state, type_info

Methods included from Internal::Util::SorbetRuntimeSupport

#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type

Constructor Details

#initialize(args:, command:, cwd:, env_vars:, type: :stdio) ⇒ Object

Starts an MCP server as a local process.

Parameters:

  • args (Array<String>)

    Arguments passed to the MCP server command.

  • command (String)

    The command used to start the MCP server.

  • cwd (String)

    The working directory used to start the MCP server.

  • env_vars (Array<String>)

    Environment variable names inherited from the execution environment.

  • type (Symbol, :stdio) (defaults to: :stdio)

    The type of the object. Always stdio.



# File 'lib/openai/models/beta/persisted_mcp_transport.rb', line 81

Instance Attribute Details

#argsArray<String>

Arguments passed to the MCP server command.

Parameters:

  • value (::Array[String])

Returns:

  • (Array<String>)


55
# File 'lib/openai/models/beta/persisted_mcp_transport.rb', line 55

required :args, OpenAI::Internal::Type::ArrayOf[String]

#commandString

The command used to start the MCP server.

Parameters:

  • value (String)

Returns:

  • (String)


61
# File 'lib/openai/models/beta/persisted_mcp_transport.rb', line 61

required :command, String

#cwdString

The working directory used to start the MCP server.

Parameters:

  • value (String)

Returns:

  • (String)


67
# File 'lib/openai/models/beta/persisted_mcp_transport.rb', line 67

required :cwd, String

#env_varsArray<String>

Environment variable names inherited from the execution environment.

Parameters:

  • value (::Array[String])

Returns:

  • (Array<String>)


73
# File 'lib/openai/models/beta/persisted_mcp_transport.rb', line 73

required :env_vars, OpenAI::Internal::Type::ArrayOf[String]

#typeSymbol, :stdio

The type of the object. Always stdio.

Parameters:

  • value (:stdio)

Returns:

  • (Symbol, :stdio)


79
# File 'lib/openai/models/beta/persisted_mcp_transport.rb', line 79

required :type, const: :stdio

Instance Method Details

#to_hash{

Returns:

  • ({)


62
# File 'sig/openai/models/beta/persisted_mcp_transport.rbs', line 62

def to_hash: -> {