Documentation Index
Fetch the complete documentation index at: https://docs.agentfront.dev/llms.txt
Use this file to discover all available pages before exploring further.
Prerequisites
- Node.js: Version 24+ (LTS)
- The
enginesfield in@frontmcp/sdkandfrontmcprequires Node 24+. FrontMCP is developed and tested on Node 24.
- The
- npm ≥ 10 (pnpm / yarn work too)
- TypeScript project (the init command can set this up)
- Standard
- Nx Monorepo
Option A — Create a new project
Use the built-in project generator. It will create a new folder under your current directory.create command is interactive by default:--yes (or -y) to skip prompts and use defaults.CLI Flags
| Flag | Description | Default |
|---|---|---|
--yes, -y | Use defaults (non-interactive) | - |
--target <type> | Deployment: node, vercel, lambda, cloudflare | node |
--redis <setup> | Redis: docker, existing, none | docker |
--cicd / --no-cicd | Enable GitHub Actions | --cicd |
--pm <manager> | Package manager: npm, yarn, pnpm | npm |
- scaffold a FrontMCP project in
./my-app - configure
tsconfig.jsonfor decorators and modern ESM - generate a
package.jsonwith helpful scripts - create deployment configuration for your target (Dockerfile, vercel.json, etc.)
- generate GitHub Actions workflows (if enabled)
- install required dev dependencies (e.g. TypeScript, tsx, zod, reflect-metadata)
Option B — Add to an existing project
Install the SDK, CLI, and Node types:init will:- create or update your tsconfig.json with the required decorator settings (
experimentalDecorators,emitDecoratorMetadata,target: es2021,module: esnext)
Package scripts
Aftercreate, you’ll have these scripts:frontmcp dev— run your server in watch mode (tsx)frontmcp build— bundle your entry for the configured deployment target (outputs to./distby default)frontmcp inspector— launch the MCP Inspector (npx @modelcontextprotocol/inspector)frontmcp doctor— validate Node/npm versions, tsconfig, and project setupfrontmcp test— run E2E tests with the auto-injected Jest configuration
Verify your setup
Run:If anything is missing or misconfigured (Node/npm versions,
tsconfig.json, scripts), doctor will tell you
exactly what to fix.Next steps
- Start developing:
npm run dev(standard) ornx dev <app>(Nx) - Build for distribution:
npm run build(standard) ornx build <project>(Nx) - Explore tools and messages live:
npm run inspect(standard) ornx inspector <app>(Nx)