Troubleshooting MCP servers
Connecting an MCP server is a chain of independent things — the address, reachability, the server's sign-in settings, a registered client, somebody's sign-in, the tool snapshot. A break anywhere in that chain used to look identical from the outside. It no longer does: AVA can tell you which link is broken.
Start with the checks
Open the server in Admin → Tools & Skills → MCP servers, then press Run checks in its detail panel. Nothing is written, no credential is consumed, and nothing is re-registered — it is safe to run on a live server at any time.
| Check | What it establishes |
|---|---|
| Address | The URL is valid, HTTPS, publicly reachable, on an allowed port, with no embedded secrets |
| Reachable | The server answered, and whether it demanded authorisation |
| Sign-in settings | Whether the server publishes usable OAuth metadata, and what it names |
| Registered client | Whether AVA has a client for this server, and whether it was registered for the address you are using now |
| Your sign-in | Whether you have a valid stored credential, and when it expires |
| Unattended use | Whether the credential can be renewed with nobody present |
| Tools | Whether a snapshot exists and how many tools it holds |
Every check reports what was observed, not a verdict, so you can compare a working server against a broken one side by side. If the address check fails, everything after it is skipped — the later checks are all network hops to the same host and would only produce noise.
The five things that account for most failures
Nobody has signed in yet
A per-user server cannot report its tools until someone signs in. The row shows zero tools and credential_required. Refresh tools cannot fix this — press Sign in.
The AVA address changed
An OAuth client is bound to the callback URL it was registered from. Set a server up on one host and use it from another and the provider returns unauthorized_client. Re-add the server from the address you actually use, or register the new callback URL at the provider.
A vendor-side switch was never turned on
Most vendors gate MCP access behind a feature flag, a policy setting, or both. The server will be reachable and still refuse to work. Check the vendor's prerequisites before re-pasting URLs.
Two sign-ins at once
Starting a second sign-in invalidates the first. If a consent window is already open, finish it — clicking Sign in again guarantees the open window will fail.
The account has no access at the vendor
"The server connected, but offers no tools AVA can use" usually means the signed-in account has no entitlements there — not that the server is broken.
Error reference
AVA turns every failure code into plain language with a next step, wherever it appears — the install dialog, the server row, the diagnostics panel and the sign-in popup all use the same wording. This is the summary by class.
The address
| Code | Meaning and fix |
|---|---|
endpoint_invalid | Not a valid web address. Paste the full URL including https:// |
https_required | Change http:// to https:// |
port_forbidden | AVA only connects on the standard HTTPS port |
dns_empty | The hostname does not resolve. Check the spelling; a private-network-only host is unreachable from AVA |
host_forbidden | The address points at the local machine |
address_forbidden | The address is on a private or internal network. A self-hosted server must be registered in deployment configuration — see Security & limits |
url_credentials_forbidden, url_secret_forbidden, url_fragment_forbidden | Remove the credential, token or fragment from the URL and supply it as a credential instead |
Redirects
| Code | Meaning and fix |
|---|---|
redirect_limit, redirect_forbidden | Use the server's direct MCP address, not a short link or vanity domain |
redirect_origin_forbidden, origin_forbidden | The server tried to move to a different host. AVA stays on the host you entered so credentials cannot leak. Ask the owner for the canonical address |
Nobody has signed in
| Code | Meaning and fix |
|---|---|
credential_required | No one has signed in, so the server cannot list its tools. Press Sign in |
authorization_required, credential_not_found | This server needs a personal sign-in. Press Sign in |
auth_required, credential_invalid, token_invalid | The stored credential was rejected — usually expired or revoked at the provider. Sign in again; if it was an API token, replace it |
OAuth broke mid-flow
| Code | Meaning and fix |
|---|---|
oauth_state_invalid | The sign-in link expired or was already used. Start again — it lasts about ten minutes |
mcp_auth_failed | The sign-in did not complete. Finish the window in one go; a second sign-in cancels the first |
access_denied | Declined at the provider. Some providers also require choosing a site or workspace — that choice is not optional |
redirect_uri_mismatch, client_redirect_uri_mismatch | The provider does not allow AVA's callback URL. Add https://<your-ava-host>/api/v1/mcp/auth/callback at the provider |
unauthorized_client | Almost always: the AVA address changed after the server was added. Re-add it from the address you use now |
dynamic_registration_failed | The server will not register AVA automatically. Create an OAuth client for AVA at the provider and paste its client ID under Advanced |
oauth_issuer_mismatch | The sign-in came back from a different provider than the one this server declared. Do not retry — remove and re-add the server, or escalate |
oauth_issuer_missing | The server promised to identify itself and did not. A defect in the server's authorization server |
auth_strategy_mismatch, credential_owner_mismatch | The server is configured for a different kind of sign-in. Remove and re-add it |
What the provider returned
| Code | Meaning and fix |
|---|---|
invalid_target | The provider refused the Resource / audience. On Microsoft Entra it must be api://<application-id> — matching the prefix on the scopes — or blank so the scope names the audience; the MCP server's own URL is rejected (AADSTS9010010). Fix it under Advanced and connect again |
token_audience_mismatch | The provider issued a token for its own API rather than scoped to this server. Recorded, not fatal — the server validates its own tokens |
token_expiry_invalid, token_type_unsupported, token_response_invalid, token_response_too_large | The provider returned something AVA will not store or use. These are server-owner problems |
credential_rejected | The client ID or secret was rejected. Secrets get rotated — re-enter them under Advanced |
background_refresh_unsupported | The provider offers no refreshable grant, so the connection expires about an hour after sign-in. Chat still works; leave scheduled-task use off |
Discovery
| Code | Meaning and fix |
|---|---|
discovery_absent | The server does not publish how it wants users to sign in. Not an error — use Advanced |
discovery_authorization_server_undeclared | The server signs users in through a separate identity provider without saying so. Its owner should publish /.well-known/oauth-protected-resource naming that provider. Until then, use Advanced |
discovery_invalid, discovery_insecure | The published metadata is malformed or not served over HTTPS |
discovery_unauthorized | The metadata is behind the server's own login. Discovery documents must be readable without a token |
discovery_issuer_mismatch | The metadata points at a different provider than the server claims. AVA stops here — that mismatch is how token-forwarding attacks start |
The server's tools
| Code | Meaning and fix |
|---|---|
no_enabled_tools | Connected, but nothing usable. Usually the signed-in account has no access at the vendor |
tool_limit, total_schema_limit | The server publishes more than AVA accepts. Ask for a narrower endpoint — a large tool surface also makes tool selection worse |
tool_schema_invalid, tool_schema_too_large, tool_schema_too_deep, tool_schema_too_complex, tool_schema_cycle, tool_schema_key_invalid, tool_schema_ref_forbidden | One tool's definition is malformed or out of bounds. The error names it; it is the server owner's to fix |
duplicate_tool_name, tool_name_invalid | The server published a duplicate or unusable tool name |
response_too_large, pagination_limit | The server returned more data, or more pages, than AVA will read |
AVA-side configuration
| Code | Meaning and fix |
|---|---|
control_plane_unavailable | The database migration has not been applied on this deployment. Raise with DataRM |
credential_store_unavailable | Key Vault or the encryption key is not configured here. Servers needing a sign-in cannot be added until it is |
request_origin_invalid | AVA cannot determine its own public address — usually a deployment URL misconfiguration |
internal_error | A fault inside AVA. Note the time; the server log holds the detail |
Access and state
| Code | Meaning and fix |
|---|---|
installation_forbidden | You are not in a group this server is shared with |
installation_unavailable | The server is turned off. Turn it back on from its row |
installation_not_found, not_found | Removed by another administrator. Refresh the page |
installation_conflict | Someone else changed it while you were working. Refresh, then reapply |
display_name_taken | Another connection already uses that name — names must be unique so users can tell them apart |
access_policy_required | No availability has been set, so nobody can use it. Use Rename & availability |
promotion_refused | A destructive tool cannot run unattended. It stays available in chat, where a person approves it |
background_credentials_forbidden | Use Allow scheduled tasks on the server's row if unattended use is intended |
credential_not_replaceable | This credential cannot be swapped in place. Remove and re-add the server |
Behaviour problems, not connection problems
A connected server whose answers are wrong is a different class of problem.
| Symptom | Cause | Fix |
|---|---|---|
| The model never uses the server | Its tool descriptions do not match how users phrase things, or the server is not selected as connected data | Rewrite the description and keywords in the server's detail panel; check the user selected it |
| The model picks a built-in tool instead | The vendor's wording competes badly against AVA's tuned built-ins | Rewrite the remote tool's description and keywords — this is the intended fix, and it survives refreshes |
| A tool asks for confirmation that shouldn't | It classified as write because its name reads as one | Ask the server owner to rename it, or accept the prompt. AVA will not relax a classification |
| A tool that should be gated isn't | It classified as read | Disable that tool from the server's detail panel |
| Answers went stale after a vendor update | The snapshot still holds the old tool list | Press Refresh tools |
| It works for the admin and nobody else | Per-user server; only the admin has signed in | Each user must complete their own sign-in |