Commands
Package, development, quality, evaluation, and distribution commands.
Install
npm install --save-dev @mwillbanks/ast-mcpWhen using Bun, run bun pm trust @ast-bro/cli dprint once after installation. If another manager blocks dependency build scripts, approve @ast-bro/cli and dprint through that manager.
Manage host surfaces
./node_modules/.bin/ast-mcp install --scope local --target all --root "$PWD"
./node_modules/.bin/ast-mcp install --scope local --target all --root "$PWD" \
--transport http --host 127.0.0.1 --port 3768 [--service]
./node_modules/.bin/ast-mcp update --scope local --target all --root "$PWD" \
[--transport stdio|http] [--no-service]
./node_modules/.bin/ast-mcp uninstall --scope local --target all --root "$PWD"Installer output is JSON containing changed paths, the effective transport, HTTP endpoint, service identity/state, and a manual startup command when no service is managed.
Configuration
ast-mcp config validate --root "$PWD"
ast-mcp config show --root "$PWD"Both commands resolve environment, project, global, and default layers. validate reports the selected project and sources; show also prints effective values and field provenance as JSON.
Runtime
ast-mcp mcp
ast-mcp mcp --transport http [--host 127.0.0.1] [--port 3768]
bun run dev
bun run dev:httpRuntime HTTP flags have highest precedence. --host and --port are rejected for stdio, and invalid transport or port values return command-specific usage errors.
Quality gates
bun run tools:check
bun run format
bun run format:check
bun run typecheck
bun run test
bun run skill:check
bun run evals:check
bun run fallowbun run format executes biome check . --write --unsafe --reporter concise --error-on-warnings. The check-only command uses the same warning policy without writing.
Distribution
bun run build
bun pm pack --dry-runThe Bun build bundles bin/ast-mcp.ts into dist/ast-mcp.js as a Bun-targeted ESM executable with an external source map. Its install, update, uninstall, hook, and mcp subcommands share the same stable package dependency tree.
Documentation
bun install --cwd website
bun run --cwd website dev
bun run --cwd website lint
bun run --cwd website typecheck
bun run --cwd website test
VITE_BASE_PATH=/ast-mcp/ bun run --cwd website build