Skip to main content

Global flags

These flags apply to every command:
FlagDefaultDescription
--log-levelINFOLog verbosity: DEBUG, INFO, WARNING, ERROR
--format-outputjsonOutput format: json or human
You can also set MAGE_AGENT_LOG_LEVEL as an environment variable:
MAGE_AGENT_LOG_LEVEL=DEBUG mage-agent sync-status

mage-agent login

Authenticate with your Mage Pro cluster and save credentials.
mage-agent login [OPTIONS]
OptionDescription
--cluster-url URLMage Pro cluster URL
--email EMAILAccount email
--password PASSWORDAccount password
If any option is omitted, the CLI prompts interactively. On success, writes ~/.mage-agent/config.json and fetches remote skill files from the cluster.

mage-agent mcp

Start the MCP stdio server. This is the command your IDE or AI agent launches.
mage-agent mcp
No options. The server reads JSON-RPC requests from stdin and writes responses to stdout. Logs go to stderr.

mage-agent sync-project-to-local

Pull all remote project files to a local directory.
mage-agent sync-project-to-local [--local-project-dir PATH]
OptionDefaultDescription
--local-project-dir.mage-agent/local_syncDestination directory

mage-agent sync-status

Show what has changed between local and remote.
mage-agent sync-status [--local-project-dir PATH]
Output groups files into: remote_to_local, local_to_remote, conflicts, in_sync. Use --format-output human for a readable table.

mage-agent sync-local-to-remote

Push locally changed files to the cluster.
mage-agent sync-local-to-remote [--local-project-dir PATH]
Only files with local_to_remote status are uploaded.

mage-agent sync

Bidirectional sync with interactive conflict resolution.
mage-agent sync [--local-project-dir PATH]
For each conflicting file, prompts: [r]emote / [l]ocal / [s]kip.