From the team behind aidrop.it — one workspace to build, host, and keep changing your code.

Deploy a Claude Code app by giving the same terminal session a repository, a remote deployment tool, and a short production contract. Claude Code can write the files, push the chosen revision, start the build, and read the result. You still decide what becomes public, where data lives, and when the agent must stop.

The useful boundary is simple: code moves through Git, while deployment state moves through MCP. That separation leaves a commit you can inspect and a service record the next session can read. It also prevents a chat transcript from becoming the only account of what reached production.

Define the deployment before asking Claude Code to run it

Name one user path, the start command, container port, health path, durable data store, and required value names. Claude Code can discover some of these from the repository, but it cannot decide which behaviour counts as success or which records may be lost. Put those choices in the task.

Keep the first shape small. One web process and one database are easier to prove than a generated stack with a queue, worker, and staging environment. Deploy your first AI-built app has a fuller first-deploy brief when the repository itself is new.

For a concrete first project, follow the Telegram bot walkthrough from BotFather to a verified reply. For a workspace integration, the Slack bot deployment walkthrough follows one slash command from local code to a hosted response.

Connect a deployment server to the same session

A remote MCP server gives Claude Code typed tools for projects, repositories, builds, logs, and runtime state. Connect it through the client's MCP or plugin flow, approve only the scopes the task needs, then ask the agent to list existing projects and repositories before it creates anything.

The agent still needs a local shell for code. It commits and pushes through Git, then calls the deployment tools against that exact repository. Code should enter a host through Git explains why an uploaded archive or a platform-written commit weakens the release record.

Make Claude Code prove the running result

Ask the agent to poll the build until it reaches a terminal state. On failure, it should read the named stage and bounded log, change one cause, push a new commit, and build again. On success, it should open the public address and test the user path from outside the container.

The final report should include the tracked branch, built commit, image tag, address, health result, and any follow-up work. If the process runs but the request fails, read the runtime before the code before changing the framework or adding infrastructure.

A Claude Code deployment prompt

Paste this after connecting the deployment server. Replace the blanks with facts from your application.

DEPLOY THIS APPLICATION
Repository and branch:
One public user path that must work:
Start command, container port, and health path:
Persistent records live in:
Required value names, never their contents:

Before changing code, list the existing project, repository, and runtime facts.
Push changes through Git. Build the pushed revision with the deployment tools.
Poll until the build succeeds or stops. If it stops, read the stage and log,
make one evidence-backed fix, push, and retry.

Stop before changing credentials, deleting data, weakening a health check,
or creating a paid resource. Report the built commit, image tag, public URL,
health result, and the exact failure stage if the deploy does not succeed.

FAQ

Can Claude Code deploy an app by itself? Claude Code can run the workflow when it has a shell, Git access, and a deployment tool or API. The person approving the work still owns public exposure, credentials, paid resources, data changes, and the definition of a successful release.

Should Claude Code receive production secrets in the prompt? No. Give it secret names and store the values through a trusted dashboard or secret manager. Prompt and tool-call content can remain in model context, logs, or audit records even when the application receives the value safely at runtime.

Why use MCP for deployment? MCP lets the client discover typed operations and structured results instead of scraping a dashboard or guessing command output. A useful deployment server returns the current build, runtime settings, address, and next action so the agent can continue from evidence.

How does aidrop.it connect to Claude Code? Install the aidrop.it plugin, approve Team access in the browser, and use the tools from the same Claude Code session that holds the repository. The agent pushes with Git, calls service_build, polls service_get, and reads service_logs when a build stops.

Before the next deploy

Get it running from the session you are already in

Connect your coding agent over MCP and ask it to deploy. aidrop builds the repository and runs it on a public address; when a build or the app fails, the log says why, and your agent fixes it and builds again.