Essentials
The one page to read before connecting an agent. Each point links to the guide with the detail.
The first 5 minutes
Create a key. In the panel, Settings → API & MCP → New key. To try things out, a personal key with one read scope (for example
ops:read) is enough. Copy the key: it is shown only once.Keep it in an environment variable, not in a project file:
export AUTONEX_MCP_KEY="mk_xxxxxxxx_…"Check that it works with
curlby callingwhoami:curl -sS https://mcp.autonexhub.es/mcp \ -H "Authorization: Bearer $AUTONEX_MCP_KEY" \ -H "Content-Type: application/json" \ -H "Accept: application/json, text/event-stream" \ -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"whoami","arguments":{}}}'The answer says which organization, person and key you are connected with, your permissions and the tools you can use.
Connect your client. For example, in Claude Code:
claude mcp add --transport http autonex https://mcp.autonexhub.es/mcp \ --header "Authorization: Bearer $AUTONEX_MCP_KEY"Other clients: Claude Desktop, Codex, Cursor and VS Code, ChatGPT and the OpenAI API, n8n, LiveKit and your own code.
Ask the agent: "Call whoami on the Autonex MCP and tell me which tools I have".
Connection
| Endpoint | https://mcp.autonexhub.es/mcp — the /mcp path is required |
| Transport | Streamable HTTP, POST only. Stateless: every request is authenticated on its own. GET and DELETE return 405. There is no legacy SSE transport. |
| Headers | Authorization: Bearer mk_…, Content-Type: application/json, Accept: application/json, text/event-stream (MCP SDKs and clients set them for you) |
| Responses | JSON (structuredContent with the data and content[0].text with a summary) |
| Service status | https://mcp.autonexhub.es/health |
The key
- Who creates it: anyone with the Manage integrations permission (
integrations.manage; Managers have it) in an organization with the "API & MCP" module enabled. Autonex enables the module. - Where: Settings → API & MCP. Right there, MCP capabilities lists the tools you could use.
- Types: personal (acts as you, with at most your permissions; the owner is always whoever creates it) or service (no person: only its scopes; for n8n or integrations). Agent keys are issued by Autonex only.
- Scopes: tick only what the agent needs (
ops:read,incidents:write, single permissions…). You cannot grant permissions you don't have. Full list in Create an API key. - Centres: optionally, restrict the key to some centres.
- Expiry: required. 30, 90 (default), 180 days or 1 year.
- Format:
mk_<prefix>_<secret>. Shown only once. Autonex cannot recover it: if you lose it, rotate it or create another. - Rotate: creates a new key with the same scopes and centres, and the old one stops working at that moment (there is no overlap window). Have the places where you use it ready to update. Only its owner can rotate a personal key.
- Revoke: stops working at once and cannot be undone.
What the key can see and do
- The organization always comes from the key. You never need to give it. Tools that accept
organization_idonly take your key's: any other givesTENANT_MISMATCH. - Effective permissions = the key's scopes ∩ the owner's current permissions ∩ the organization's enabled modules. They are worked out on every call: if the person loses a permission or is disabled, the key loses it at once.
- Centres = the person's ∩ the key's. Asking for data from another centre gives
LOCATION_OUT_OF_SCOPE. - Tools you can't use don't appear in your client's list.
whoamitells you which ones you have and why.
More in the security model.
Changes take two steps
- A
*_previewtool checks everything and returnssummary,effectsand aconfirm_token. Nothing changes. confirm_actionwith thatconfirm_tokenapplies exactly that change.
- The token is valid for 15 minutes, once, and only for the key that requested the preview. Permissions are checked again on confirmation.
- Exception:
create_incidentandadd_incident_noteonly add information (a new incident, a note) and apply in one call. Treat them as writes too in your client's approval settings.
More in Two-phase writes.
Language
Answer texts are in Spanish by default. For English, send Accept-Language: en or pass lang: "en" to any tool. structuredContent field names are always in English.
Limits and quota
| Limit | Value | When exceeded |
|---|---|---|
| Tool calls per minute, per key | 60 by default (Autonex can change it per key) | HTTP 429 RATE_LIMITED, Retry-After header and retry_after in seconds |
Protocol messages (initialize, tools/list) | 4 times the limit above, counted separately; no quota used | HTTP 429 RATE_LIMITED |
| Organization's monthly quota | Set by Autonex according to the plan (10,000 units by default). Resets on the 1st (UTC). | HTTP 429 QUOTA_EXCEEDED, with resets (reset date) |
| A key's own quota | Optional, set when creating it | HTTP 429 QUOTA_EXCEEDED |
Cost: a read or a preview = 1 unit; confirm_action, create_incident or add_incident_note = 5 units (configurable per organization). Calls rejected by a limit use no units.
More in Quotas and usage.
Checking usage
- The
usagetool: your key's calls, units and errors this month, per tool, and what is left of the organization's quota. - Panel, Settings → API & MCP → Usage: quota, calls per day, per key and per tool.
Security: do and don't
Do
- Keep the key in an environment variable, a secrets manager or your tool's credentials.
- One key per agent or automation, with a clear name ("Ana's Claude Code", "n8n — weekly report").
- The fewest scopes needed. For analysis, only
…:read. - Short expiry for trials (30 days).
- If a key leaks, or you suspect it has, revoke it now and create another. Check its usage to see what it did.
Don't
- Don't write the key in code, in
.mcp.json, inconfig.tomlor in any file that goes into git. Use variable references (${AUTONEX_MCP_KEY}). - Don't paste it into chats, tickets, screenshots or the agent's prompt itself.
- Don't share one key between people or between agents.
- Don't auto-approve
confirm_action.
Errors
Authentication and limit failures come back as HTTP 401/403/429. Failures inside a tool come back with HTTP 200 and isError: true. Always branch on the code field. Full list in Error codes, and step-by-step diagnosis in FAQ → Troubleshooting.