> ## Documentation Index
> Fetch the complete documentation index at: https://docs.jadehosting.app/llms.txt
> Use this file to discover all available pages before exploring further.

# How Jade MCP works

> What your AI agent does behind the scenes when it deploys and manages your Jade projects.

Jade MCP connects your AI agent to your Jade account. The agent calls Jade on your behalf, with the same permissions you have in the dashboard. It can inspect your account and projects, deploy from GitHub or a ZIP file, follow deployments, manage environment variables, and connect custom domains.

> [!NOTE]
>
> This page explains what happens behind the scenes. You don't need to run any of these steps or call any tool yourself. Ask your agent in plain language, and it takes care of the rest.

## Sign-in and access

* **Endpoint:** `https://mcp.jadehosting.app/mcp`, over Streamable HTTP.
* **Sign-in:** the first time, your agent opens a browser window where you sign in with your Jade account. Never paste credentials into the chat or a config file.
* **Access:** each request uses a short-lived token for your account. Jade MCP never accepts a raw token from the model.

## Ask in plain language

Once connected, ask your agent to use Jade MCP. For example:

> Show my Jade projects and their current status.

> Show my Jade plan, project count, and RAM limits.

> Deploy `acme/web-app` from GitHub to Jade and tell me when the deployment finishes.

## Deploy from GitHub

The only thing you need to do is connect GitHub to your Jade account, in your [profile](https://jadehosting.app/dashboard/profile).

The agent sends Jade the repository in `owner/repository` form, such as `acme/web-app`, and an optional branch. Without a branch, Jade uses the default branch. The agent can create a new project or update an existing one.

## Deploy a ZIP file

For a ZIP deployment, the agent uploads your project before deploying it:

**1. Get an upload token**

The agent calls `create_upload_token`. Jade returns an upload URL and a short-lived token.

**2. Upload the ZIP**

The agent sends the `.zip` file to that URL with an HTTP `POST`, the bearer token, and the multipart form field `zip_file`. For example:

```bash theme={"dark"}
curl -H "Authorization: Bearer <upload_token>" -F zip_file=@project.zip <upload_url>
```

**3. Deploy**

The agent passes the `sha256` and `size` from the upload response to `project_deploy`.

> [!NOTE]
>
> The ZIP can be at most 200 MiB, and the token expires after five minutes. The agent needs a way to run the upload, such as a terminal.

## Follow a deployment

A deploy call returns as soon as Jade **accepts** the deployment. The project is not live yet. The agent then checks `project_deploy_status` until the deployment finishes or fails. Large projects can take 10–20 minutes.

Only one deployment per project runs at a time.

* **Missing values:** a deployment can pause and ask for environment values it needs, such as an API key. The agent asks you for them and sends them back as a `.env` file.
* **Failure:** the agent explains the error report, including what to change, such as the RAM allocation.
* **Failed update:** if an update fails, the previous version comes back online.

## Environment variables

The agent never reads, prints, or passes your values. It uploads `.env` files by path, and Jade's responses only list variable names.

* The agent uploads a `.env` file with the same upload token, as the multipart field `env_file`, alone or together with the ZIP.
* Jade returns the variable names and an `env_upload_id`. The agent passes that id to a deploy, or to `project_apply_env` to update a running service and restart it.
* Uploaded values are stored as secrets. Other saved variables are kept unless the agent sets `keep_existing_envs` to `false`.
* `project_list_env` tells the agent which variables exist and which are set.
* `PORT` and URLs between your services are left out. Jade sets them for you.

| Limit | Value |
| - | - |
| Variables per upload | 512 |
| Variables in a new project | 64 in total |
| Variables per container | 64 |

If a container would go over 64 variables, Jade rejects the request and leaves the project as it was. The agent then uploads a smaller `.env`, or sets `keep_existing_envs` to `false` so only the file's variables are sent.

## Manage a project

| Action | Notes |
| - | - |
| Start or stop | Stopping affects the whole project. The agent can start a single service, but not stop one. |
| Rename | Rename a project or a service. |
| Recover | Restores the version from before the last update. Available only after an update. |
| Delete | Permanent. Check that the agent picked the right project before you approve. |
| Custom domains | List, connect, and disconnect domains. Connecting needs a paid plan and manual DNS changes. |
| Download source | Get a link to the last deployed source ZIP. The link is valid for five minutes. |

## Available tools

The agent picks these tools on its own. You don't need to call them or know their names.

| Tool | What it does |
| - | - |
| `account_info` | Your plan, project count, and RAM |
| `projects_list` | Your projects and their status |
| `project_info` | One project's details, services, and URLs |
| `create_upload_token` | Upload URL and token for a ZIP or a `.env` file |
| `project_deploy` | Deploy an uploaded ZIP |
| `github_project_deploy` | Deploy a GitHub repository |
| `project_deploy_status` | Progress of a running deployment |
| `project_answer_deploy_env` | Answer the environment values a deployment asks for |
| `project_start` / `project_stop` | Start a project or service; stop a project |
| `project_rename` | Rename a project or service |
| `project_recover` | Restore the version before the last update |
| `project_delete` | Delete a project |
| `project_list_env` | Variable names, and whether each is secret and set |
| `project_apply_env` | Set or remove variables on a running service |
| `project_list_urls` | Connected custom domains |
| `project_connect_custom_url` / `project_disconnect_custom_url` | Connect or disconnect a custom domain |
| `project_download_source` | Link to the last deployed source ZIP |

## Troubleshooting

> [accordion] Authentication does not complete
>
> Restart the Jade MCP connection in your agent and finish the browser sign-in with your Jade account.

> [accordion] A GitHub deployment cannot access a repository
>
> Check that GitHub is connected in your Jade profile and that the connected account can access the repository.

> [accordion] The ZIP upload fails
>
> The ZIP must have the `.zip` extension and be at most 200 MiB, and the upload token lasts five minutes. Ask the agent to request a new token and try again.

> [accordion] A deployment looks unfinished
>
> Ask the agent to check the deployment status. The first deploy call only confirms that Jade accepted it.

> [accordion] A plan or resource limit blocks an action
>
> Check your [plan and usage](https://jadehosting.app/dashboard/profile/subscription).

## Privacy and help

Read the [Jade Hosting privacy policy](https://jadehosting.app/privacypolicy). For help, use [Contact us](https://jadehosting.app/dashboard/contact_us) from your Jade account.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.