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
Open
fern-api[bot] wants to merge 1 commit into
fern-api[bot] wants to merge 1 commit into
Conversation
fern-api
Bot
requested review from
devalog,
jkonrath-postman and
nerminamiller-postman
as code owners
September 17, 2026 15:49
|
|
||
| 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. |
Contributor
There was a problem hiding this comment.
📝 [vale] <Microsoft.Uppercase> reported by reviewdog 🐶
Don't use all uppercase for emphasis.
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: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 passingx-fern-skip-save-query: true(or1) as an HTTP header — with aclaude mcp add --headerexample. 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.