Skip to main content

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.

@frontmcp/nx is the official Nx plugin for FrontMCP. It provides 17 generators for scaffolding projects and components, and 7 executors for building, testing, and deploying your servers — all integrated with the Nx build system.
Use the Nx plugin when you want monorepo-scale development: shared libraries, multi-app composition, per-environment servers, and Nx’s dependency graph + affected commands.

When to Use the Nx Plugin

ScenarioRecommendation
Single MCP serverUse npx frontmcp create (standalone)
Multiple apps sharing codeUse @frontmcp/nx (monorepo)
Team with shared librariesUse @frontmcp/nx (monorepo)
Multiple deployment targetsUse @frontmcp/nx (monorepo)
Existing Nx workspaceAdd @frontmcp/nx

Architecture

The Nx plugin organizes your code into three layers:
LayerDirectoryPurpose
Appsapps/FrontMCP applications with tools, resources, prompts
Libslibs/Shared libraries (generic, plugin, adapter, tool-register)
Serversservers/Deployment shells that compose apps for a target platform

Feature Summary

Generators (17)

CategoryGenerators
Structuralworkspace, app, lib, server
Componenttool, resource, prompt, skill, agent, provider, plugin, adapter, auth-provider, flow
UIui-component, ui-page, ui-shell

Executors (7)

ExecutorWrapsCacheable
buildfrontmcp buildYes
build-execfrontmcp build --target nodeYes
devfrontmcp devNo (long-running)
servefrontmcp startNo (long-running)
testfrontmcp testYes
inspectorfrontmcp inspectorNo (long-running)
deployPlatform-specificNo

Next Steps

Installation

Install @frontmcp/nx in new or existing workspaces

Quickstart

Build your first monorepo in 5 minutes

Generators

Scaffold apps, libs, servers, and components

Executors

Build, test, and deploy with Nx