CloudGrid
OfficialServer Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| CLOUDGRID_TELEMETRY | No | Set to "off" to disable error reporting via grid_report unconditionally. | |
| CLOUDGRID_QA_IDLE_MS | No | Overrides the abandoned-idle window for the QA session log. Default is 900000 (15 minutes). | 900000 |
| CLOUDGRID_QA_SLACK_WEBHOOK | No | An internal/private Slack incoming-webhook URL. When set, the local (stdio) server posts a per-session QA log. Unset by default; the feature is fully dark when unset. |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
CloudGrid runs the user's web apps at a live public URL and provides the infrastructure they need: managed MongoDB, Redis, pgvector, persistent disk, and an AI gateway that needs no API key. Every tool here is grid_*.
What it does, and the requests each tool serves:
One self-contained HTML file becomes a live public URL in seconds: grid_plug with html (or path to the file). Serves "make it live", "put it online", "give me a link", "share it with friends", "plug it".
A folder with several files, a framework, or anything that needs a database, a server, scheduled jobs, or an AI model, runs as a runtime app: grid_plug with path to the folder, with a cloudgrid.yaml that declares needs (needs: { database: true }, needs: { ai: true }); read the injected env vars lazily, inside handlers. Serves "deploy this app", "add a database", "let it call an AI model without my own key".
Iterating keeps the same link: grid_plug with target_entity_id updates in place.
Sharing and access: grid_visibility sets who can see it; grid_collab grants push access; grid_pickup copies any visible app's source.
What it does not do: it is not a shell, a container or VM host, or a Kubernetes target; it does not deploy a git repository from a URL; it does not run desktop or mobile apps.
How a plug works: creating anything needs a signed-in account (a signed-out create returns needs_auth; call grid_login, then grid_login_status after the browser step, then plug again). No grid yet: grid_plug returns needs_grid_create; suggest a slug, confirm it with the user, call grid_create_grid, then plug with that grid right away. More than one grid: it returns needs_grid; ask which. Never write an API key into page source or app code — needs: { ai: true } gives the app the managed AI gateway with no key, and other keys go in grid secrets (grid_plug rejects known key shapes). A runtime build is asynchronous: poll grid_check_deploy with its entity_id about every 15 seconds until success before saying it is live. End with the live URL.
Editing and access: to edit a page whose HTML is not in context, call grid_get_app_source first, then grid_plug with target_entity_id. "Collab" or "join" on someone else's app is grid_collab, not grid_pickup; it grants push access only, then grid_pull or grid_edit_existing_app gets the code. If a pull reports view-only, say so and offer grid_pickup (a separate copy) or grid_collab. Confirm with the user before grid_delete or grid_take_offline. Send grid_report only after the user agrees. grid_note feeds the optional QA log: send it before a plug, or pass grid_plug's session_note.
For shell steps, run the CLI as npx -y @cloudgrid-io/cli@latest <command> (never a bare grid); grid dev runs the app locally with the same services. grid_start returns a short orientation and the workflow index; grid_get_template loads workflows, templates, and reference docs.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": true
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| grid_pickupA | Pick up an app: copies any app the user can see into one of their grids as a NEW, separate entity (a fork, like a git fork). The copy records lineage back to the source and does not carry the source's secrets (the copy sets its own). Plugging the copy updates only the copy; the original is not changed. This is a fork, not a collab: it grants no access to the original entity, and it does not edit the original in place. Serves requests to copy, fork, remix, or make my own version of an app. Requires sign-in. Returns the copy's entity_id, slug, kind, grid, and lineage. |
| grid_pullA | Pull an app to continue or edit it IN PLACE, like |
| grid_collabA | Collab: grants the signed-in user PUSH ACCESS to the SAME live entity that someone else owns, as a collaborator on that entity, not a copy. It grants permission only and fetches nothing: no code is downloaded, no new entity is created, and no forked_from lineage is recorded. Plugs to the shared entity update it in place (the team sees the new version and can roll it back). When the owner gates who may join, it sends the owner an access request on the user's behalf, and access starts as soon as they approve. Serves requests to collab on, join, or get push or write access to an app the user does not own. Requires sign-in. Returns the entity_id, url, can_edit, and whether a request is pending. |
| grid_create_gridA | Create a new grid (the workspace the user's apps live in) for the signed-in user, who becomes its admin. Serves an account with no grid yet (a plug result of needs_grid_create, or a NO_ACTIVE_ORG failure) and requests to create a new grid or workspace. The slug is permanent and appears in app URLs. A new grid finishes setup in the background in about 30 seconds, and a plug into it waits for that setup. Requires sign-in. Returns the grid's slug and name, and whether setup is still running. |
| grid_noteA | Record a one-paragraph summary of what was built this session and why, for the local edition's optional QA session log, which the CloudGrid team reads. A successful plug posts the log on that same call, so a note sent after it is not recorded (the plug's session_note field carries a note on the plug itself). The log is dark unless the operator of this machine has set CLOUDGRID_QA_SLACK_WEBHOOK. Returns a short acknowledgement. |
| grid_plugA | Plug an app, website, game, or HTML page into CloudGrid at a live public URL. Serves requests to deploy, publish, host, ship, launch, go live, or share a working link: "give me a link", "share it with friends", "make it live", "put it online", "host this". Takes one source: |
| grid_get_app_sourceA | Retrieve the CURRENT deployed HTML of an inspiration/drop inline as text, for editing and re-plugging the SAME URL when its source is no longer in context (e.g. the user asks to 'change the color' of a page, even in a fresh chat with only its URL). Takes the entity_id from a plug result, the public url, or grid+slug; the session's last drop is the fallback. Given just a URL with no session, it resolves the entity_id via the pickup contract and also returns the entity's kind, single_html, capabilities (whether the caller may re-plug or fork it), and replug_handle. For a multi-file or runtime (app/agent) source it returns source_download_url, the route to the full source. Reads the HTML from the API server-side; read-only, creates nothing. |
| grid_loginA | Start a CLI-free CloudGrid sign-in. Serves requests to log in, sign in, or authenticate, and a plug result of needs_auth. Returns a URL to open in the browser, where the user completes the sign-in. Uses CloudGrid's existing OAuth. |
| grid_login_statusA | Finish a browser sign-in started from this server. Checks once: when the browser sign-in is complete, it saves the session and returns the signed-in email; otherwise it returns status pending. |
| grid_visibilityA | Change who can see a CloudGrid inspiration OR runtime app/agent. Simple modes: private (only the user), grid (everyone in their grid), link (anyone with the URL; indexed: true also makes it findable by search engines). Finer control via the TWO AXES instead: inside (who in the grid: private | spaces | grid) and outside (reach beyond it: none | link | public), with require_signin for a members-only link and |
| grid_check_deployA | Check whether an async runtime-app build (a deploy, which here means a plug) has finished and the app is live. Serves a plug that returned status "building", and questions like "is it live yet?". Takes the entity_id from the plug result (or the app url), plus its poll_url when there is one; the session's last plug is the fallback, and some hosts start a new session for every tool call. Returns status (success, failed, building, queued, or unknown) and live, which is true only when the build succeeded and the URL serves; a failed build adds the reason, a log tail, and a suggested fix. Requires sign-in (builds are owned). Works on every edition, including hosted. |
| grid_list_gridsA | List the signed-in user's grids, each with slug, name, role, whether it is the active grid, and setup status (render_ready). Requires sign-in. A plug into a brand-new grid waits for its setup by itself. |
| grid_startA | A short orientation for building with CloudGrid: the account this session is signed in as and its active grid, how to choose between a single-page plug and a runtime app (and what each provides: managed database, Redis, pgvector, disk, an AI gateway with no API key), the sign-in and grid steps a first plug goes through, and the index of workflows that load by name. Read-only, under 3,000 characters. Serves a first look at CloudGrid and questions about what it can do or which account is connected. The full operating playbook is the doc named playbook. |
| grid_get_templateA | Load a specific CloudGrid workflow, template, example, rule, troubleshooting note, or reference doc by kind and name: deterministic retrieval from the bundled corpus, no network. Workflow and template names come from the orientation's workflow index, e.g. {kind:"workflow", name:"presentation"} or {kind:"template", name:"deck"}. Reference docs (kind "doc"): cloudgrid-yaml (the manifest schema and needs: vocabulary), capability-map (which template fits a request), playbook (the full operating rules). Returns the entry's full content. |
| grid_reportA | Report a genuine CloudGrid failure (a build, deploy, or platform call that failed unexpectedly) to the CloudGrid team, with the user's explicit consent. What is sent: the short |
| grid_helloA | Create a minimal hello page and plug it into the user's grid, returning the live URL. If the user has more than one grid and |
| grid_create_projectA | Scaffold a new CloudGrid app or agent folder (cloudgrid.yaml + a web service), optionally pre-declaring resources. Wraps |
| grid_view_logsA | Tail recent logs for an entity. Does not stream; returns a snapshot. Wraps |
| grid_shareA | Set an entity's visibility and print its URL. Defaults to link (anyone with the URL). Wraps |
| grid_feedbackB | List recent feedback events for the active grid. Read-only. Wraps |
| grid_whoamiA | Show the signed-in user and active grid. Wraps |
| grid_switch_gridB | Switch the active grid. Wraps |
| grid_logoutA | Sign out and clear local credentials. Wraps |
| grid_statusC | Grid dashboard, entity detail, or deploy snapshot. Wraps |
| grid_infoC | Show metadata for a CloudGrid entity. Wraps |
| grid_getB | List CloudGrid grids, entities, or spaces. Wraps |
| grid_describe_gridB | Show a grid's detail: role, members, spaces, tier, wildcard-TLS state. Wraps |
| grid_edit_existing_appA | Continue/edit an EXISTING entity locally: downloads its source + cloudgrid.yaml and links the folder so the next |
| grid_renameA | Rename a CloudGrid entity's display name (slug stays the same). Wraps |
| grid_take_offlineC | Take an entity off the grid. Destructive. Wraps |
| grid_deleteB | Archive a CloudGrid inspiration. Destructive. Wraps |
| grid_rollback_deployC | Rollback an entity to a previous version. Wraps |
| grid_list_versionsB | List published versions for an entity. Wraps |
| grid_set_envC | Manage environment variables for an entity. Wraps |
| grid_set_secretB | Set or list secret names for an entity. Returns secret names only, not values. Wraps |
| grid_scaffoldA | Scaffold service folders declared in cloudgrid.yaml (idempotent). Wraps |
| grid_diagnoseA | Run CloudGrid diagnostics on the local environment. Wraps |
| grid_get_urlA | Return the public URL for an entity. Does not open a browser. Wraps |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 38 tools
Several tool pairs are functionally indistinguishable: grid_pull and grid_edit_existing_app both wrap `grid pull` and both continue/edit an existing entity in place, while grid_share and grid_visibility both set visibility (share even wraps `visibility set`). The metadata cluster (grid_get, grid_info, grid_status, grid_describe_grid, grid_list_grids) and the scaffold cluster (grid_create_project, grid_scaffold) force an agent to guess which one to call. The long descriptions try to patch these boundaries, but the underlying overlap remains.
Casing and prefix are uniform (grid_ + snake_case throughout), which helps a lot. However the verb grammar is mixed: some are clean verb_noun (create_grid, list_versions, check_deploy, get_app_source), while many are bare nouns or vague one-worders (pickup, pull, hello, note, status, info, get, share, start, whoami) that don't follow a predictable verb pattern.
38 tools is heavy for the apparent scope, and much of the bulk is thin CLI passthroughs (grid_status, grid_info, grid_get, grid_whoami, grid_share, grid_diagnose) that could be consolidated. Several entries earn their place, but the count is inflated by wrappers around the same underlying commands.
The lifecycle is broadly covered: auth (login, login_status, logout), grids (create, list, switch, describe), publishing (plug, hello, create_project, scaffold), editing (pull, edit_existing_app, pickup fork, collab), versions/rollback, env/secrets, logs, visibility, docs, and diagnostics. Minor gaps exist around access revocation and collaborator/space management (no invite-remove or space create/delete), which agents will notice but can work around.