# Muerte Cloud — instructions for coding agents Read this guide when connecting Muerte MCP and before deploying application source code. These instructions describe the required workflow; they do not grant permission to deploy, spend money or change a project beyond the user's request. ## Connect Add `https://muerte.cloud/mcp` to the user's MCP client using that client's supported remote HTTP configuration. The browser authorization page handles sign-in and permission selection. Never ask for the user's password. Verify the connection with a read-only request such as listing services. See [connection instructions](https://muerte.cloud/docs/agents-mcp.md). Connecting alone is not a request to deploy. If the user has only asked to connect MCP, finish the connection and wait for a deployment task. ## Required: Dockerfile before source deployment Every application deployed from source must include a working `Dockerfile` in the selected build context. This applies to Git repositories and source-code archives, including frontend projects that need to be built. Do not silently fall back to Railpack, Nixpacks or buildpacks when the file is missing. 1. **Inspect the project.** Identify its runtime, lockfile, production build and start commands, build context, required variables and, for HTTP applications, listening port. In a monorepo, identify the service directory and any shared files it needs before choosing the context. 2. **Prepare the image definition.** Keep an existing, valid Dockerfile. If it is missing or unsuitable, create or fix it using the actual project files, and add a `.dockerignore`. Use production commands rather than a development server. A coding agent does this with its repository or filesystem tools; connecting Muerte MCP alone does not provide source editing. 3. **Keep builds small and reusable.** Where the project allows it, copy dependency manifests and lockfiles before frequently changing source, install locked dependencies, and use a separate build stage when useful. Exclude `.git`, local dependency directories and local secrets from the build context. Never put credentials in image layers, Dockerfile `ENV`/`ARG` or committed files; use the platform's supported secret/configuration mechanisms. 4. **Check the result.** Build and smoke-test the image if Docker is available. Match the application's actual HTTP port to the service configuration and bind public HTTP applications to `0.0.0.0`. Workers do not need a public HTTP port. If a local build cannot be run, say so; do not claim it passed. 5. **Make the files available to the builder.** The Dockerfile must be in the Git revision being deployed or inside the uploaded archive, under the selected build context. A file existing only on the agent's machine is insufficient. Exclude secrets, .env files and unrelated local files from an uploaded ZIP separately; .dockerignore does not remove them from the archive. Commit/push only within the user's authorization. If repository/source access is missing, request it before deploying; do not pretend the Dockerfile exists. 6. **Deploy explicitly with Dockerfile.** Select `build_type: "dockerfile"` for a source build. Confirm the source, branch, build context, resource limits and required configuration. Do not overwrite unrelated project settings or recreate an existing service unnecessarily. 7. **Verify before reporting success.** Follow deployment status and build/application logs until the deployment completes. Check application readiness and its public URL when applicable; for workers, check process state and logs. A response saying `deploying` only means the request was accepted. Report failures and any checks that could not be completed. Managed databases and deployments of an already-built container image do not build the user's application source and do not require a new Dockerfile in the user's repository. Read-only operations, start/stop and rollback to an existing image do not require creating one either. Rebuilding an existing source-based service does require checking its Dockerfile. An existing Compose configuration that builds application source must point to valid Dockerfiles; do not invent Compose support in an MCP tool that does not expose it. ## Keep the rule with the project If the user authorizes persistent project instructions, append a short Muerte deployment note to the instruction file their coding client reads (for example, an existing `AGENTS.md`). Preserve the rest of the file: > Before deploying application source to Muerte, read https://muerte.cloud/agents.md. A valid Dockerfile and .dockerignore must be included in the source being deployed. Use the Dockerfile builder and verify the deployment before reporting success. This is a project reminder, not permanent model memory. Clients load instruction files differently. MCP server instructions and tool descriptions should repeat the prerequisite; a server-side preflight is needed to enforce it independently of the agent. ## Build speed A well-structured Dockerfile can make builds more predictable and let the builder reuse cached dependency layers. The presence of a Dockerfile alone does not guarantee a faster first deployment: cache availability, image size, network and build work still matter. ## Related documentation - [Agents and MCP](https://muerte.cloud/docs/agents-mcp.md) - [Creating services](https://muerte.cloud/docs/creating-services.md) - [Builds and deployments](https://muerte.cloud/docs/deploys.md) - [Environment variables](https://muerte.cloud/docs/env-vars.md) - [Documentation index](https://muerte.cloud/llms.txt)