Skip to content

Feedback tool arguments are recorded unscrubbed on MCP spans #27181

Done

Description

@logaretm

The feedback tool removes tokens and email addresses from a report before sending it as User Feedback. With MCP input recording on, which is the default, the span of the same tools/call gets the raw arguments as mcp.request.argument.*, so the scrubbing only covers half of what we send.

feedback message:  "Task: refund\n\nCalled with key [REDACTED_API_KEY] for [REDACTED_EMAIL] and it broke"
span attribute:    mcp.request.argument.description = "Called with key sk-abcdefghijklmnopqrstuvwxyz0123 for me@example.com and it broke"

Reproduced on Node with mcpFeedbackIntegration on MCP SDK v1 and v2. Turning off dataCollection.mcp.inputs removes it, but that drops the arguments of every other tool too.

Fix: record the feedback tool's arguments on the span with the same scrubbing as the report, or leave them off.

Activity

  1. self-assigned this
    on Dec 4, 2026
  2. linear-code commented on Dec 4, 2026

    @linear-code
  3. logaretm commented on Dec 4, 2026

    @logaretm
    MemberAuthor

    This is expected, as per our data collection spec, if the user turns it off then it works as expected.

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

Metadata

Metadata

Assignees

Labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions