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.
| Control | What it does | Why |
|---|---|---|
| HTTPS only | http:// is refused | Credentials are never sent unencrypted |
| Port 443 only | Any other port is refused | Removes port scanning as a capability |
| Public addresses only | Private, loopback, link-local, CGNAT, reserved and documentation ranges are refused, as is localhost by name | The add-server box cannot be used to probe your internal network |
| DNS pinning | The hostname is resolved once and the connection is pinned to that address | Defeats DNS rebinding — a name cannot be re-pointed at an internal address between the check and the connection |
| No secrets in the URL | Embedded user:password@, fragments, and query parameters named like secrets are refused | A URL ends up in logs; a credential must not |
| Manual, same-origin redirects | At most 2, and only to the same origin; the next hop is re-validated before credentials are sent | A server cannot redirect AVA's credential to a third party |
| Response bounding | 4 MB per HTTP response; 256 KB per normalised tool result; 256 KB for discovery documents | A hostile or broken server cannot exhaust memory or flood the model's context |
| Timeouts | 15 seconds per request | A 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
| Property | Detail |
|---|---|
| Storage | Azure Key Vault, in your tenant. AVA stores an opaque reference on the installation row, never the secret |
| Ownership | Per user (OAuth) or per installation (API token, client credentials). Per-user grants are stored separately from the installation's own client secret |
| Read-back | Never. A stored secret cannot be displayed again, only replaced |
| Rotation | Replace credential on the server's detail panel |
| Revocation | Removing a server deletes its stored credentials. A user disconnecting removes only their own grant |
| Encryption of OAuth state | The 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.
| Setting | Effect |
|---|---|
| Available to everyone | Any signed-in user may select the server and use its tools |
| Restricted to Entra groups | Only members of the named groups (up to 50). Everyone else does not see the server at all |
| Admins | Always 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:
| Class | Determined by | Confirmation in chat | Scheduled tasks |
|---|---|---|---|
| Read | readOnlyHint, or a name that reads as a read | None | Allowed |
| Write | A name that reads as a write or send — or nothing determinable | Required, per call | Only if an admin promotes the specific tool |
| Destructive | destructiveHint, or a name that reads as a delete | Required, per call | Never — promotion is refused |
Two properties are worth stating explicitly to a security reviewer:
- Name evidence can only escalate. A server declaring
readOnlyHint: trueondelete_customerdoes not get read treatment. A compromised or dishonest server cannot talk its way past the confirmation gate. - 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
| Limit | Value |
|---|---|
| Tools per server | 500 |
tools/list pages followed | 20 |
| Tool description | 500 characters |
| Input schema per tool | 128 KB |
| Input schema per server | 2 MB |
| Normalised tool result | 256 KB |
| HTTP response body | 4 MB |
| Discovery document | 256 KB |
| Request timeout | 15 seconds |
| Redirects | 2, same origin |
| Entra groups per server | 50 |
| Fabric agents registered | 100 |
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.