Skip to Content
coaadedocs

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

POST/mcpAPI key

MCP over Streamable HTTP. Stateless with JSON responses: no sessions and no server-to-client stream.

URLhttps://api.coaade.com/mcp
TransportStreamable HTTP, stateless, JSON responses
MethodsPOST only. GET and DELETE return 405.
Capabilitiestools, resources
Server namecoaade

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.

TokenLooks likeGet it
OAuth access tokencoaade_at_…The OAuth flow below. Lasts 1 hour.
API keycoaade_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):

GrantGives
authorization_codeA 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_tokenA 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 scopeOAuth scopeTools offered
full (default)mcp:fullAll tools
readmcp:readOnly 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

LimitValue
Per API key120 requests per minute (sliding window)
Per endpoint600 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,deploy

Tool conventions

  • Project tools take project (the slug from list_projects) and, for a project shared with the user, owner (the owner's ID from list_projects).
  • Each tool has a minimum role: viewer, editor or owner. Calls below that role fail with a clear message.
  • Tools carry MCP annotations: readOnlyHint for tools that only look, destructiveHint for ones that can't be undone.
  • Errors come back as tool results with isError: true and 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

ToolRoleDoes
list_projectsR—Your projects and ones shared with you, with slugs, deploy URLs, your role and owner IDs
get_projectRviewerA project's live state: deploy, databases, GitHub link, schedules, Copilot CTO, App Test
create_projectW—Create a project (name, optional template: blank, html, node, python, react). Returns its slug.
rename_projectWownerRename a project (new_name). The slug changes too.

Files and terminal

ToolRoleDoes
list_filesRviewerList project files
read_fileRviewerRead a file with line numbers. start_line/end_line for large files (up to 2,000 lines at a time).
search_filesRviewerGrep the project (query, optional regex, path, ignore_case, max_results up to 300). Skips node_modules, .git, .venv.
write_fileWeditorCreate or replace a whole file. Parent folders are created.
edit_fileWeditorReplace exact text (old_text → new_text, optional replace_all). Fails if the text is missing or not unique.
delete_fileDeditorDelete a file
rename_fileWeditorRename or move a file
run_commandWeditorRun a shell command in the workspace and return output and exit code. background: true for servers and long jobs. Docker isn't available.
task_outputRviewerOutput of a background task
task_stopWeditorStop a background task

Deploy

ToolRoleDoes
deployWeditorDeploy to https://<name>.coaade.app. Server apps listen on PORT.
deploy_logsRviewerDeploy and build logs
deploy_set_envWeditorSet environment variables for the deployed app
stop_deployDownerTake the site offline (deploy again to bring it back)
list_domainsRownerCustom domains and whether each is verified

Databases

ToolRoleDoes
db_listRviewerThe project's databases
db_createWeditorCreate a PostgreSQL, MongoDB or Redis database
db_connectionReditorConnection URL and credentials, for the project's .env only
db_sizeRviewerDatabase size and limit
db_deleteDownerDelete a database
run_sqlRviewerRun SQL on a PostgreSQL database (db_id, sql). Returns rows as JSON. Viewers and read-only keys can only read.

GitHub

ToolRoleDoes
github_statusRviewerWhether GitHub is connected and the linked repository
github_reposRviewerRepositories the Coaade GitHub App can use
github_activityRviewerRecent commits and pull requests
github_link_repoWeditorLink the project to a repository
github_pushWeditorCommit and push
github_pullWeditorPull new commits

App Test

ToolRoleDoes
run_app_testWeditorPaid. 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_runsRviewerRecent runs with goal, status and verdict
get_test_runRviewerOne 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.

ToolRoleDoes
security_scanRviewerPaid. 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_scansRviewerRecent scans: target, one-line summary and when
get_security_scanRviewerOne scan (scan_id) with every finding, its severity and fix
pen_testWeditorPaid. 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_runsRviewerRecent pen test runs: target, status, security score and when
get_pentest_runRviewerOne run (run_id): status, score, verdict, and each finding with severity, category, evidence and fix

Coaade Code

ToolRoleDoes
ask_coaadeWeditorHand 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_sessionRviewerWhether a session is still working, and its latest messages (last, default 6)
list_sessionsRviewerSaved AI Chat sessions, newest first

Memory

ToolRoleDoes
memory_listRviewerThe project's memory notes (optional query)
memory_addWeditorSave a note, or remove one. Never store secrets.
memory_searchRviewerSearch memory notes

Scheduled tasks

ToolRoleDoes
schedule_listRviewerThe project's scheduled tasks
schedule_createWeditorCreate a scheduled task
schedule_updateWeditorChange a scheduled task
schedule_run_nowWeditorRun a scheduled task now
schedule_deleteDeditorDelete a scheduled task

Copilot CTO

Paid. Owner only, on plans with Copilot CTO (Pro and above).

ToolRoleDoes
cto_proposalsRownerProposals with their status (status: pending by default, approved, declined, all)
cto_decideWownerApprove or decline a proposal (id, decision, optional note). Approved work happens on a cto/ branch.
cto_reportsRownerRecent reviews and tasks with summaries
cto_healthRownerRecent health checks of the deployed app

Account

ToolRoleDoes
usage_quotaR—Your plan and what's used of each quota
report_bugW—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:

URIContents
coaade://project/<slug>/stateSame as get_project
coaade://project/<slug>/memorySame 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.

On this page