Skip to main content
Generates a FrontMCP application with an entry point, app class, sample tool, and full project configuration.

Usage

Options

Generated Files

Generated Code

src/my-app.app.ts
src/main.ts
src/tools/hello.tool.spec.ts

Nx Targets

The generated project.json includes these targets:

TypeScript Configuration

tsconfig.json is what frontmcp build compiles, so it sets what a FrontMCP build needs regardless of the workspace’s base config:
  • module: commonjs, with moduleResolution: node10 on TypeScript 5 and bundler on TypeScript 6+ (which deprecates node10). Under node10, an inherited customConditions is reset to null.
  • rootDir at the workspace root, so code imported from libraries compiles too.
  • composite, declarationMap and emitDeclarationOnly set to false, so a TS-solution base config (create-nx-workspace --preset=ts) still emits JavaScript.
  • "nx": { "addTypecheckTarget": false }, so a workspace that registers @nx/js/typescript uses the typecheck target above instead of an inferred tsc --build.

Example