Last updated: February 17, 2026
Coding agent issues
"detrics already exists" error
"detrics already exists" error
This happens when you try to add the Detrics MCP server but it’s already registered with your agent.Fix: Remove the existing server first, then re-add it.
- Claude Code
- Gemini CLI
- Codex
"DETRICS_API_KEY is required" error
"DETRICS_API_KEY is required" error
The MCP server started but couldn’t find your API key in the environment.Causes:
- The API key wasn’t passed correctly when adding the server
- The environment variable name was misspelled
-e DETRICS_API_KEY=... (or --env for Codex) flag is included with your full API key."Unauthorized" or invalid key error
"Unauthorized" or invalid key error
Claude & ChatGPT OAuth issues
"Authorization failed" or stuck on login page
"Authorization failed" or stuck on login page
"Connection error" when adding the MCP server URL
"Connection error" when adding the MCP server URL
The server URL was entered incorrectly.Fix: The URL must be exactly:No trailing slash, no
/sse suffix, no /mcp path. Just the base URL.Claude cannot access Detrics tools
Claude cannot access Detrics tools
The MCP connection may have expired or been removed.Fix for Claude:
- Go to Claude Settings → Integrations
- Remove the existing Detrics connection
- Reconnect from app.detrics.io/mcp/claude
- Go to ChatGPT Settings → Connected Apps
- Remove the existing Detrics connection
- Reconnect from app.detrics.io/mcp/chatgpt
ChatGPT MCP settings not visible
ChatGPT MCP settings not visible
MCP support in ChatGPT requires:
- A Plus, Team, or Enterprise subscription
- Developer Mode enabled in ChatGPT settings
Data query issues
"No connections found" response
"No connections found" response
Your agent can reach Detrics, but there are no platforms connected in your workspace.Fix:
- Go to app.detrics.io and connect at least one data source
- Or ask your agent: “Connect my Facebook Ads account” — it will generate an OAuth link for you
"Unknown platform_api" error
"Unknown platform_api" error
The platform identifier used in the query doesn’t match any supported platform.Fix: Use the exact platform identifiers. Ask your agent: “List my connections” to see the correct
platform_api values for your connected platforms.Common identifiers include: facebook_ads, google_ads, tiktok_ads, shopify, google_analytics_4, linkedin_ads, pinterest_ads, bing_ads, stripe.Fields not found or invalid field error
Fields not found or invalid field error
The metric or dimension name used in a query doesn’t exist for that platform.Fix: Ask your agent to list available fields first:This calls
list_fields and returns all valid field names for the platform.Still need help?
Chat with Support
Reach out to our support team for help with any issues not covered here.