# `BB.MCP.Router`
[🔗](https://github.com/beam-bots/bb_mcp/blob/main/lib/bb/mcp/router.ex#L5)

Phoenix router macro for mounting the BB MCP server over Streamable HTTP.

## Usage

    defmodule MyAppWeb.Router do
      use Phoenix.Router
      import BB.MCP.Router

      scope "/" do
        bb_mcp "/mcp"
      end
    end

This forwards requests at the given path to
`Anubis.Server.Transport.StreamableHTTP.Plug`, configured for
`BB.MCP.Server`. Pass `server: MyOtherServerModule` to mount a
different server module (useful if you've defined your own
`use Anubis.Server` module).

# `bb_mcp`
*macro* 

Forwards `path` to the Anubis Streamable HTTP plug for the BB MCP server.

## Options

- `:server` — the server module to mount. Defaults to `BB.MCP.Server`.

---

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