Skip to content

Conversation

@dcramer
Copy link
Member

@dcramer dcramer commented Nov 1, 2025

Refactors the Sentry flush approach to use the main OAuth provider wrapper instead of the onToolComplete callback. This ensures Sentry logs are flushed for all requests, not just MCP tool executions.

Changes:

  • Remove onToolComplete callback from buildServer
  • Remove duplicate Sentry.flush after createMcpHandler
  • Add Sentry.flush in wrappedOAuthProvider for all requests
  • Rename corsWrappedOAuthProvider to wrappedOAuthProvider for brevity

Refactors the Sentry flush approach to use the main OAuth provider wrapper
instead of the onToolComplete callback. This ensures Sentry logs are flushed
for all requests, not just MCP tool executions.

Changes:
- Remove onToolComplete callback from buildServer
- Remove duplicate Sentry.flush after createMcpHandler
- Add Sentry.flush in wrappedOAuthProvider for all requests
- Rename corsWrappedOAuthProvider to wrappedOAuthProvider for brevity

Co-Authored-By: Claude Code <[email protected]>
@dcramer dcramer merged commit ec21252 into main Nov 1, 2025
14 checks passed
@dcramer dcramer deleted the fix-sentry-try-again branch November 1, 2025 00:44
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.

2 participants