# Coding agents

Claude Code, Codex and Cursor can make your app live and look after it. Paste this into your agent, in your app's folder:

```
Make this app live with Toupas. Instructions: https://toupas.com/agents.md
```

The agent installs Toupas, makes the app live, and gives you the link. It asks you anything only you can answer, and payments always happen in your browser, never through the agent.

## Give your agent the Toupas tools
With the tools, the agent works with Toupas directly instead of through the terminal: it can read the live app's logs, check why a version didn't go live, run a query on the live database, or go back to an earlier version. To add them:

```
toupas init --agents
```

This adds Toupas to each agent on this computer, for every folder:

| Agent | Where |
|---|---|
| Claude Code | `claude mcp add --scope user toupas` |
| Codex | `~/.codex/config.toml`, with a longer tool timeout, since preparing an app can take minutes |
| Cursor | `~/.cursor/mcp.json` |
| Windsurf | `~/.codeium/windsurf/mcp_config.json` |

Start a new agent session afterwards. `toupas init` without `--agents` does the same, sets up this folder's app, and offers to add a short Toupas section to its `CLAUDE.md` or `AGENTS.md`. `toupas init --remove-agents` takes Toupas out again.

To add it yourself, the server is `toupas mcp`, over stdio.

In VS Code, [the extension](/docs/vscode) gives the editor's agent the same tools.

## What the tools do
| For | Tools |
|---|---|
| Making live | `toupas_make_live`, `toupas_doctor`, `toupas_setup_docker`, `toupas_list_runtimes` |
| When something's wrong | `toupas_get_deployment`, `toupas_get_logs`, `toupas_get_health`, `toupas_list_deployments`, `toupas_go_back_to_version` |
| Settings | `toupas_list_env`, `toupas_set_env`, `toupas_unset_env` |
| Database | `toupas_get_database`, `toupas_create_database`, `toupas_db_query`, `toupas_db_import`, `toupas_db_export`, `toupas_enable_db_extension` |
| Files | `toupas_get_storage`, `toupas_create_storage`, `toupas_list_files`, `toupas_set_storage_names` |
| Links | `toupas_get_links`, `toupas_set_main_link`, `toupas_check_subdomain`, `toupas_set_subdomain`, `toupas_remove_subdomain`, `toupas_add_domain`, `toupas_get_domain_status`, `toupas_remove_domain` |
| Apps and plans | `toupas_list_projects`, `toupas_get_project`, `toupas_rename_project`, `toupas_start_project`, `toupas_stop_project`, `toupas_activate_project`, `toupas_make_free_website`, `toupas_get_usage`, `toupas_get_billing`, `toupas_get_checkout_link`, `toupas_add_to_showcase` |
| Accounts and teams | `toupas_whoami`, `toupas_list_accounts`, `toupas_list_members`, `toupas_invite_member`, `toupas_remove_member` |

Tools that delete or take things offline take `confirm`: without it they only say what would happen, so the agent shows you first. Agents can also read these docs as `toupas://docs/<name>`, and [Toupas for coding agents](/docs/getting-started) is the guide they follow.
