mix bb_mcp.install (bb_mcp v0.1.0)

Copy Markdown View Source

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

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).