atmos mcp export
Use this command to export a .mcp.json file from the MCP servers configured in atmos.yaml. This enables Claude Code, Cursor, and other MCP-compatible IDEs to use the same servers.
Description
The atmos mcp export command reads all servers from mcp.servers in atmos.yaml and exports a .mcp.json file in the standard format used by Claude Code, Codex CLI, and other MCP-compatible tools.
Servers with identity are automatically wrapped with atmos auth exec -i <identity> -- so that credentials are injected when the IDE starts the server process.
Usage
atmos mcp export [flags]
--output,-o- Output file path. Default:
.mcp.json
Examples
# Export .mcp.json in the current directory
atmos mcp export
# Export to a custom path (e.g., for Cursor)
atmos mcp export --output .cursor/mcp.json