# Cursor + Ample: deploy apps from Cursor

Set up Cursor to deploy apps to Ample: add the MCP server to mcp.json, sign in, and add the skills.

## the short version

To let Cursor deploy to Ample, connect it to Ample's MCP server at https://api.ample.computer/mcp and sign in with your email (a 6-digit code, no password). Then ask it to deploy: Ample builds the app, returns a live HTTPS URL, and explains any failure so Cursor can fix it.

## Set up Cursor for Ample

1. **Install Cursor.** This installs the Cursor CLI agent; the editor download is in the notes below.

```
   $ curl https://cursor.com/install -fsS | bash
   ```

2. **Connect Cursor to Ample's MCP server.** Add to Cursor opens the Cursor editor and installs the server. For the Cursor CLI, put this in `~/.cursor/mcp.json` (all projects) or `.cursor/mcp.json` (this project): Cursor has no `mcp add` command.

```json
   {
        "mcpServers": {
          "ample": {
            "url": "https://api.ample.computer/mcp"
          }
        }
   }
   ```

3. **Sign in.** In the editor, Cursor asks you to sign in when it connects to Ample; in the CLI agent, run this. Ample asks for your email and sends a 6-digit code; a new email gets a Free account. Then approve the connection.

```
   $ agent mcp login ample
   ```

4. **Add the Ample skills (optional).** Three skills teach Cursor when and how to deploy, connect services and migrate. Remove the directories to uninstall.

```
   $ curl -fsSL https://ample.computer/skills.sh | sh -s -- .agents/skills
   ```

5. **Ask it to deploy.** The deploy waits until the app is live or failed and returns the URL. On failure the result says who must act and suggests a fix.

```
   Deploy this app to Ample and give me the URL.
   ```

## Example prompts

Say any of these to Cursor. Copy one and paste it in.

- “Deploy this app to Ample and give me the URL.”
- “Add a Postgres database to this app on Ample and redeploy.”
- “The Ample deploy failed. Read the logs, fix the cause and deploy again.”
- “Put the uploads in an Ample bucket and serve them from the CDN.”
- “Move this app from Heroku to Ample.”

## Notes

- The install command installs the Cursor CLI agent; the editor is at https://cursor.com/download. Both read the same `mcp.json`.

## Sources

- https://cursor.com/docs/context/mcp
- https://cursor.com/docs/context/skills
- https://cursor.com/docs/cli/installation
