Skip to content

feat(mcp): log each ChatGPT scope refusal and whether it asked to re-link - #122

Merged
mikipalet merged 1 commit into
developfrom
fix/chatgpt-challenge-telemetry
Nov 23, 2026
Merged

mikipalet merged 1 commit into
developfrom
fix/chatgpt-challenge-telemetry

Conversation

@mikipalet

Copy link
Copy Markdown
Member

Why

Wave 1 is live on the ChatGPT plugin. The first inbox and ads calls from links made before the read scopes existed got 403 as expected, but the tool-call log can't show whether MissingScopeChallengeMiddleware answered with the insufficient_scope re-link challenge or passed a plain error through, for example because the token's scope claim was missing. Without that we can't confirm existing users get the re-link prompt.

What

  • Each group 403 on a scoped /chatgpt tool writes an mcp_scope_challenge line to the tool-call log that feeds Axiom: tool, needed scope, the token's scope, and challenged.
  • Behaviour is unchanged.

🤖 Generated with Claude Code

https://claude.ai/code/session_01Kx4ZnYRCwTShnKwf5bar5Y

…link

Wave 1's first inbox and ads calls from old ChatGPT links came back 403 as
expected, but nothing showed whether the insufficient_scope challenge
went out. The middleware now writes an mcp_scope_challenge line (tool,
needed scope, the token's scope, challenged) to the tool-call log that
feeds Axiom.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Kx4ZnYRCwTShnKwf5bar5Y
@mikipalet
mikipalet merged commit 8131ff7 into develop Nov 23, 2026
4 checks passed
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.

1 participant