StubTransport (hermes_mcp v0.14.1)
Simple mock transport for MCP protocol testing. Records all messages sent through it for inspection in tests.
Summary
Functions
Returns a specification to start this module under a supervisor.
Clears all recorded messages.
Gets the count of messages sent.
Gets all messages sent through this transport.
Sets the test process to receive message notifications.
Starts the mock transport.
Types
@type state() :: %{ messages: [String.t()], client: GenServer.name() | nil, session_id: String.t(), test_pid: pid() | nil }
Functions
Returns a specification to start this module under a supervisor.
See Supervisor.
Clears all recorded messages.
Gets the count of messages sent.
Gets all messages sent through this transport.
Sets the test process to receive message notifications.
Starts the mock transport.
Options
:name- Process name (defaults to MODULE)