MCPDocumentation
On this page

Security model

The organization comes from the key

Every key belongs to one organization. Every query is filtered by that organization on the server. No tool accepts a different organization: if an argument carries another organization id, the call is rejected with TENANT_MISMATCH. Arguments can only narrow (a centre, a date range), never widen.

Permissions = person ∩ key ∩ modules

The effective permissions are computed on every call:

  1. The person (personal keys): their current panel permissions, from their roles, read on every call. If they are disabled, lose access, or lose a permission, the key loses it at once.
  2. The key's scopes: what was ticked when it was created.
  3. The organization's modules: only permissions of enabled modules count. The "API & MCP" module must be enabled to use keys (MODULE_DISABLED otherwise).

A tool only appears in the list, and can only be called, when every permission it requires is held. Service keys don't act as anyone: they have exactly their scopes, within the enabled modules.

If the person only sees some centres, so does the key. A key can also be restricted to specific centres.

These are the panel permissions that can be used as scopes:

Permission (panel)Module
dashboard.viewcore
profile.selfcore
conversations.viewchannels
conversations.replychannels
conversations.take_overchannels
conversations.assignchannels
conversations.exportchannels
incidents.viewcrm.incidents
incidents.handlecrm.incidents
incidents.assigncrm.incidents
incidents.view_allcrm.incidents
incidents.manage_settingscrm.incidents
incidents.createcrm.incidents
incidents.lookupcrm.incidents
incidents.add_notecrm.incidents
contacts.viewcrm.contacts
contacts.editcrm.contacts
contacts.deletecrm.contacts
contacts.importcrm.contacts
deals.viewcrm.deals
deals.editcrm.deals
tasks.viewcrm.tasks
tasks.editcrm.tasks
lists.viewcrm.lists
lists.editcrm.lists
services.viewcrm.services
services.editcrm.services
reservations.viewcrm.reservations
centers.viewcrm.locations
centers.managecrm.locations
team.viewcrm.team
team.managecrm.team
team.invitecrm.team
team.manage_structurecrm.team
team.manage_rolescrm.team
ops.planning.viewops.planning
ops.planning.editops.planning
ops.absences.viewops.absences
ops.absences.approveops.absences
ops.substitutions.viewops.substitutions
ops.substitutions.manageops.substitutions
ops.catalog.editops.catalog
ops.reports.viewops.reports
portal.selfops
kb.viewknowledge_base
kb.editknowledge_base
connections.manageconnections
metrics.viewmetrics
campaigns.viewcampaigns
campaigns.editcampaigns
billing.selfbilling
consumption.viewconsumption
integrations.manageapi.mcp

Keys

  • Format mk_<prefix>_<secret>. Autonex only stores a SHA-256 fingerprint with a server secret (pepper); the full key cannot be recovered.
  • Mandatory expiry: 90 days by default, one year at most.
  • Immediate revocation from the panel: the MCP checks a revocation list on every call.
  • Nobody can create a key with permissions they don't have.

Audit log

Every call is logged for 180 days: key, person, organization, tool, a fingerprint of the arguments, success or error code, response size and latency. The content is not stored: neither the arguments in clear nor the responses (for example, transcripts). Applied changes also leave the usual panel activity.

Transport

HTTPS only (https://mcp.autonexhub.es), with a Let's Encrypt certificate. The server keeps no sessions: every request is authenticated again.

If a key leaks

Revoke it under Settings → API & MCP (or ask Autonex to) and create another. Check the key's usage to see which calls it made.