Docs / CLI

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 inspect schemas, validate compatibility, preview generated files, create projects, and add supported features to existing projects.

npx -y create-better-fullstack@latest mcp

The server uses stdio transport. Configure your MCP client to launch the command and communicate over standard input/output.

Client examples

Claude Code with npm:

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:

{
  "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_check_compatibilityValidates stack selections before generation.
bfs_plan_projectDry-runs generation in memory.
bfs_create_projectWrites a new project to disk.
bfs_plan_additionPlans feature additions for an existing project.
bfs_add_featureAdds supported features to an existing project.

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

See the MCP tools reference for inputs, outputs, and safe workflows.

Safety notes

  • bfs_plan_project does not write files.
  • bfs_create_project writes files but does not install dependencies.
  • bfs_add_feature mutates an existing Better Fullstack project and does not install dependencies.
  • Agents should call bfs_get_guidance and bfs_check_compatibility before project creation.
  • 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.