MCP tools

Reference the repo, env var, sandbox, automation, model, log, and agent-run tools exposed by the Mogplex MCP endpoint.

Mogplex exposes 23 user-scoped tools. The client loads their current JSON schemas through tools/list, validates arguments locally when supported, and sends each call to the same service layer used by the v1 API.

Discovery and sandboxes

ToolScopeWhat it does
mogplex_list_reposreadList accessible repos and the GitHub installation id used by automations.
mogplex_list_agentsreadList user-owned and preset agents available to Flow nodes.
mogplex_list_modelsreadList enabled model ids.
mogplex_list_sandboxesreadList active or recent sandboxes, optionally by repo or status.
mogplex_create_sandboxwriteCreate or reuse a repo and branch sandbox.
mogplex_get_sandbox_logsreadRead install logs, dev-server logs, errors, and lifecycle events.

mogplex_create_sandbox consumes the existing launch event stream and returns when the launch succeeds or fails. It does not create a separate status-polling loop.

Creating a Sandbox through MCP does not create a Control Worktree. The public MCP catalog does not currently expose Worktree creation, Diff, Rebase, Archive, Prune, or worker-launch tools. Use the shipped Control Worktrees surface for those actions. See Control Execution Environments for the resource boundary.

Environment variables

ToolScopeWhat it does
mogplex_list_env_varsreadList env var keys, targets, and types on the repo's linked Vercel project.
mogplex_set_env_varwriteCreate or update an env var by key, optionally scoped to targets.
mogplex_delete_env_varwriteDelete every entry of an env var key.

Env var tools operate on the Vercel project resolved for the repo. Listing never returns values, so agents can reconcile keys without pulling secrets into model context. When target is omitted, mogplex_set_env_var updates the value of every existing entry with the same key, or creates one for all targets (production, preview, development) when none exists. Passing target when a key has multiple target-specific entries returns a CONFLICT error — delete the key and recreate it instead. For repos whose environment sync mode pulls from the linked Vercel project, running sandboxes pick up changes on restart or resume; repos using manual variables do not inherit these changes.

Automations

ToolScopeWhat it does
mogplex_list_automationsreadReturn a bounded, cursor-paginated page of graph-free summaries.
mogplex_get_automationreadRead one automation with its complete draft and published graphs.
mogplex_create_automationwriteCreate a draft, optionally from a complete validated graph.
mogplex_update_automationwriteUpdate metadata or replace the complete validated draft graph.
mogplex_publish_automationwriteValidate, version, and activate the draft.
mogplex_set_automation_modelwriteSet or clear an agent node's model override.
mogplex_trigger_automationwriteRun an active published automation for an owned repo.
mogplex_list_automation_runsreadList recent executions and node or dispatch summaries.
mogplex_get_automation_run_logsreadRead node runs, dispatch events, AI calls, errors, usage, and review findings.
mogplex_rerun_pr_reviewwriteQueue another Mogplex PR Review run for a pull request.

Automation listing defaults to 50 records and accepts a maximum limit of 100. Pass nextCursor from one response back as cursor. The list response omits graphs; call mogplex_get_automation only when you need the full draft or published graph.

Agent runs

ToolScopeWhat it does
mogplex_start_agent_runwriteStart a Codex or Claude Code run in a repo sandbox.
mogplex_get_runreadRead current run state and metadata.
mogplex_get_run_eventsreadRead append-only run events.
mogplex_cancel_runwriteRequest cancellation of an active run.

Response shape

Successful calls include readable text for conversational clients and structuredContent for clients that consume JSON directly. Tool errors return the MCP error envelope with a stable machine-readable code such as BAD_REQUEST, UNAUTHORIZED, FORBIDDEN, NOT_FOUND, or CONFLICT.

Call tools/list for the authoritative current JSON schemas. The Mogplex MCP endpoint reference documents the transport envelope and direct JSON-RPC request shape.

Edit on GitHub

On this page