Skip to main content
Generators scaffold code following FrontMCP conventions. Run them with:
nx g @frontmcp/nx:<generator> <name> [options]

Structural Generators

These create top-level projects in your monorepo:
GeneratorDescriptionOutput
workspaceScaffold a full FrontMCP Nx monorepoRoot directory
appGenerate a FrontMCP applicationapps/<name>/
libGenerate a shared librarylibs/<name>/
serverGenerate a deployment shellservers/<name>/

Component Generators

These add components to existing projects:
GeneratorDescriptionOutput
toolGenerate a @Tool classsrc/tools/<name>.tool.ts
resourceGenerate a @Resource or @ResourceTemplatesrc/resources/<name>.resource.ts
promptGenerate a @Prompt classsrc/prompts/<name>.prompt.ts
skillGenerate a @Skill classsrc/skills/<name>.skill.ts
agentGenerate an @Agent classsrc/agents/<name>.agent.ts
providerGenerate a @Provider classsrc/providers/<name>.provider.ts
pluginGenerate a @Plugin classsrc/plugins/<name>.plugin.ts
adapterGenerate an @Adapter classsrc/adapters/<name>.adapter.ts
auth-providerGenerate an @AuthProvider classsrc/auth/<name>.auth-provider.ts
flowGenerate a @Flow classsrc/flows/<name>.flow.ts
jobGenerate a @Job classsrc/jobs/<name>.job.ts
workflowGenerate a @Workflow classsrc/workflows/<name>.workflow.ts

UI Generators

These add entries to the shared UI packages in ui/:
GeneratorDescriptionOutput
ui-componentAdd a component to ui/components/ui/components/src/<Name>/
ui-pageAdd a page to ui/pages/ui/pages/src/<Name>/
ui-shellAdd a shell to ui/shells/ui/shells/src/<Name>/