Skip to main content
Writes the Momentic mobile MCP server into the config file of one or more coding agents. You do not need to edit JSON or TOML by hand. See the MCP guide for the tools the server exposes.
In a terminal, the command asks which agents to configure and where to save the config. It preselects the agents it detects in the project and on your machine. Outside a terminal, or with --yes, it writes the project config for every detected agent. The command adds a momentic-mobile server entry that runs npx -y momentic-mobile mcp. It can sit next to the web momentic entry. Other servers in the file are kept. Comments in JSON files are kept.

Supported agents

Agents with no project config get the user config.

Options

string
One or more agents to configure. Defaults to the agents detected in the project and on your machine.
string
project writes a file in the current directory that you can commit. user writes the config for your machine only.
string
Path to the Momentic config file to pass to the server. Project configs store it relative to the project root.
string
Write this API key into the config as MOMENTIC_API_KEY.
boolean
Write your saved API key into the config. Do not use this for files that you commit to Git. Without it, the server reads MOMENTIC_API_KEY from your environment or from ~/.momentic/auth.json after npx momentic-mobile login.
boolean
Skip prompts and use the defaults.

Examples