Skip to main content
This walkthrough takes you from an empty directory to a running multi-app MCP server inside an Nx monorepo.
1

Create the workspace

This scaffolds the full monorepo structure with a sample app.
2

Generate an app

Creates apps/crm/ with a main entry point, app class, and sample tool.
3

Add a tool

Creates apps/crm/src/tools/fetch-contacts.tool.ts — edit the execute() method to add your logic.
4

Generate a shared library

Creates libs/shared-utils/ — use it for code shared across apps.
5

Generate a server

Creates servers/production/ with a Dockerfile, docker-compose.yml, and an entry point that composes the CRM app.
6

Start development

Starts the CRM app in development mode with hot-reload.
7

Build for production

Compiles the production server to servers/production/dist/.
8

Run tests

Runs E2E tests for the CRM app using @frontmcp/testing.
Your monorepo is ready! Add more apps, tools, and libraries as your platform grows.

Project Structure

After completing the steps above, your workspace looks like this:

Common Commands


Next Steps

Generators

All 14 generators for scaffolding components

Monorepo Patterns

Architecture patterns for large monorepos