Use this guide when you want Codex to invoke modly-mcp globally from PATH.
modlyandmodly-mcpinstalled as package binaries frommodly-cli-mcp- either:
- a
~/.codex/config.tomlentry that invokesmodly-mcp, or - the equivalent
codex mcp add modly -- modly-mcpsetup
- a
- pointing Codex at the source checkout of
modly_CLI_MCP - configuring commands such as
node /path/to/checkout/src/mcp/server.mjs - inventing additional headless support outside the real package binaries
Install it globally from your valid distribution channel for this package (for example a private registry or a .tgz artifact). The package name is modly-cli-mcp, and the published binaries are modly and modly-mcp.
Example with npm:
npm install -g modly-cli-mcpIf your team distributes a tarball, use the corresponding .tgz file instead of the registry package name.
modly --help
modly-mcp --helpBefore running business operations from CLI/MCP, verify that FastAPI responds on GET /health. Do not assume readiness.
Example:
modly health --json --api-url http://127.0.0.1:8765codex mcp add modly -- modly-mcpCopy the canonical template or replicate this content:
[mcp_servers.modly]
command = "modly-mcp"Template shipped in this package:
If you need local environment overrides for the Codex-launched server, add them under [mcp_servers.modly.env] in ~/.codex/config.toml:
[mcp_servers.modly]
command = "modly-mcp"
[mcp_servers.modly.env]
MODLY_API_URL = "http://127.0.0.1:8765"
# MODLY_AUTOMATION_URL = "http://127.0.0.1:8766"
# MODLY_PROCESS_URL = "http://127.0.0.1:8766"
# MODLY_EXPERIMENTAL_RECIPE_EXECUTE = "1"- Execution surface taxonomy:
workflow-run/process-runandmodly.workflowRun.*/modly.processRun.*are the visible canonical run primitive surfaces.modly.capability.executeandmodly.recipe.executeare orchestration wrapper surfaces over those run primitives; recovery/polling stays on the canonical run status surfaces.generate/jobandmodly.job.statusremain legacy compatibility surfaces.
modly-mcpis the supported MCP stdio binary.- Codex stores global user-level MCP configuration in
~/.codex/config.toml. - FastAPI-backed surfaces use
MODLY_API_URL(defaulthttp://127.0.0.1:8765). - capabilities and process-runs use the Electron automation bridge on
:8766. - By default the installed package derives those bridge URLs from
MODLY_API_URL. - Override bridge endpoints only when needed with
MODLY_AUTOMATION_URLandMODLY_PROCESS_URL. modly.recipe.executeis experimental, opt-in, hidden by default, and disabled unless the Codex-launched server environment setsMODLY_EXPERIMENTAL_RECIPE_EXECUTE=1.- Without
MODLY_EXPERIMENTAL_RECIPE_EXECUTE, the recipe tool is not advertised in the MCP catalog. - Consumer repositories and user configs must not point Codex at the source checkout of
modly_CLI_MCP; they should use an installed package available inPATH. - If you want each repository to control its own installation, use the repo-local guide in
docs/install/codex-repo-local.md.