Skip to main content
Skip to main content

ZCP MCP tools

Most app work should be phrased as an outcome: build this, fix that, deploy and prove it. Operation names matter when you configure agent-client policy, debug an MCP integration, build a custom client, or use ZCP MCP pragmatically as a set of project-scoped Zerops tools.

ZCP MCP is the MCP server exposed by the zcp binary. Any MCP-capable client can connect to it and call tools such as zerops_discover, zerops_logs, zerops_events, zerops_deploy, or zerops_verify.

Tool-only use

The MCP server exposes operations. It does not, by itself, decide the whole app lifecycle.

Claude Code with the generated workflow uses its instructions to decide sequencing: inspect state before changing things, choose the runtime target, use existing services or create missing ones, deploy, read failure evidence, verify requested behavior, and stop with proof or a blocker.

Tool-only use is valid when you want a custom MCP client, script, dashboard, policy-gated agent, or narrow operational task. In that setup, your integration owns the sequencing:

  • which project services are in scope,
  • when a deploy is allowed,
  • what counts as verification,
  • which logs or events should be read after failure,
  • when to ask a human,
  • when to stop.

Tool-level gates still apply. Service deletion requires explicit named approval, and destructive import override requires an acknowledgement of the exact targets.

If you use Claude Code but do not want the generated workflow guidance, keep the MCP connection and remove the ZCP-managed workflow block from CLAUDE.md, or keep your own policy outside the ZCP markers. What you lose is the generated instruction layer that makes the agent plan around live state, deploy with bounded retries, verify behavior, and report proof or a concrete blocker.

Generated files and workflow state are documented in Workflows in depth.

What the tools can do

AreaToolsTypical use
Discoverzerops_discoverRead services, service metadata, env-var keys, and project topology.
Observezerops_logs, zerops_events, zerops_verify, zerops_processDiagnose deploys, read runtime/build evidence, run health checks, and watch async processes.
Deployzerops_deployPush source through Zerops build/deploy pipeline and return build/deploy evidence.
Configurezerops_env, zerops_subdomain, zerops_scale, zerops_manageChange env vars, public subdomain access, scaling, lifecycle, reload/restart, and storage attachment.
Import/exportzerops_import, zerops_export, zerops_preprocessImport project/service YAML, read export YAML, and expand Zerops preprocessor expressions.
Workspacezerops_mountMount or unmount runtime filesystems in remote setup.
Workflowzerops_workflowTrack, recover, or configure workflow sessions and packaging/export flow.
Destructivezerops_deleteDelete one named service after explicit user approval.

Recipe-authoring and ZCP-internal maintenance operations are intentionally out of scope for this public reference.

Read-only operations

OperationPurpose
zerops_discoverRead services, ports, env-var keys, and current state.
zerops_exportRead platform project/service export YAML and service metadata.
zerops_logsRead runtime/build logs filtered by service, severity, time, or search.
zerops_eventsRead service activity, deploys, builds, scaling, and failures.
zerops_verifyRun service health, recent error log, and HTTP-readiness checks.
zerops_knowledgeFetch ZCP MCP guidance or platform knowledge for the current state.
zerops_processCheck a known async process; cancel is a mutating action.

Mutating operations

OperationPurpose
zerops_deployShip code through the Zerops build and deploy pipeline.
zerops_envRead, set, delete, or generate env vars and local .env files.
zerops_manageStart, stop, restart, reload, or connect storage.
zerops_scaleChange CPU, RAM, disk, CPU mode, or container autoscaling where supported. HA/NON_HA is set at service creation.
zerops_subdomainEnable or disable public subdomain access.
zerops_deleteDelete a service. Explicit named approval is required.

Operational setup

OperationPurpose
zerops_workflowTrack, recover, or configure workflow sessions; also carries the package-running-service export flow.
zerops_importImport project/service definitions. Destructive override is gated.
zerops_mountMount or unmount runtime filesystems in remote setup.
zerops_preprocessExpand Zerops preprocessor expressions.

Remote and local tool differences

The operation names are the same, but the filesystem and network boundary differ.

AreaRemote setupLocal setup
FilesRuntime files through SSHFS or remote containers.Local working directory.
Deploy sourceRemote service or batch deploy inside Zerops.Local workingDir.
Dev serverRemote setup can run or inspect remote dev processes.Your local tool owns the dev server.
Env bridgeEnv vars are already available in Zerops..env generation resolves Zerops references for local use.
GitWorkspace-managed credentials.User's local git credentials.

Confirmation gates

Two operations require explicit care:

  • Service deletion requires explicit user approval in the current conversation, by service name.
  • Destructive import override first refuses and names what would be replaced; a second call must acknowledge the same targets.

See Tokens and credentials for the user-facing confirmation flow.