Skip to main content
The frontmcp CLI provides commands for development, process management, and package management. Install it globally or use via npx.

Development Commands

Commands for building, testing, and debugging your FrontMCP server.

Process Manager Commands

Manage long-running MCP servers with automatic supervision, restart policies, and logging.

Package Manager Commands

Install, configure, and manage MCP apps from npm, local paths, or git repositories.

ESM Update Options

See ESM Packages for full documentation on ESM dynamic loading.

Options Reference

General Options

Build Options

Start Options

Stop Options

Logs Options

Install Options

Create Options

The create command automatically initializes a git repository and creates an initial commit after scaffolding. If git is not installed, this step is silently skipped.

Socket Options

Test Options


Generated Executable CLI

When you build with --target cli, the output is a self-contained executable whose commands are auto-generated from your MCP server’s tools, resources, prompts, and templates.

Building

This produces a self-contained executable in dist/ that can be distributed and run directly. Use --js to emit a plain JavaScript bundle instead.

Global Options

Command Groups

The generated CLI organizes commands into five groups: Tools — Each MCP tool becomes a kebab-case subcommand. Flags are derived from the tool’s input schema. Object-typed parameters accept JSON strings:
Resources & Promptsresource list, resource read <uri>, template list, template <name>, prompt list, prompt <name>. Authlogin, logout, sessions list, sessions switch <name>, connect --token <TOKEN>. Subscriptionssubscribe resource <uri>, subscribe notification <name>. Systemserve, daemon start|stop|status|logs, doctor, install, uninstall.

Example Session

Configuration

Control the generated CLI via the cli block in frontmcp.config.js:

Tool Name Conflicts

If a tool name collides with a built-in command (login, logout, serve, connect, doctor, install, uninstall, resource, template, prompt, subscribe, sessions, daemon, job, skills), the tool subcommand is automatically suffixed with -tool (e.g., login-tool).

Examples

Development

Project Scaffolding

Unix Socket

Process Management

Package Management