Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Nx Plugin
Generate a FrontMCP application in apps/
nx g @frontmcp/nx:app my-app
name
string
directory
apps/<name>
tags
apps/my-app/ ├── src/ │ ├── main.ts # Server entry point │ ├── my-app.app.ts # @App class │ └── tools/ │ └── hello.tool.ts # Sample @Tool ├── project.json # Nx project config with targets ├── tsconfig.json ├── tsconfig.lib.json ├── tsconfig.spec.json └── jest.config.ts
import { App } from '@frontmcp/sdk'; import HelloTool from './tools/hello.tool'; @App({ id: 'my-app', name: 'MyApp', tools: [HelloTool], }) export class MyAppApp {}
import 'reflect-metadata'; import { FrontMcp } from '@frontmcp/sdk'; import { MyAppApp } from './my-app.app'; @FrontMcp({ info: { name: 'MyApp', version: '0.1.0' }, apps: [MyAppApp], }) export default class Server {}
project.json
build
@frontmcp/nx:build
dev
@frontmcp/nx:dev
serve
@frontmcp/nx:serve
test
@frontmcp/nx:test
inspector
@frontmcp/nx:inspector
# Create app with tags nx g @frontmcp/nx:app analytics --tags "scope:analytics,type:app" # Start development nx dev analytics
Was this page helpful?