# `mix bb_mcp.install`
[🔗](https://github.com/beam-bots/bb_mcp/blob/main/lib/mix/tasks/bb_mcp.install.ex#L6)

Installs BB.MCP into an application

Configures `:bb_mcp, :robots` from the supplied `--robot` module(s),
then wires up an MCP transport:

  * If the host app uses Phoenix, the installer locates the
    application's router and adds the `BB.MCP.Router.bb_mcp/2`
    mount (defaulting to `/mcp`).
  * Otherwise it adds `BB.MCP.Server` as a Streamable HTTP child to
    the application's supervision tree, listening on `--port`.

## Example

```bash
mix igniter.install bb_mcp
mix igniter.install bb_mcp --robot MyApp.Robot
mix igniter.install bb_mcp --robot MyApp.WX200 --robot MyApp.SO101
mix igniter.install bb_mcp --path /mcp --port 4001
```

## Options

  * `--robot` — Robot module to expose. May be supplied multiple
    times. Defaults to `{AppPrefix}.Robot`.
  * `--path` — URL path for the Phoenix mount (default `/mcp`).
  * `--port` — Streamable HTTP port for the non-Phoenix mount
    (default `4000`).

---

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