create
Create a new LeanMCP project with Streamable HTTP transport.Arguments
Name of the project to create
Options
Skip interactive confirmations and assume Yes
Disable dashboard UI at / and /mcp GET endpoints
Install dependencies automatically (non-interactive, no dev server)
Skip dependency installation (non-interactive)
Create a Python MCP project instead of TypeScript
Examples
dev
Start development server with UI hot-reload (builds @UIApp components).Behavior
- Scans for
@UIAppcomponents in the project - Builds UI components with Vite
- Starts
tsx watch main.tsfor hot-reload - Watches
mcp/**/*for changes and rebuilds components automatically
build
Build UI components and compile TypeScript for production.Steps
- Scans for
@UIAppcomponents - Builds UI components with Vite (production mode)
- Compiles TypeScript with
tsc - Generates schema metadata
start
Build UI components and start production server.Behavior
- Runs the build process (UI + TypeScript)
- Starts the production server with
node dist/main.js
login
Authenticate with LeanMCP cloud using an API key.Behavior
- Prompts for API key from https://ship.leanmcp.com/api-keys
- Validates the key with LeanMCP API
- Stores credentials in
~/.leanmcp/config.json
logout
Remove stored API key and logout from LeanMCP cloud.whoami
Show current authentication status and account info.Response Fields
User’s display name
User’s email address
User’s username
Account tier (e.g., ‘free’, ‘pro’)
deploy
Deploy an MCP server to LeanMCP cloud.Arguments
Path to the project folder to deploy
Options
Subdomain for deployment (e.g., ‘my-app’ → my-app.leanmcp.app)
Skip confirmation prompts
Examples
add
Add a new MCP service to your project.Arguments
Name of the service to create
Behavior
- Creates
mcp/<serviceName>/index.tswith example tool, prompt, and resource - Service is auto-discovered on next server start
Example
projects
Manage LeanMCP cloud projects.list
List all your deployed projects.get
Get details of a specific project.ID of the project to retrieve
delete
Delete a project.ID of the project to delete
Skip confirmation prompt
env
Manage environment variables for deployed projects.list
List all environment variables.Project folder path
Show actual values instead of masked
Specify project ID directly
set
Set an environment variable.Environment variable in KEY=VALUE format
Project folder path
Load from env file instead of single key-value
Skip confirmation for reserved keys
Examples
get
Get an environment variable value.Environment variable key
Show actual value
remove
Remove an environment variable.Environment variable key to remove
Skip confirmation
pull
Download environment variables to local .env file.Output file path
push
Upload environment variables from local .env file (replaces all).Input file path
Skip confirmation
send-feedback
Send feedback to the LeanMCP team.Feedback message
Send feedback anonymously
Include local log files with feedback
Global Options
These options are available for all commands:Output the current version
Display help for command
Enable debug logging for all commands