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
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
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:resource list, resource read <uri>, template list, template <name>, prompt list, prompt <name>.
Auth — login, logout, sessions list, sessions switch <name>, connect --token <TOKEN>.
Subscriptions — subscribe resource <uri>, subscribe notification <name>.
System — serve, daemon start|stop|status|logs, doctor, install, uninstall.
Example Session
Configuration
Control the generated CLI via thecli 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).