Skip to content

docs: feat(fai): let test/eval traffic opt out of Ask Fern analytics (s… - #6993

Open
fern-api[bot] wants to merge 1 commit into
mainfrom
2026-09-17-fern-ai-1fb7a4-a4d056a7
Open

fern-api[bot] wants to merge 1 commit into
mainfrom
2026-09-17-fern-ai-1fb7a4-a4d056a7

Conversation

@fern-api

@fern-api fern-api Bot commented Sep 17, 2026

Copy link
Copy Markdown
Contributor

Added a new "Exclude test and eval traffic from analytics" section to fern/products/docs/pages/ai/mcp-server.mdx, placed between "Authenticated sites" and "Disable the MCP server". The section explains that automated test/eval requests are recorded in Ask Fern analytics by default, and shows how to suppress recording by passing x-fern-skip-save-query: true (or 1) as an HTTP header — with a claude mcp add --header example. The request is still answered and still consumes AI credits; only the analytics write is skipped. Source: https://github.com/fern-api/fern-platform/pull/14760.


By default, every request through the MCP server is recorded as a conversation in the [Ask Fern analytics dashboard](/learn/docs/ai-features/ask-fern/overview). Automated tests or evals that call the server are recorded alongside real user queries, which can skew the data.

To prevent a request from being recorded, include the header `x-fern-skip-save-query: true` (or `x-fern-skip-save-query: 1`) on the MCP HTTP request. The request is still answered normally and still consumes AI credits — only the analytics recording is skipped.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

📝 [vale] <Microsoft.Uppercase> reported by reviewdog 🐶
Don't use all uppercase for emphasis.

@github-actions

Copy link
Copy Markdown
Contributor

🌿 Preview your docs: https://fern-preview-2026-09-17-fern-ai-1fb7a4-a4d056a7.docs.buildwithfern.com/learn

Here are the markdown pages you've updated:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants