Method: VectorMCP::Transport::Stdio#run

Defined in:
lib/vector_mcp/transport/stdio.rb

#runvoid

This method returns an undefined value.

Starts the stdio transport, listening for input and processing messages. This method will block until the input stream is closed or an interrupt is received.



38
39
40
41
42
43
44
45
46
47
48
49
50
51
# File 'lib/vector_mcp/transport/stdio.rb', line 38

def run
  session = create_session
  logger.info("Starting stdio transport")
  @running = true

  begin
    launch_input_thread(session)
    @input_thread.join
  rescue Interrupt
    logger.info("Interrupted. Shutting down...")
  ensure
    shutdown_transport
  end
end