AVAAVA Docs
Documentation menu

MCP security, permissions and limits

Adding an MCP server means letting an outside service publish tools that AVA will call with your users' credentials. This page is the complete account of what AVA enforces so that stays safe — useful both for your own review and for answering a security questionnaire.

Network policy

Every request AVA makes to a remote MCP server — the first inspection, OAuth discovery, the tool listing, and every tool call — passes through the same policy. There is no bypass and no admin-facing override.

ControlWhat it doesWhy
HTTPS onlyhttp:// is refusedCredentials are never sent unencrypted
Port 443 onlyAny other port is refusedRemoves port scanning as a capability
Public addresses onlyPrivate, loopback, link-local, CGNAT, reserved and documentation ranges are refused, as is localhost by nameThe add-server box cannot be used to probe your internal network
DNS pinningThe hostname is resolved once and the connection is pinned to that addressDefeats DNS rebinding — a name cannot be re-pointed at an internal address between the check and the connection
No secrets in the URLEmbedded user:password@, fragments, and query parameters named like secrets are refusedA URL ends up in logs; a credential must not
Manual, same-origin redirectsAt most 2, and only to the same origin; the next hop is re-validated before credentials are sentA server cannot redirect AVA's credential to a third party
Response bounding4 MB per HTTP response; 256 KB per normalised tool result; 256 KB for discovery documentsA hostile or broken server cannot exhaust memory or flood the model's context
Timeouts15 seconds per requestA hanging server cannot hold a conversation open

The managed-host exception

Exactly one exception exists to the public-address rule: hostnames listed in the ava:installed_remote_mcp_managed_hosts deployment configuration key may resolve to private addresses. This is for MCP servers your organisation self-hosts on internal-only ingress.

It is set in Azure App Configuration by someone with access to it — not from the admin UI and not from any database table an admin can write, so it cannot be reached from the add-server box. Entries must be exact, dotted hostnames: wildcards, single labels and bare IP addresses are rejected and logged. Every other control above still applies to a managed host, including DNS pinning.

Credentials

PropertyDetail
StorageAzure Key Vault, in your tenant. AVA stores an opaque reference on the installation row, never the secret
OwnershipPer user (OAuth) or per installation (API token, client credentials). Per-user grants are stored separately from the installation's own client secret
Read-backNever. A stored secret cannot be displayed again, only replaced
RotationReplace credential on the server's detail panel
RevocationRemoving a server deletes its stored credentials. A user disconnecting removes only their own grant
Encryption of OAuth stateThe in-flight sign-in state is encrypted with the deployment's token encryption key and expires in about ten minutes

If Key Vault or the encryption key is not configured, the admin section says so up front rather than letting you complete an install that would fail the moment someone tried to sign in.

OAuth hardening

AVA implements the current MCP authorization guidance rather than a minimum viable flow:

  • PKCE (S256) on every authorization-code flow. A provider that does not support it is not used.
  • Resource indicators (RFC 8707) so the token is minted for the specific MCP server, not for the provider's whole API. When the provider ignores that and issues a broader token, AVA records it and continues — the server validates its own tokens — but the discrepancy is kept because it predicts later failures.
  • Issuer validation (RFC 9207). The authorization server's identity is recorded at install time and checked on the response. A mismatch is refused and, deliberately, is not presented as something to retry — it means either the server changed identity provider or something is intercepting the sign-in.
  • Nonce checking between request and response.
  • Discovery integrity. A metadata document whose issuer disagrees with the server that pointed at it fails the install outright. Every discovery hop is re-validated through the network policy on its own origin, so an MCP endpoint cannot redirect discovery somewhere else.
  • Confidential clients supported. Some providers require a client secret even for an interactive user sign-in; AVA stores that at the installation's own reference, in the same vault, never readable back.

Who can use a server

Access is decided per installation and enforced at call time, not just at render time.

SettingEffect
Available to everyoneAny signed-in user may select the server and use its tools
Restricted to Entra groupsOnly members of the named groups (up to 50). Everyone else does not see the server at all
AdminsAlways have access, for support and diagnosis

Group membership is re-checked when tools are offered and again when a tool is called, so removing someone from a group in Entra takes effect immediately — there is no cached grant to expire.

Execution safety

Every remote tool is classified when its snapshot is taken:

ClassDetermined byConfirmation in chatScheduled tasks
ReadreadOnlyHint, or a name that reads as a readNoneAllowed
WriteA name that reads as a write or send — or nothing determinableRequired, per callOnly if an admin promotes the specific tool
DestructivedestructiveHint, or a name that reads as a deleteRequired, per callNever — promotion is refused

Two properties are worth stating explicitly to a security reviewer:

  1. Name evidence can only escalate. A server declaring readOnlyHint: true on delete_customer does not get read treatment. A compromised or dishonest server cannot talk its way past the confirmation gate.
  2. Unknown defaults to write. Most MCP servers publish no annotations. Those tools require confirmation and are not background-eligible, so a vendor gains nothing by omitting metadata.

Unattended execution needs all three of: an installation whose credential is approved for background use, a tool that is read-classified or explicitly promoted, and a task step that gathers rather than acts. Revoking an installation's background approval takes effect immediately for every already-connected user.

Note

Servers whose identity provider offers no refreshable grant are flagged during setup. Such a connection expires about an hour after each sign-in — fine for chat, useless for scheduled tasks, and AVA says so rather than letting you discover it from a task that silently stopped running.

Limits

LimitValue
Tools per server500
tools/list pages followed20
Tool description500 characters
Input schema per tool128 KB
Input schema per server2 MB
Normalised tool result256 KB
HTTP response body4 MB
Discovery document256 KB
Request timeout15 seconds
Redirects2, same origin
Entra groups per server50
Fabric agents registered100

AVA also refuses input schemas that nest too deeply, are too complex, contain oversized key names, refer to themselves in a loop, or point at an external $ref. Each produces a specific error naming the offending tool.

Auditing

Every meaningful event is written to the application activity log against the installation:

  • Server added, renamed, availability changed, turned off, removed
  • Background (scheduled-task) approval granted or withdrawn
  • Deployment-wide MCP execution enabled or disabled
  • Every tool invocation, with the tool name, snapshot version, execution surface, duration, and whether it succeeded, was blocked or failed

Tool results are not copied into the audit record.

The deployment kill switch

Admin → Tools & Skills → MCP servers has a master switch that stops all remote MCP execution for the deployment. It fails closed: if the setting cannot be read, execution is off. Applying the database migration alone never activates remote execution — someone has to turn it on deliberately.