# `Codex.MCP.Transport.StreamableHTTP`
[🔗](https://github.com/nshkrdotcom/codex_sdk/blob/v0.18.1/lib/codex/mcp/transport/streamable_http.ex#L1)

Implements MCP JSON-RPC over HTTP with optional bearer or OAuth auth.

# `t`

```elixir
@type t() :: pid()
```

# `child_spec`

Returns a specification to start this module under a supervisor.

See `Supervisor`.

# `recv`

```elixir
@spec recv(t(), pos_integer()) :: {:ok, map()} | {:error, term()}
```

Receives the next JSON-RPC message from the MCP server.

# `send`

```elixir
@spec send(t(), map()) :: :ok | {:error, term()}
```

Sends a JSON-RPC message to the MCP server.

# `start_link`

```elixir
@spec start_link(keyword()) :: GenServer.on_start()
```

Starts a streamable HTTP transport process.

---

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