logo

Vedatrace

AI agents & MCP

MCP troubleshooting

Resolve VedaTrace MCP authentication, transport, paging, and archive errors.

AI agent access is missing or the endpoint returns 404

The MCP integration is coming soon. The hosted dashboard needs the feature rollout before these instructions can be used. If you use a separately hosted dashboard, confirm the MCP token migration and dashboard release have been applied. Use /api/mcp on the dashboard origin, not the log-ingestion URL.

401: token required or invalid

Check that your client sends Authorization: Bearer <token> on every request. Use a token created in API Keys → AI agent access with the veda_mcp_ prefix. An ingestion API key cannot authenticate to MCP.

The token may have expired or been revoked, its creator may have lost project membership, or the project may have been deleted. Create a replacement token from the intended project if necessary. A dashboard login cookie does not replace the bearer token.

If you use an environment variable, confirm your client can actually read it. Reloading the MCP connection may be necessary after updating a secret. Never paste a real token into a public issue or diagnostic screenshot.

Client asks for OAuth sign-in

This version supports manually configured bearer tokens. Choose a client configuration that supports custom HTTP authorization headers. OAuth-only connections are not supported yet.

403: Origin not allowed

Browser requests that supply an Origin must use the dashboard's own origin. Native MCP clients normally omit Origin; those requests are allowed with a valid token. This is separate from the allowed-origins setting on log-ingestion keys. Changing an ingestion key's origin list does not change MCP access.

Do not disable browser security to work around this. Use a compatible native client or connect from the dashboard's origin.

405 on GET or DELETE

The server is stateless and serves MCP requests over POST. GET does not open a persistent SSE stream; DELETE does not terminate a stored session. Configure Streamable HTTP rather than the older SSE transport. A standalone GET returning 405 does not mean the endpoint is down.

413 or 415

HTTP 413 means the request exceeded 64 KiB. Send a smaller MCP request. HTTP 415 means the content type is unsupported; MCP requests must use application/json. Compatible SDKs also negotiate supported response types automatically.

429: request limit reached

Wait for the Retry-After: 60 interval. Each token allows 60 authenticated HTTP requests per fixed minute, including tool discovery. Reduce parallel calls and unnecessary polling, or narrow the investigation. Do not retry continuously.

Empty search results

Confirm the project with vedatrace://project, check the time window and timezone, and discover exact service names with vedatrace_list_services. The default window is the last 24 hours and the maximum is 31 days.

query searches only the first 200 indexed message characters. It treats %, _, and other input as literal text, not wildcard or regex syntax. A relevant term may exist only in the full archived body.

Cursor filters changed

Reuse the previous next_cursor with the same service, severity, query, and window. Start a fresh search without a cursor when changing filters. For service pagination, reuse next_offset and the returned window.

Full message unavailable or truncated

An indexed preview can outlive its archive. Missing, expired, unreadable, or oversized archived batches produce tool errors. A log ID from another project also cannot be retrieved.

Messages and metadata have output limits; inspect truncated. Metadata is excluded unless include_metadata is true. State these limits when reporting evidence rather than assuming the displayed text is complete.

503: temporarily unavailable

Retry after a short delay. If the failure persists, contact support with the time, HTTP status, client name, and affected project. Omit tokens and sensitive log contents.

On this page