# Install

By the end of this page, your AI agent can call Lessly tools to deploy and manage your apps. Installation takes about 30 seconds.

> **NOTE**
> **Agent path.** This page connects Lessly to your AI agent — an agent-side setup with no browser equivalent. Prefer the dashboard? Just [sign up at app.lessly.com](https://app.lessly.com/signup) and use Lessly in the browser; nothing to install.

## Prerequisites

- A Lessly workspace — [sign up at lessly.com](https://app.lessly.com/signup) (Google sign-in).
- A supported AI agent: Claude Code, Claude Desktop, or Cursor.

## Add Lessly to your agent

Pick the agent you use. Each tab shows the only step you need.

### Claude Code

Run this in your terminal:

```bash
claude mcp add lessly https://mcp.lessly.com
```

Claude Code opens your browser to authenticate. Sign in with the same Google account you used for Lessly. The connection is live as soon as the browser confirms — no restart.

_Open in Claude — calls `organization_product_list`._

### Claude Desktop

Open `~/Library/Application Support/Claude/claude_desktop_config.json` and add the Lessly server:

```json
{
  "mcpServers": {
    "lessly": {
      "url": "https://mcp.lessly.com"
    }
  }
}
```

Quit and reopen Claude Desktop. Sign in when prompted.

_Open in Claude — calls `organization_product_list`._

### Cursor

Open **Settings → MCP → Add Server**. Paste `https://mcp.lessly.com` as the server URL. Authenticate in the browser when prompted.

### OpenCode

Open `~/.config/opencode/opencode.json` (or `%APPDATA%\opencode\opencode.json` on Windows) and add the Lessly server:

```json
{
  "mcp": {
    "lessly": {
      "type": "remote",
      "url": "https://mcp.lessly.com"
    }
  }
}
```

Restart OpenCode. Sign in with Google when prompted. The config-key shape may shift across OpenCode releases — confirm against the [OpenCode MCP docs](https://opencode.ai/docs/mcp) if your version doesn't pick this up.

## Try it

Ask your agent:

> Show me my recent deployments.

The agent calls the `deployment_deployment_list` tool. A list (or an empty list with a tool-call confirmation) means the install worked.

## What you can do next

Your agent now has the full Lessly MCP toolset. A few prompts to try:

- *"Deploy my latest commit to staging."*
- *"Roll back the last production deploy."*
- *"What environment variables are set on the api service?"*

If a call fails, check the workspace you signed in with — the MCP shows the active workspace name in its initialization message.
