feat: draft anonymizing MCP proxy (Fullstory preset) - #1
Draft
anttiviljami wants to merge 1 commit into
Draft
anttiviljami wants to merge 1 commit into
anttiviljami wants to merge 1 commit into
Conversation
Gateway that holds the Fullstory MCP API key, authenticates clients with revocable proxy tokens, and runs every tool result (JSON + SSE) through @epilot/anonymization: strict mode for user property bags, URL query redaction, binary content removal, and blocked raw-DOM/screenshot tools. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DmJFpgrBbyyuyoyLFihyow
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.
Summary
Draft MCP gateway (
mcp-proxy/, self-contained, depends on published@epilot/anonymization@^0.2.0) that sits between Claude and Fullstory MCP and anonymizes every tool result before the model sees it. Motivation: Fullstory MCP returns end-useruser_propertiesand has no access level to turn that off.PROXY_TOKENS(header or/mcp/<token>)user_properties,userVars,traits, …) → strict: known PII pseudonymized, all other strings redacted unlessKEEP_USER_PROPERTIESanonymizeUnknown+ Fullstory overrides (displayName,uid,ip,latlong…), URL query redaction (except*.fullstory.comreplay links), markdownKey: valuehandlingsession_screenshot,session_get_a11y_tree,session_diffblocked (raw pixels/DOM)vitest.config.tsexcludesmcp-proxy/; separate CI jobTest plan
mcp-proxy: typecheck + 9 tests (sanitizer + e2e with fake upstream: auth, credential swap, JSON, SSE, blocked tools)🤖 Generated with Claude Code
https://claude.ai/code/session_01DmJFpgrBbyyuyoyLFihyow
Generated by Claude Code