Class: TrainPlugins::Mcp::Transport

Inherits:
Object
  • Object
show all
Defined in:
lib/train-mcp/transport.rb

Instance Method Summary collapse

Instance Method Details

#connection(_instance_opts = nil) ⇒ Object

The options passed to this are undocumented and rarely used.



21
22
23
24
25
26
27
28
# File 'lib/train-mcp/transport.rb', line 21

def connection(_instance_opts = nil)
  # Typical practice is to cache the connection as an instance variable.
  # Do what makes sense for your platform.
  # @options here is the parsed options that the calling
  # app handed to us at process invocation. See the Connection class
  # for more details.
  @connection ||= TrainPlugins::Mcp::Connection.new(@options)
end