AVAAVA Docs
Documentation menu

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.

CheckWhat it establishes
AddressThe URL is valid, HTTPS, publicly reachable, on an allowed port, with no embedded secrets
ReachableThe server answered, and whether it demanded authorisation
Sign-in settingsWhether the server publishes usable OAuth metadata, and what it names
Registered clientWhether AVA has a client for this server, and whether it was registered for the address you are using now
Your sign-inWhether you have a valid stored credential, and when it expires
Unattended useWhether the credential can be renewed with nobody present
ToolsWhether 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

1

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.

2

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.

3

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.

4

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.

5

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

CodeMeaning and fix
endpoint_invalidNot a valid web address. Paste the full URL including https://
https_requiredChange http:// to https://
port_forbiddenAVA only connects on the standard HTTPS port
dns_emptyThe hostname does not resolve. Check the spelling; a private-network-only host is unreachable from AVA
host_forbiddenThe address points at the local machine
address_forbiddenThe 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_forbiddenRemove the credential, token or fragment from the URL and supply it as a credential instead

Redirects

CodeMeaning and fix
redirect_limit, redirect_forbiddenUse the server's direct MCP address, not a short link or vanity domain
redirect_origin_forbidden, origin_forbiddenThe 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

CodeMeaning and fix
credential_requiredNo one has signed in, so the server cannot list its tools. Press Sign in
authorization_required, credential_not_foundThis server needs a personal sign-in. Press Sign in
auth_required, credential_invalid, token_invalidThe 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

CodeMeaning and fix
oauth_state_invalidThe sign-in link expired or was already used. Start again — it lasts about ten minutes
mcp_auth_failedThe sign-in did not complete. Finish the window in one go; a second sign-in cancels the first
access_deniedDeclined at the provider. Some providers also require choosing a site or workspace — that choice is not optional
redirect_uri_mismatch, client_redirect_uri_mismatchThe provider does not allow AVA's callback URL. Add https://<your-ava-host>/api/v1/mcp/auth/callback at the provider
unauthorized_clientAlmost always: the AVA address changed after the server was added. Re-add it from the address you use now
dynamic_registration_failedThe server will not register AVA automatically. Create an OAuth client for AVA at the provider and paste its client ID under Advanced
oauth_issuer_mismatchThe 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_missingThe server promised to identify itself and did not. A defect in the server's authorization server
auth_strategy_mismatch, credential_owner_mismatchThe server is configured for a different kind of sign-in. Remove and re-add it

What the provider returned

CodeMeaning and fix
invalid_targetThe 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_mismatchThe 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_largeThe provider returned something AVA will not store or use. These are server-owner problems
credential_rejectedThe client ID or secret was rejected. Secrets get rotated — re-enter them under Advanced
background_refresh_unsupportedThe provider offers no refreshable grant, so the connection expires about an hour after sign-in. Chat still works; leave scheduled-task use off

Discovery

CodeMeaning and fix
discovery_absentThe server does not publish how it wants users to sign in. Not an error — use Advanced
discovery_authorization_server_undeclaredThe 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_insecureThe published metadata is malformed or not served over HTTPS
discovery_unauthorizedThe metadata is behind the server's own login. Discovery documents must be readable without a token
discovery_issuer_mismatchThe 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

CodeMeaning and fix
no_enabled_toolsConnected, but nothing usable. Usually the signed-in account has no access at the vendor
tool_limit, total_schema_limitThe 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_forbiddenOne 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_invalidThe server published a duplicate or unusable tool name
response_too_large, pagination_limitThe server returned more data, or more pages, than AVA will read

AVA-side configuration

CodeMeaning and fix
control_plane_unavailableThe database migration has not been applied on this deployment. Raise with DataRM
credential_store_unavailableKey Vault or the encryption key is not configured here. Servers needing a sign-in cannot be added until it is
request_origin_invalidAVA cannot determine its own public address — usually a deployment URL misconfiguration
internal_errorA fault inside AVA. Note the time; the server log holds the detail

Access and state

CodeMeaning and fix
installation_forbiddenYou are not in a group this server is shared with
installation_unavailableThe server is turned off. Turn it back on from its row
installation_not_found, not_foundRemoved by another administrator. Refresh the page
installation_conflictSomeone else changed it while you were working. Refresh, then reapply
display_name_takenAnother connection already uses that name — names must be unique so users can tell them apart
access_policy_requiredNo availability has been set, so nobody can use it. Use Rename & availability
promotion_refusedA destructive tool cannot run unattended. It stays available in chat, where a person approves it
background_credentials_forbiddenUse Allow scheduled tasks on the server's row if unattended use is intended
credential_not_replaceableThis 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.

SymptomCauseFix
The model never uses the serverIts tool descriptions do not match how users phrase things, or the server is not selected as connected dataRewrite the description and keywords in the server's detail panel; check the user selected it
The model picks a built-in tool insteadThe vendor's wording competes badly against AVA's tuned built-insRewrite the remote tool's description and keywords — this is the intended fix, and it survives refreshes
A tool asks for confirmation that shouldn'tIt classified as write because its name reads as oneAsk the server owner to rename it, or accept the prompt. AVA will not relax a classification
A tool that should be gated isn'tIt classified as readDisable that tool from the server's detail panel
Answers went stale after a vendor updateThe snapshot still holds the old tool listPress Refresh tools
It works for the admin and nobody elsePer-user server; only the admin has signed inEach user must complete their own sign-in