Skip to content
neatploy.
Reference

CLI, SDK and MCP

All official Neatploy developer interfaces speak exclusively to the public /v1 REST and SSE API. They enforce the exact same RBAC permissions and project scopes as the web dashboard.

CLI (neatploy)

The neatploy Go binary supports macOS, Linux, and Windows:

  • Auth: neatploy login uses a browser device-code flow (issuing a revocable 90-day token). In CI, set NEATPLOY_TOKEN using an API token created in Account → API tokens.
  • Deploy & manage: link, up (local tarball upload up to 500 MB), deploy, rollback, logs -f (--build for build logs), vars, run -- <cmd>, cron run, db connect, sandbox, status, and gpus.
  • Safety: Because deletions are immediate and permanent, the CLI omits destructive project and service delete commands in v1 (sandbox destroy prompts unless --yes is passed).

TypeScript SDK (@neatploy/sdk)

The TypeScript SDK focuses on sandboxes first, making it straightforward for AI agent frameworks and automation pipelines to call create, exec, shell, files, openPort, checkpoint, fork, and destroy programmatically using an API token.

MCP Server (mcp.neatploy.com)

AI coding clients can connect to https://mcp.neatploy.com using OAuth 2.1 with dynamic client registration (30-day grants scoped to selected organisations, revocable from Org → Connected apps).

  • Read tools: inspect projects, services, status, logs, metrics, and deployments. Secret values are never returned.
  • Write tools: deploy, redeploy, rollback, set variables, create databases, and create/exec sandboxes.
  • Safety: The MCP server exposes zero delete tools, and every call is recorded in the organisation audit log with the client name.