Repository navigation
Description
Bug Description
The update_issue tool returns API error messages with Event IDs, but the operations actually succeed. This creates confusion as the tool reports failure when issues are successfully updated.
Steps to Reproduce
- Authenticate with Sentry MCP via OAuth (HTTP transport)
- Call
update_issueto mark an issue as resolved:update_issue( organizationSlug='scws', issueId='SMOKINGCAT-1P', status='resolved', regionUrl='https://de.sentry.io' ) - Observe error response returned
- Query issues again with
search_issues - Verify issue was actually marked as resolved
Expected Behavior
update_issueshould return success response when operation succeeds- Tool should only return errors when operation actually fails
Actual Behavior
- Tool returns error message: "It looks like there was a problem communicating with the Sentry API"
- Provides Event IDs suggesting API failure
- However: The issue status IS successfully updated in Sentry
- Subsequent queries confirm the operation succeeded
Evidence
Attempted to update 3 issues, all returned errors but all succeeded:
-
SMOKINGCAT-1P (IntegrityError)
- Error Event ID:
801c82e629604ca28e4d3dd37663a7af - Status: Actually resolved ✅
- Error Event ID:
-
SMOKINGCAT-1N (ModuleNotFoundError)
- Error Event ID:
c5ba0e2c42a241049fdecb50875fac15 - Status: Actually resolved ✅
- Error Event ID:
-
SMOKINGCAT-1Q (SyntaxError)
- Error Event ID:
3b3d6debee614b67bbaf1e1ae75915d9 - Status: Actually resolved ✅
- Error Event ID:
Verified by running search_issues after the operations - only 1 unresolved issue remained (down from 4), confirming all 3 updates succeeded.
Environment
- MCP Server:
https://mcp.sentry.dev/mcp(HTTP/OAuth) - Transport: HTTP with OAuth authentication
- Client: Claude Code with Sentry MCP integration
- Organization:
scws - Region:
https://de.sentry.io(EU region) - Date: 2025-11-20
Impact
- Severity: Medium - Operations work but error reporting is incorrect
- User Experience: Confusing - users think operations failed when they succeeded
- Workaround: Ignore error responses and verify with subsequent queries
Suggested Fix
Check error handling in update_issue implementation:
- Verify HTTP response parsing logic
- Ensure success responses (2xx) are correctly identified
- Review error detection logic that generates Event IDs
Additional Notes
This may be related to response format differences between Sentry regions or OAuth authentication flow. The fact that all 3 operations consistently showed this pattern suggests a systematic issue rather than intermittent API problems.
Activity
fix(api-client): add passthrough to schemas and fix substatus type (#647
feat(cli): Treat SENTRY_AUTH_TOKEN as an account next to stored logins (