Troubleshoot the MCP server
This page covers common issues you may encounter when using the Agent Engine MCP server.
MCP server not found
Your agent can't discover the MCP server's tools.
- Ensure you restarted your agent after registering the server.
- Verify the registration succeeded by checking your agent's MCP server list or configuration file.
Environment variable errors
The MCP server fails to start or returns credential errors.
- Verify your
.envfile is in the same directory where you runadpcommands. - Confirm the variable names in your
.envfile match the${env.VAR_NAME}placeholders in your YAML configuration. - Check that there are no extra spaces or characters in your
.envvalues.
HTTP 401 errors
Authentication failed.
- Open source mode: Your API credential is invalid or expired. Generate a new credential from the third-party service and update your
.envfile. - Hosted mode: Your Agent Engine credentials are invalid. Run
uv run adp login <organization-id>to re-enter your Client ID and Secret.
HTTP 403 errors
Authentication succeeded but the request is forbidden.
- Your API credential doesn't have the required permissions. Check the third-party service's documentation for the scopes or roles your credential needs.
Long text fields are truncated
For list and search results, the MCP server truncates text fields longer than 200 characters to reduce token usage. Truncated fields are marked with [truncated]. To get the full value:
- Use the
getaction with the record ID. - If
getis not available, retry the original query withskip_truncation=trueand tightselect_fieldsandlimit.
Search returns no results
If search returns no results but you expect data:
- The
searchaction only works in hosted mode with the context store enabled. In open source mode, uselistwith date boundary parameters instead. - The search index may lag behind by hours. Try
listwith date boundary parameters instead. - Try
fuzzymatching instead oflikein your filter (e.g.,{"fuzzy": {"name": "search term"}}).
Date range queries miss recent data
When querying date ranges that include today, the search index may not have the latest records. Issue both a search call and a list call with date boundary parameters, then merge results and deduplicate by ID.