Repository navigation
fix(mcp): Keep the CSP report's column number in event details - #2823
Draft
sentry-junior[bot] wants to merge 1 commit into
Draft
sentry-junior[bot] wants to merge 1 commit into
sentry-junior[bot] wants to merge 1 commit into
Conversation
The curated csp object in get_issue_details and get_sentry_resource kept line_number but dropped column_number, which Sentry stores on the CSP interface and returns in the event entry. No other tool returns it, so agents could not read the violation's column.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
1 Skipped Deployment
|
Contributor
📊 MCP Server Token Cost ReportSummary
Per-Tool Breakdown
Note: This measures the static overhead of tool definitions sent to LLM clients with every request. Lower is better. MCP Apps viewsEach
The budget applies to raw bytes, and the view's generator fails over it. |
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The curated
cspobject inget_issue_details(andget_sentry_resource, which delegates to it for event URLs) mappedline_numberbut droppedcolumn_number. Sentry'sCspinterface keeps every report key and the event API returns them in thecspentry (src/sentry/interfaces/base.pyto_json;src/sentry/data/samples/csp.jsonhascolumn_number). No MCP tool returns the raw event JSON, so agents had no way to read the violation's column.This adds a nullable
columnNumbernext tolineNumberin thecsppayload and its output schema, and regeneratestoolDefinitions.json.The output schema gains a field. That is additive for
structuredContent, but it touches the closed-schema concern in #2293.Not in scope: the raw event JSON option the report also asked for, tracked in #2822.
Refs #2822
via automation
evt_905b9c478746fd9deeb853f85ad7441b· Run IDdispatch_4b284450b5ee6491ef2bc2dc16d827e0.--
View Session [Sentry]