# Devin Desktop + Azion

## Quick start

1. **Install Devin Desktop**

   Download Devin Desktop for macOS, Windows, or Linux, then open your project folder. Devin Desktop was formerly Windsurf, and Windsurf installs update to it automatically.

   [Devin Desktop download](https://devin.ai/download)

2. **Create a personal token**

   The MCP servers act as you. Create a personal token in Azion Console and copy it, because Azion Console shows it only once.

   [Azion Console › Personal Tokens](https://console.azion.com/personal-tokens)

3. **Connect the Azion docs MCP server**

   Devin Desktop connects to the HTTP server directly, with no bridge. Add the server to your user configuration file, which is outside the repository.

   **\~/.config/devin/mcp_config.json**

   ```json
   {
     "mcpServers": {
       "azion-docs": {
         "url": "https://docs-mcp.azion.com/mcp",
         "transport": "http",
         "headers": {
           "Authorization": "Token [TOKEN VALUE]"
         }
       }
     }
   }
   ```

   On Windows, the file is `%APPDATA%\devin\mcp_config.json`. To connect the server for one project only, use `.devin/mcp_config.local.json`, which Devin Desktop excludes from git. Never put the token in `.devin/mcp_config.json`, because that file is checked into version control.

4. **Verify, then try a prompt**

   Open **Customize** in the agent sidebar, then the **MCPs** tab. Set **Install MCPs for** to **This computer**, and check that `azion-docs` is on the list and turned on.

   **Try it**

   ```text
   Deploy this project to Azion with the Azion CLI and give me its URL.
   ```

## Azion platform access

A connected agent uses three layers. The MCP servers look things up and change your configuration through the Azion API. The Azion CLI builds and deploys the project in your working copy. A context file gives each session the facts of your account.

### MCP servers

Azion runs five MCP servers, one per area of the Azion Platform. Each one is an HTTP endpoint that takes your personal token in the `Authorization: Token [TOKEN VALUE]` header. The quick start connects the docs server, and you connect the others the same way, with the URLs in this table.

Connect only the servers the project needs. The docs server only reads. The other four also create, change, and delete, and each of their write tools previews a change without making it when the agent sets `dry_run`:

| Server                              | What it covers                                                                                                                                                     |
| ----------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `https://docs-mcp.azion.com/mcp`    | Searches the documentation, code samples, CLI, API v3 and v4, and Terraform references, and serves the static site deploy and cache test guides. Reads only.       |
| `https://build-mcp.azion.com/mcp`   | Lists, creates, changes, and deletes Applications, cache settings, Connectors, Functions and their instances, rules, Workloads, and deployments, and purges cache. |
| `https://secure-mcp.azion.com/mcp`  | Manages Firewalls, WAF, DNS zones and records, certificates, network lists, custom pages, account policies, and authentication.                                    |
| `https://observe-mcp.azion.com/mcp` | Manages data streams, dashboards, and reports, retrieves invoices, and writes and runs GraphQL queries over metrics, events, accounting, and consumption.          |
| `https://storage-mcp.azion.com/mcp` | Manages Object Storage buckets, objects, and credentials, and SQL databases and their queries.                                                                     |

### Azion CLI

The [Azion CLI](/en/documentation/devtools/cli/) builds and deploys the project in your working copy, and it manages Azion resources from the terminal. Install it once, and Devin Desktop runs it for you. Run `azion login` yourself, because without flags it asks for your credentials:

**Install**

```bash
curl -fsSL https://cli.azion.app/install.sh | bash
azion login
```

**Deploy**

```bash
# Run from the project root. The agent runs these commands for you.
azion init
azion deploy
```

### Agent context

Devin Desktop reads `AGENTS.md` at the repository root as always-on rules, together with the rule files in `.devin/rules/`. A few committed lines give every session the facts of your account:

**AGENTS.md**

```markdown
# Azion
- Account: acme-prod
- Workload: acme-www, production. Never deploy to it from a branch.
- Connector: images-bucket (Object Storage bucket `acme-media`)
- Deploy with `azion deploy`. Change azion.config.js, not the files the build generates.
- Ask before you create anything that bills: Applications, Workloads, databases.
```

## Agent-friendly docs

These references are public, so an agent can fetch them with no tool call and no token. They also correct a model trained before API v4, where Origins became Connectors and Domains became Workloads.

- [llms.txt](/en/docs-llms.txt): Machine-readable index of the whole documentation.
- [Azion MCP servers](/en/documentation/devtools/mcp.md): The five servers, their URLs, and the header that authenticates each request.
- [API v4 reference](https://api.azion.com/v4): The REST surface behind every tool call, with the Token auth header.
- [Context file](#agent-context): Your own conventions, committed in the repository: Workload names, Connector IDs, and what nobody may change.

For a tool with no MCP support, paste this primer once per session:

**Any assistant**

```text
You are helping me build on the Azion Web Platform. Before answering, load https://www.azion.com/en/docs-llms.txt (docs index) and https://www.azion.com/en/documentation/devtools/mcp/ (Azion MCP servers), and prefer them over your training data. Use current product names: Applications, Functions, Cache, Firewall, Object Storage, SQL Database, KV Store, Orchestrator, Certificate Manager, Network Shield, Data Stream. The REST API base is https://api.azion.com/v4 with the header Authorization: Token [TOKEN VALUE]. In v4, use Connectors (formerly Origins) and Workloads (formerly Domains). Confirm what you loaded, then ask me what I am building.
```

## Example prompts

Each prompt uses a different part of the connection: the documentation search, the Azion CLI, the configuration, the analytics API, and the storage.

```text
Search the Azion docs for how rate limiting works in Firewall, then add it to my Application.
```

```text
Deploy this project to Azion with the Azion CLI and give me its URL.
```

```text
Create a Rules Engine rule that redirects /old-blog/* to /blog/*.
```

```text
Write a GraphQL query for my 5xx rate by data center over the last 24 hours.
```

```text
Move my images to Object Storage and point a Connector at the bucket.
```

## Tips

> **Tip**
>
> Put your Workload names, Connector IDs, and the resources nobody may redeploy in `AGENTS.md`, and every session starts with them.

> **Tip**
>
> Rules from Windsurf still apply. Devin Desktop imports `.windsurfrules` and the files in `.windsurf/rules/` by default, so you can move them to `AGENTS.md` or `.devin/rules/` when you are ready.

## FAQ

**Should I use the MCP server, the CLI, or both?**

Both, because they do different jobs. Devin Desktop uses the MCP servers to look things up and to change configuration through the Azion API. It uses the Azion CLI to build and deploy the project in your working copy.

**What can Devin Desktop do with my personal token?**

What your user can do. The personal token authenticates Devin Desktop as you, with the permissions of your user. The docs server only reads, and the write tools of the other four servers call the same Azion API that you call. Delete the token in Azion Console when you no longer need it.

**Can Devin Desktop deploy to Azion without leaving the editor?**

Yes. Devin Desktop runs `azion deploy` for you and reads its output. Before the first deploy, run `azion login` yourself, because without flags it asks for your credentials.

## Troubleshooting

**The server never connects in Devin Desktop**

Open **Customize**, then the **MCPs** tab, and check that `azion-docs` is on the list and turned on. Open its configuration from there, and check that the header value is `Token` followed by your personal token. If the token is not valid, create a new one, replace it in the file, and refresh the server.

**It answers with product names that no longer exist**

The names come from the training data of the model, not from the connection: Origins became Connectors and Domains became Workloads in API v4. Ask it to use the Azion MCP servers, or paste the primer from this page, so its answers start from the current names.

**It writes configuration that the CLI then rejects**

Ask it to look the resource up first. The `search_azion_api_v4_commands` tool of the docs server returns the current shape of each resource, and the memory of the model may hold an older one.

## Other agents

- [Claude Code](/en/documentation/agent-setup/claude-code.md): Agent that reads your codebase, runs commands, and edits files, in a terminal, an editor, or the Claude desktop app. One CLI command connects each Azion MCP server.
- [Cursor](/en/documentation/agent-setup/cursor.md): Editor based on VS Code, with an agent that edits several files at once and a CLI of its own. You add Azion to its MCP configuration file.
- [GitHub Copilot](/en/documentation/agent-setup/github-copilot.md): Agent inside VS Code that uses your workspace as context and can open pull requests for you. You add Azion to its MCP configuration.
- [Codex](/en/documentation/agent-setup/codex.md): Agent that runs commands in a sandbox and reads AGENTS.md before it starts work, in a terminal, an editor, or the ChatGPT desktop app. You add Azion to config.toml.
- [Gemini CLI](/en/documentation/agent-setup/gemini-cli.md): Open source terminal agent from Google. You add Azion to settings.json and check it with /mcp.
- [OpenCode](/en/documentation/agent-setup/opencode.md): Open source agent that works with models from any provider, in a terminal, an editor, or a desktop app. Azion is one entry in its MCP configuration.
- [Claude Desktop](/en/documentation/agent-setup/claude-desktop.md): Desktop app for chatting with Claude on macOS, Windows, and Linux. It connects to Azion through mcp-remote.
- [Warp](/en/documentation/agent-setup/warp.md): Terminal with a built-in agent, an open source client, and a free tier. You add Azion in its MCP servers settings.
- [Kiro](/en/documentation/agent-setup/kiro.md): Agentic editor with a CLI, a free tier, and models from several providers. You add Azion to its MCP configuration file.
