# `StubTransport`

Simple mock transport for MCP protocol testing.
Records all messages sent through it for inspection in tests.

# `state`

```elixir
@type state() :: %{
  messages: [String.t()],
  client: GenServer.name() | nil,
  session_id: String.t(),
  test_pid: pid() | nil
}
```

# `child_spec`

Returns a specification to start this module under a supervisor.

See `Supervisor`.

# `clear`

Clears all recorded messages.

# `count`

Gets the count of messages sent.

# `get_last_message`

# `get_messages`

Gets all messages sent through this transport.

# `send_to_client`

# `set_client`

# `set_test_pid`

Sets the test process to receive message notifications.

# `start_link`

Starts the mock transport.

## Options
- `:name` - Process name (defaults to __MODULE__)

---

*Consult [api-reference.md](api-reference.md) for complete listing*
