# Kilntainers

Prepare the MCP endpoint URL that lets Sandcovery run sandboxes on your own Kilntainers server.

Sandcovery runs sandboxes on a Kilntainers server you run yourself. Kilntainers is free software under the MIT license, so it bills nothing, and the server, or the Modal or E2B account behind it, bills its own compute.

- **MCP endpoint URL**: the https address of your server's MCP endpoint, such as `https://kilntainers.example.com/mcp`. Kilntainers serves plain HTTP at `/mcp` and checks no credential, so put a TLS proxy in front of it and keep the URL private, since anyone who holds it can run sandboxes on your server.

Start the server with `kilntainers --transport http`. Kilntainers fixes each sandbox's size, image, and network when the server starts, and Sandcovery cannot change them, so it sends only creates for size 2x4 that allow no egress. Start the server with 2 CPUs and 4 GiB, such as `--cpu 2 --memory 4g` for Docker, and without `--network`, so the sandboxes match the size and egress Sandcovery reports.

If a proxy forwards requests to a server on `127.0.0.1`, the server accepts only the host names `127.0.0.1`, `localhost`, and `[::1]`, so have the proxy send `Host: 127.0.0.1:8435` or start the server with `--host 0.0.0.0`.

Sandcovery needs a shell with GNU coreutils and `find` in the sandbox, such as the default `debian:bookworm-slim` image has, so use the Docker backend, which also runs Podman with `--engine podman`, or the Modal or E2B backend, and not `go_busybox` or `wasm`. Keep the server's `--output-limit` at 1 MiB or more. A command whose output passes that limit fails, and so does a command longer than 128 KiB.

Each sandbox is one MCP session that lasts until Sandcovery deletes it at its TTL or your server stops. The Modal and E2B backends also end each sandbox at their own lifetime, 3600 seconds by default, so set `--sandbox-timeout` for Modal or `--e2b-sandbox-timeout` for E2B to the longest TTL you use. Kilntainers cannot list sandboxes, so Sandcovery cannot find a sandbox whose creation it lost, and that sandbox runs until you restart the server.
