DocsCLI

Open documentation actions

MCP Command

Start the Better Fullstack MCP server over stdio for AI coding agents.

The mcp command starts the Better Fullstack MCP server over stdio. Agents can use it to discover and recommend stacks, inspect schemas, validate compatibility, preview generated files, create projects, and safely evolve existing projects.

npx -y create-better-fullstack@latest mcp

The server uses stdio transport and supports both the 2025 MCP protocol family and MCP 2026-07-28. Modern clients can use the stateless-core request model, while older clients continue through the legacy initialization flow. Configure your MCP client to launch the command and communicate over standard input/output.

Client examples

Claude Code with npm:

bash
claude mcp add --transport stdio better-fullstack -- npx -y create-better-fullstack@latest mcp

For pnpm, Bun, or Yarn, replace the command after -- with the matching launcher:

Package managerLauncher
npmnpx -y create-better-fullstack@latest mcp
pnpmpnpm dlx create-better-fullstack@latest mcp
Bunbunx create-better-fullstack@latest mcp
Yarnyarn dlx create-better-fullstack@latest mcp

Generic MCP client config with npm:

json
{
  "mcpServers": {
    "better-fullstack": {
      "command": "npx",
      "args": ["-y", "create-better-fullstack@latest", "mcp"]
    }
  }
}

Equivalent command/args for other package managers:

Package managercommandargs
pnpmpnpm["dlx", "create-better-fullstack@latest", "mcp"]
Bunbunx["create-better-fullstack@latest", "mcp"]
Yarnyarn["dlx", "create-better-fullstack@latest", "mcp"]

Tool Surface

ToolPurpose
bfs_get_guidanceReturns workflow rules and field semantics.
bfs_get_schemaReturns valid options for one category or all categories.
bfs_list_presetsLists ready-made stack presets.
bfs_recommend_stackRecommends a validated stack from a product brief.
bfs_check_compatibilityValidates stack selections before generation.
bfs_plan_projectDry-runs generation in memory.
bfs_create_projectWrites a new project to disk.
bfs_get_project_statusReads project and manifest prerequisites without checks.
bfs_check_projectExecutes every target; toolchains may write locks/caches/artifacts.
bfs_plan_part_removalPlans exact non-primary capability removal and returns a review token.
bfs_apply_part_removalApplies a reviewed capability removal in a recoverable transaction.
bfs_plan_project_updatePlans manifest-v2 drift; token requires bounded inspectable merge content.
bfs_apply_project_updateApplies token-bound files transactionally with provenance-aware safeguards.
bfs_recover_project_transactionRestores a successful or interrupted transaction exactly once.
bfs_plan_stack_updatePlans broad stack changes for an existing project.
bfs_apply_stack_updateApplies a reviewed stack update.
bfs_plan_additionPlans focused capability or deploy changes.
bfs_add_featureApplies focused capability or deploy changes.

Project planning, creation, and addition responses include graph metadata (graphSummary, effectiveStack, and stackPartSpecs) alongside the generated file or mutation summary.

See the MCP server guide for inputs, outputs, and safe workflows.

Safety notes

  • Planning tools do not write files.
  • bfs_get_project_status is read-only and does not execute toolchains. bfs_check_project does not directly rewrite Better Fullstack source/configuration, but build tools may fetch dependencies and write locks, caches, compiler output, or build artifacts; missing prerequisites fail the check.
  • bfs_create_project, bfs_apply_part_removal, bfs_apply_project_update, bfs_apply_stack_update, and bfs_add_feature write files but do not install dependencies.
  • Current-template apply requires the exact bounded reviewToken; missing, stale, cross-project, or oversized-review-ineligible tokens fail closed. Migrated or manually adopted projects also require acknowledgeUnprovenManifestV1: true because their original generator lineage is unverified. Apply snapshots bounded paths, rolls operation-owned writes back on failure, and returns a transaction ID for one-command recovery.
  • Stack updates refuse to overwrite user-edited generated files. Architecture changes require an explicit acknowledgement and never migrate application data or schemas automatically.
  • Part removal requires an exact selected non-primary stack part and the token from bfs_plan_part_removal; primary roles must be replaced through stack update instead.
  • Agents should call bfs_get_guidance, inspect the live schema, and plan before any write.
  • docs opens the public documentation site.
  • builder opens the interactive Stack Builder.
  • sponsors shows Better Fullstack sponsors.

See the CLI reference for examples of these utility commands.

GitHub Sponsors