CLI
bitmcp dev, start, preview, and build commands.
The bitmcp CLI ships with the bitmcp package.
Commands
| Command | Description |
|---|---|
bitmcp dev | Vite watch for Views plus the MCP server. stdio by default |
bitmcp start | Production Streamable HTTP from dist/server.js |
bitmcp preview | Local App Bridge host with iframe |
bitmcp build | Hashed inlined View HTML plus dist/server.js. Writes api/mcp.js when deploy is "vercel" |
Flags
| Flag | Applies to | Description |
|---|---|---|
--http | dev | Use Streamable HTTP instead of stdio |
--stdio | dev | Force stdio (the default) |
--port N | dev, start, preview | Listen port |
Typical scripts
{
"scripts": {
"dev": "bitmcp dev",
"start": "bitmcp start --http",
"preview": "bitmcp preview",
"build": "bitmcp build"
}
}Environment
| Variable | Description |
|---|---|
BITMCP_ROOT | Project root |
BITMCP_STATE_KEY | State signing key |
MCP_TRANSPORT | stdio or http |
MCP_PORT | HTTP port |
MCP_HOST | HTTP bind address |
MCP_PATH | HTTP path |
Usage string
bitmcp <dev|start|preview|build> [--http] [--stdio] [--port N]