Skip to content

Give Claude Code its own cloud over MCP

How Fullsea's MCP server lets Claude Code, Cursor and Codex deploy apps, create databases and read logs on a real cloud — and why the destructive calls still wait for a person.

Fullsea engineering6 min read

  • mcp
  • claude-code
  • agents

Coding agents have become very good at the part of the job that happens in an editor. Ask Claude Code for an API with a Postgres schema and it writes one, runs the tests and fixes what fails. Then it stops at the edge of your laptop: someone still has to find a place to run it, create the database, set the environment, read the logs when the first deploy crashes, and remember to take a backup before the next migration.

The Model Context Protocol (MCP) is how we let the agent walk past that edge. Fullsea is an MCP server: connect your agent to it with an API key and the cloud becomes a set of tools the agent can call — the same tools Fullsea's own builder and co-pilot use. This post is about what that looks like, and about the decisions that made the tools work well for an agent rather than for a person reading API docs.

Connecting it

Create an API key with the mcp scope in the dashboard (Settings → API keys), export it, and add the server:

sh
export FULLSEA_API_KEY=fsk_your_api_key
claude mcp add --transport http fullsea https://fullsea.io/mcp \
  --header "Authorization: Bearer $FULLSEA_API_KEY"

Cursor and Codex take the same URL and header in their own config files; the MCP setup guide has the snippets. The server speaks Streamable HTTP and answers with plain JSON — no event stream to keep open — so it works through ordinary proxies and from CI.

Then ask in plain words: "show my plan and what I am running", "deploy this repository on Fullsea with a Postgres database", "why did the worker restart last night?".

What the agent can reach

The tools cover the whole account: projects, templates and stacks, apps of every kind (web services, private services, workers and cron jobs), their environment variables, databases and the SQL inside them, volumes, backups, custom domains, logs, metrics, Kubernetes events and alert rules.

Behind every tool is the same service layer the dashboard and the REST API use. An agent cannot do anything a person in the console could not: the plan's limits, the quotas, the tenant isolation and the audit trail apply to a tool call exactly as they apply to a click. That one decision removed a whole class of problems — there is no "agent mode" with its own rules to keep in sync.

Designing tools for an agent

An API built for programs and a tool built for a model have different users. A program knows the id it wants and checks the status code; a model knows the name you said in the chat and reads the words it gets back. Four choices mattered most.

Names, not ids

People say "the shop database", not db_7f3a…. Every argument that names something accepts its id, its slug or its name. One match is the answer. Several matches — two projects can share a name — come back as an error listing each candidate with its kind, slug and id, so the agent can ask you or pick by id. No match comes back with up to five near misses ("did you mean…?"). A partial match is never acted on: guessing which "api" you meant is how an agent deletes the wrong app.

Wait for the outcome

Creating an app or a database starts work that takes seconds to minutes. If the tool returned "accepted" and left, the agent would poll, or worse, assume success. Tools that start work wait for it — up to a limit the agent can change — and then say how it ended: succeeded with the app's URL or the database's connection details, failed with the error and the last lines of the build log, or still running with the call that follows it up. A failed first deploy tells the agent to fix the code and deploy again, not to create a second app.

Errors are sentences with a next step

A failure the agent caused is a tool result it can read, never a protocol error it cannot. A refusal such as "size xlarge is not included in your plan", followed by where to see what the plan does include, is something a model can act on — and something it can repeat to you verbatim. Quota errors carry the numbers: what you use, what you asked for, what the plan allows. Arguments that do not match the schema are refused with a sentence naming the field the tool expected, so a typo costs one retry, not a confused conversation.

Say when to use it, and what it costs

Each tool's description says when to reach for it, what it answers, what it may cost and how careful it has to be. Enums come from Fullsea's catalog — the sizes and the database engines that exist — so the agent does not invent a size or an engine.

Secrets stay out of the context window

An agent that can read environment variables can leak them into a transcript, a log or a commit. So it cannot: listing variables returns their names, never their values. Database credentials are handed to apps as environment variables on the private network, and the agent wires them by name. Generated passwords for stacks stay hidden until a person reveals them.

The destructive calls wait for you

Giving an agent a cloud only works if it cannot quietly delete your data. Every tool has a tier:

Tier What it covers What happens
1 — read listing, logs, metrics, schemas runs at once
2 — routine creating, deploying, restarting, setting variables, taking a backup runs within your plan's limits
3 — destructive deleting apps, databases, volumes or stacks, restoring a backup, removing a domain, unsetting variables needs you

Some calls move to Tier 3 because of their arguments: a scale-up of a gigabyte or more, SQL that drops, truncates, deletes or alters, and opening a database to the internet.

For your own agent on an API key, a Tier-3 call without confirm: true changes nothing. It answers with the impact in words — what is removed, whether it can be undone, what it does to your plan — and how to confirm. Agents are expected to show you that and ask before calling again with the confirmation. Inside Fullsea's own builder the call goes further: it waits on an Approve / Reject card in the chat, and only your click lets it through. The companion post on sandboxing goes into how those approvals are matched to exactly one change.

What an agent on an API key deploys

Your own agent works on your machine, and Fullsea does not reach into it. Over MCP it deploys what a cloud can fetch: a container image, or a Git repository Fullsea can clone over HTTPS, built from its Dockerfile or recognised as a static site, a Node app or a Python app. Writing code inside Fullsea — in a sandboxed workspace with a live preview — is what the builder does.

In practice the two combine well: write and test locally with your agent, push to your repository, and ask the same agent to deploy it, create the database, set the variables and check the logs.

Try it

Connect your agent with the snippet above and start with something read-only: "use the fullsea tools to show my plan and what I am running". Then deploy something small, and ask it what went wrong if anything does. If you would rather not run an agent yourself, describe the app on the homepage and Fullsea's builder does the same work in its own sandbox.

Build something real today.

Describe an app and Fullsea builds it, deploys it with its database and keeps it running.