MCP server
Coaade MCP, Coaade's Model Context Protocol server, covering its endpoint, Sign in with Coaade (OAuth 2.1), API keys, scopes, rate limits, tool groups, the full tool reference and resources.
Coaade MCP lets any MCP client work on a user's Coaade projects. Clients sign in with Coaade (OAuth 2.1) or send a Coaade API key. It's available on every plan, including Free, and the plan's limits apply. For client setup, see Connect your AI.
It's one server for the whole account: new Coaade products add tool groups here rather than new servers, so client setups keep working.
Endpoint
/mcpAPI keyMCP over Streamable HTTP. Stateless with JSON responses: no sessions and no server-to-client stream.
| URL | https://api.coaade.com/mcp |
| Transport | Streamable HTTP, stateless, JSON responses |
| Methods | POST only. GET and DELETE return 405. |
| Capabilities | tools, resources |
| Server name | coaade |
The server sends instructions on initialize that tell the client's AI how to work: start with list_projects and get_project, pass project (and owner for shared projects) to project tools, and confirm destructive tools with the user.
Authentication
Every request needs a bearer token: either an OAuth access token from Sign in with Coaade, or a Coaade API key. Either way it acts as the user, with their plan, their projects and their role on shared projects.
| Token | Looks like | Get it |
|---|---|---|
| OAuth access token | coaade_at_… | The OAuth flow below. Lasts 1 hour. |
| API key | coaade_sk_… | The IDE's MCP page or POST /v1/api-keys |
Authorization: Bearer coaade_sk_…A request without valid credentials returns 401 with a WWW-Authenticate header that points OAuth-capable clients at the discovery document:
WWW-Authenticate: Bearer resource_metadata="https://api.coaade.com/.well-known/oauth-protected-resource/mcp", scope="mcp:full"Sign in with Coaade (OAuth 2.1)
Clients that support MCP authorization (ChatGPT, Claude, Claude Code, VS Code, Cursor and others) connect with just the URL. The flow follows the MCP authorization spec:
Discover
The client reads the protected resource metadata (RFC 9728) at /.well-known/oauth-protected-resource/mcp, then the authorization server metadata (RFC 8414) at /.well-known/oauth-authorization-server (also served at /.well-known/openid-configuration).
Register
Public clients, no secret. Either register dynamically with POST /oauth/register (RFC 7591), or use a Client ID Metadata Document: an https URL as the client_id, which Coaade fetches and caches for an hour.
Authorize
Send the user to GET /oauth/authorize with PKCE (S256, required) and resource=https://api.coaade.com/mcp. Coaade redirects them to coaade.com/oauth/authorize, where they sign in, see your app's name and where it returns, choose Full access or Read only, and approve or decline. The browser comes back to your redirect_uri with code, state and iss.
Get tokens
POST /oauth/token (form or JSON body):
| Grant | Gives |
|---|---|
authorization_code | A 1-hour access token (coaade_at_…) and a 60-day refresh token (coaade_rt_…). Codes are single-use, last 10 minutes, and the PKCE verifier is checked. |
refresh_token | A new pair. Both tokens rotate; reusing a spent refresh token revokes the whole connection. |
Clients can revoke tokens with POST /oauth/revoke (RFC 7009).
Redirect URIs may be https, loopback http on any port (RFC 8252), or an app scheme such as cursor:// or vscode://. Script schemes and fragments are refused.
Scopes are mcp:full and mcp:read, chosen by the user on the approval screen.
Connections. Each approval is a connection the user sees under Connected apps on the IDE's MCP page and can disconnect; its tokens stop working at once. Signed-in apps can list and revoke them with GET /v1/oauth/connections and DELETE /v1/oauth/connections/{id} (bearer access token).
Key scopes
An API key's MCP access (its scope) decides what the MCP server offers it:
| Key scope | OAuth scope | Tools offered |
|---|---|---|
full (default) | mcp:full | All tools |
read | mcp:read | Only tools that don't change anything. run_sql accepts only SELECT, WITH, EXPLAIN, SHOW, VALUES and TABLE statements. |
none | — | None. The server refuses the key (see below). |
Keys created before scopes existed are full. A key's separate Call models permission doesn't change what MCP offers; see API keys.
A key with MCP access off
A key whose MCP access is Off (scope: "none") was made for model calls only. POST /mcp logs the request, then refuses it with 403 and a JSON-RPC error (code -32003):
{ "jsonrpc": "2.0", "error": { "code": -32003, "message": "This API key has no MCP access…" }, "id": null }Connect with a key that has Full or Read-only MCP access, or turn MCP access on for this key.
Plans
Connecting works on every plan. These tools need Pro or higher and return a clear plan error on Free: run_app_test, security_scan, pen_test, and the Copilot CTO tools (cto_*, owner only).
Only ask_coaade, run_app_test and pen_test use the account's Coaade AI allowance. security_scan uses none; every other tool runs on the client's own AI.
Rate limits
| Limit | Value |
|---|---|
| Per API key | 120 requests per minute (sliding window) |
| Per endpoint | 600 requests per minute |
Over the per-key limit, the server returns 429 with JSON-RPC error -32029. Wait a minute and retry. If Coaade can't check the credentials right now, it returns 503; retry shortly.
The server answers with JSON, so it accepts clients whatever Accept header they send.
Tool groups
Add ?groups= with a comma-separated list to offer only some groups. Unknown names are ignored.
https://api.coaade.com/mcp?groups=projects,files,deployTool conventions
- Project tools take
project(the slug fromlist_projects) and, for a project shared with the user,owner(the owner's ID fromlist_projects). - Each tool has a minimum role:
viewer,editororowner. Calls below that role fail with a clear message. - Tools carry MCP annotations:
readOnlyHintfor tools that only look,destructiveHintfor ones that can't be undone. - Errors come back as tool results with
isError: trueand a plain-language message. - Results longer than 100,000 characters are cut, with a note saying so.
- File changes are saved to the project's storage automatically, a few seconds after the last change.
- Every call is recorded in an audit log with the key, tool, project, result and duration.
Tool reference
57 tools in 12 groups. Legend: R read-only, W changes something, D destructive. Role is the minimum project role. Paid marks tools that need Pro or higher.
Projects
| Tool | Role | Does | |
|---|---|---|---|
list_projects | R | — | Your projects and ones shared with you, with slugs, deploy URLs, your role and owner IDs |
get_project | R | viewer | A project's live state: deploy, databases, GitHub link, schedules, Copilot CTO, App Test |
create_project | W | — | Create a project (name, optional template: blank, html, node, python, react). Returns its slug. |
rename_project | W | owner | Rename a project (new_name). The slug changes too. |
Files and terminal
| Tool | Role | Does | |
|---|---|---|---|
list_files | R | viewer | List project files |
read_file | R | viewer | Read a file with line numbers. start_line/end_line for large files (up to 2,000 lines at a time). |
search_files | R | viewer | Grep the project (query, optional regex, path, ignore_case, max_results up to 300). Skips node_modules, .git, .venv. |
write_file | W | editor | Create or replace a whole file. Parent folders are created. |
edit_file | W | editor | Replace exact text (old_text → new_text, optional replace_all). Fails if the text is missing or not unique. |
delete_file | D | editor | Delete a file |
rename_file | W | editor | Rename or move a file |
run_command | W | editor | Run a shell command in the workspace and return output and exit code. background: true for servers and long jobs. Docker isn't available. |
task_output | R | viewer | Output of a background task |
task_stop | W | editor | Stop a background task |
Deploy
| Tool | Role | Does | |
|---|---|---|---|
deploy | W | editor | Deploy to https://<name>.coaade.app. Server apps listen on PORT. |
deploy_logs | R | viewer | Deploy and build logs |
deploy_set_env | W | editor | Set environment variables for the deployed app |
stop_deploy | D | owner | Take the site offline (deploy again to bring it back) |
list_domains | R | owner | Custom domains and whether each is verified |
Databases
| Tool | Role | Does | |
|---|---|---|---|
db_list | R | viewer | The project's databases |
db_create | W | editor | Create a PostgreSQL, MongoDB or Redis database |
db_connection | R | editor | Connection URL and credentials, for the project's .env only |
db_size | R | viewer | Database size and limit |
db_delete | D | owner | Delete a database |
run_sql | R | viewer | Run SQL on a PostgreSQL database (db_id, sql). Returns rows as JSON. Viewers and read-only keys can only read. |
GitHub
| Tool | Role | Does | |
|---|---|---|---|
github_status | R | viewer | Whether GitHub is connected and the linked repository |
github_repos | R | viewer | Repositories the Coaade GitHub App can use |
github_activity | R | viewer | Recent commits and pull requests |
github_link_repo | W | editor | Link the project to a repository |
github_push | W | editor | Commit and push |
github_pull | W | editor | Pull new commits |
App Test
| Tool | Role | Does | |
|---|---|---|---|
run_app_test | W | editor | Paid. Start App Test on the deployed site (goal, optional start url). Runs in the background and returns a run ID. Uses Coaade AI. |
list_test_runs | R | viewer | Recent runs with goal, status and verdict |
get_test_run | R | viewer | One run: status, verdict, checks, bugs with steps to reproduce, page errors, and the Playwright spec with include_spec: true |
Security
These only ever test the project's own site: its *.coaade.app deploy or a verified custom domain. See Security and pen testing.
| Tool | Role | Does | |
|---|---|---|---|
security_scan | R | viewer | Paid. Passive scan of the deployed site (optional url): security headers, cookie flags, http→https redirect, CORS, version disclosure, exposed files. Returns findings with severity and fixes. No AI cost; read-only keys may run it. |
list_security_scans | R | viewer | Recent scans: target, one-line summary and when |
get_security_scan | R | viewer | One scan (scan_id) with every finding, its severity and fix |
pen_test | W | editor | Paid. Start an AI pen test and QA pass (optional goal, url). Runs a few minutes in the background and returns a run ID. Uses Coaade AI. |
list_pentest_runs | R | viewer | Recent pen test runs: target, status, security score and when |
get_pentest_run | R | viewer | One run (run_id): status, score, verdict, and each finding with severity, category, evidence and fix |
Coaade Code
| Tool | Role | Does | |
|---|---|---|---|
ask_coaade | W | editor | Hand a task to Coaade Code. Runs in the background as an AI Chat session the user can watch on the dashboard. Optional session_id to continue, autonomous (default true, paid plans). |
get_session | R | viewer | Whether a session is still working, and its latest messages (last, default 6) |
list_sessions | R | viewer | Saved AI Chat sessions, newest first |
Memory
| Tool | Role | Does | |
|---|---|---|---|
memory_list | R | viewer | The project's memory notes (optional query) |
memory_add | W | editor | Save a note, or remove one. Never store secrets. |
memory_search | R | viewer | Search memory notes |
Scheduled tasks
| Tool | Role | Does | |
|---|---|---|---|
schedule_list | R | viewer | The project's scheduled tasks |
schedule_create | W | editor | Create a scheduled task |
schedule_update | W | editor | Change a scheduled task |
schedule_run_now | W | editor | Run a scheduled task now |
schedule_delete | D | editor | Delete a scheduled task |
Copilot CTO
Paid. Owner only, on plans with Copilot CTO (Pro and above).
| Tool | Role | Does | |
|---|---|---|---|
cto_proposals | R | owner | Proposals with their status (status: pending by default, approved, declined, all) |
cto_decide | W | owner | Approve or decline a proposal (id, decision, optional note). Approved work happens on a cto/ branch. |
cto_reports | R | owner | Recent reviews and tasks with summaries |
cto_health | R | owner | Recent health checks of the deployed app |
Account
| Tool | Role | Does | |
|---|---|---|---|
usage_quota | R | — | Your plan and what's used of each quota |
report_bug | W | — | Report a bug in Coaade itself (summary, optional project). The team replies by email. |
Resources
For clients that read MCP resources, each of the user's 50 most recent projects has two:
| URI | Contents |
|---|---|
coaade://project/<slug>/state | Same as get_project |
coaade://project/<slug>/memory | Same as memory_list |
For a shared project, add ?owner=<owner id>.
Example: raw JSON-RPC
curl https://api.coaade.com/mcp \
-H "Authorization: Bearer $COAADE_KEY" \
-H "Content-Type: application/json" \
-H "Accept: application/json, text/event-stream" \
-d '{ "jsonrpc": "2.0", "id": 1, "method": "tools/call",
"params": { "name": "list_projects", "arguments": {} } }'Usage and limits
Tools run within the key owner's plan: project, storage, database, build and workspace limits all apply. ask_coaade, run_app_test and pen_test run on Coaade AI and appear on the owner's Usage page.