# Cline + Ample: deploy apps from Cline

Set up Cline to deploy apps to Ample: connect the MCP server, sign in, and add the skills.

[Read as Markdown](/content/agents/cline.md)

## the short version

To let Cline 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 Cline can fix it.

## Set up Cline for Ample

1. **Install Cline.**
   
   ```
   $ npm install -g cline
   ```

2. **Connect Cline to Ample's MCP server.** The server is shared by the Cline extension, CLI and desktop app.
   
   ```
   $ cline mcp add ample https://api.ample.computer/mcp --transport http --yes
   ```

3. **Sign in.** Run this, choose ample and Authorize OAuth. Ample asks for your email and sends a 6-digit code; a new email gets a Free account. Then approve the connection.
   
   ```
   $ cline mcp
   ```

4. **Add the Ample skills (optional).** Three skills teach Cline when and how to deploy, connect services and migrate. Remove the directories to uninstall.
   
   ```
   $ curl -fsSL https://ample.computer/skills.sh | sh -s -- .cline/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 Cline. 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

- In VS Code, install the Cline extension from the Extensions view instead of the CLI, then add Ample in its Remote Servers tab with the Streamable HTTP transport.

## Sources

- https://docs.cline.bot/mcp/mcp-overview.md
- https://docs.cline.bot/cli/cli-reference.md
- https://docs.cline.bot/customization/skills.md
