Skip to content

Conversation

@cursor
Copy link

@cursor cursor bot commented Dec 9, 2025

Refactors the use_sentry tool to directly wrap MCP tool handlers for embedded agents, ensuring constraint injection (e.g., organizationSlug) is consistently applied.

The previous use_sentry architecture used an in-memory MCP server, which failed to re-inject session-level constraints into tool call parameters when the embedded agent executed them. This led to tools like search_errors failing due to missing required slugs. The new wrapper-based approach explicitly injects these constraints directly before calling the real tool handlers, guaranteeing all necessary parameters are present.


Open in Cursor Open in Web

Co-authored-by: jenn.muengtaweepongsa <jenn.muengtaweepongsa@sentry.io>
@cursor
Copy link
Author

cursor bot commented Dec 9, 2025

Cursor Agent can help with this pull request. Just @cursor in comments and I'll start working on changes in this branch.
Learn more about Cursor Agents

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