---
name: mieweb-os
description: Deploy, update, and debug applications on an opensource-server cluster such as os.mieweb.org or os.bionanomics.org. Use when a user points to a cluster homepage for hosting, asks to manage containers or port proxies through the Manager MCP, or wants deployments from GitHub Actions or an AI agent.
---

# Deploy to an MIE OpenSource cluster

## Connect to the requested cluster

Read the **Cluster Manager** link on the homepage the user supplied. Use that HTTPS origin for authentication and API calls. Its hostname can differ from both the homepage and the application's public hostname. If the link points to an unexpected organization, resolve the intended Manager with the operator before signing in.

- **MCP client.** Connect to `<manager-origin>/mcp` using Streamable HTTP. Set `Authorization: Bearer <key>` from the client's secret store using a key issued by that Manager. Call `get_session` to verify the account, then `list_sites` to identify the deployment site.
- **CLI.** Use the installed `mieweb`, or `npx mieweb` with Node.js 22.18 or newer. Its default Manager serves os.mieweb.org. For another Manager, [set its origin first](references/manager.md#choose-another-manager). Run `mieweb whoami` (or `npx mieweb whoami`). If sign-in is needed, run `mieweb login`, or its `npx` equivalent, then verify again. `login` prints a Manager URL and a short code; the user can approve on any device after confirming the code matches the terminal. For a non-interactive runner such as CI, supply a Manager API key through its secret store.
- **HTTP client.** Read the target Manager's `/api/openapi.json` for its REST paths, operations and authentication requirements. The [Manager reference](references/manager.md) describes the same provisioning steps. The optional [connection check](scripts/check_manager.py) can verify MCP access using a saved CLI login.

## Select how the application will run

| Application | Deployment path |
| --- | --- |
| Existing PHP, Python, Go, JVM or other server | Provision a guest with the Manager. Install the application's release into it, or build a compatible OCI image with an enabled service. For a private repository, a generic image plus private artifact delivery keeps the source private. See [Manager operations](references/manager.md). |
| Node application using the `@mieweb/cloud` contract | Use the `mieweb` target, `wrangler.jsonc`, and the OS provider. It syncs the worktree over SSH and reconciles services and environment settings. See [Cloud and automation](references/automation.md). |
| GitHub event or AI-requested deployment | Run a reviewed workflow for that project's deployment path. Launchpad supports disposable previews from registry images. A durable app can use a workflow that updates the existing guest. See [Cloud and automation](references/automation.md). |

For any path, establish the actual release command, HTTP listener, health check, background workers, scheduled jobs, application key and persistent data. When reusable instructions are applied to a project, keep its build commands and test results in that project's runbook.

## Verify and operate

For an authorized experiment, use a uniquely named preview with synthetic data. If a matching name exists, inspect its owner, purpose and attached resources before using it. For a live release record the source commit or image tag/digest, Manager origin, site ID, Manager container ID, job ID and returned application URL. Keep credentials and environment values out of receipts.

After a change, verify the job's terminal state, the container's state, the intended external routes and access behavior, and a meaningful application operation. For a protected site test both a signed-out request and an authorized session. If cluster access or sign-in is unavailable, report the specific boundary between a local app test, a simulated Manager operation, and a live deployment. For subsequent updates, investigations or rollback, follow [Manager operations](references/manager.md#maintain-and-debug).
