No MCP tool changes project or organization Security & Privacy settings (IP scrubbing, data scrubbing)
Maintainer antworten meist innerhalb von 1 Tag
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 3/5
- Geschätzter Aufwand
- 1-2 Tage
- Anfängerfreundlichkeit
- 45/100
- Issue-Typ
- Feature
- Klarheit
- Größtenteils klar
- Aktivitätsstatus
- Aktiv
- Tech-Stack
- typescript
Rechercherichtung
Start with the input schema and handler in packages/mcp-core/src/tools/catalog/update-project.ts, then the updateProject method in packages/mcp-core/src/api-client/client.ts, which forwards only name, slug and platform. Add the optional privacy fields and send only those that are set, leaving the name, slug and platform behaviour unchanged. Done when an MSW project PUT test shows that a call with only scrubIPAddresses true sends just that field, and the tool output returns the resulting values. The org:write scope question is a maintainer decision and is out of scope for this fix.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
Problem
An agent asked to turn on "Prevent Storing of IP Addresses" (or change data scrubbing) has no MCP tool for it, so it sends the user to the web UI.
update_projectonly takesname,slugandplatform(packages/mcp-core/src/tools/catalog/update-project.ts:28-49), andSentryApiService.updateProjectonly forwards those three fields (packages/mcp-core/src/api-client/client.ts:1709-1729). No other catalog tool writes project or organization privacy options.- The hosted MCP requests
project:writebut notorg:write(packages/mcp-core/src/scopes.ts:2-8), so organization-level settings are out of reach even with a new tool.
The Sentry API already supports both levels (getsentry/sentry @ c04def2681):
- Project —
PUT /api/0/projects/{org}/{project}/acceptsscrubIPAddresses,dataScrubber,dataScrubberDefaults,sensitiveFields,safeFields(src/sentry/core/endpoints/project_details.py:311-328,:357-360; saved at:879-909).project:writeis enough (:663,:797-799), and the MCP already requests it. - Organization —
PUT /api/0/organizations/{org}/(PUBLIC) acceptsscrubIPAddresses("prevent IP addresses from being stored for new events on all projects"),dataScrubber,dataScrubberDefaults,sensitiveFields,safeFields(src/sentry/core/endpoints/organization_details.py:120-172,:956-977). This needsorg:write.
Suggested fix
- Extend
update_project(project-management skill, alreadyproject:write) with optionalscrubIPAddresses,dataScrubber,dataScrubberDefaults,sensitiveFields,safeFields, sent only when set, and return the resulting values in the output so the agent can confirm the change. - Say in the
update_projectdescription that organization-wide privacy settings are not available through MCP, so agents stop guessing and point users at Organization Settings → Security & Privacy. - Maintainer decision: whether the MCP should ever request
org:writefor org-level privacy settings. That is a scope expansion, so it belongs in the write/admin policy discussion rather than a one-off fix.
Tests: MSW handler for project PUT; update_project with only scrubIPAddresses: true sends just that field and does not reset name/slug/platform.
Related
- Same family as other missing write/admin asks: #2471 (cron update/delete), #2137 (code mappings), #2047 (invite members), #876 (dashboard writes).
- #1883 tracks a CLI
project editcommand.
Reports
- MCP-SERVER-GWP (2026-11-27): task "turn on Prevent Storing of IP Addresses for an organization",
feedback.kind=missing,impact=worked_around, hosted server 0.42.0, HTTP transport, Claude Code client. The agent worked around it by droppinguser.ip_addressin the SDK'sbeforeSendand asking the user to flip the toggle in the UI. Sampled spans for the session show only asearch_issuescall before the report; noupdate_projectcall (the agent read the schema and stopped).
Report count: 1
via automation evt_905b9c478746fd9deeb853f85ad7441b · Run ID dispatch_33b55bbb45b1b70900f0a78165277ea6.
--
- Vorherrschende Sprache
- TypeScript
- Sterne
- 975
- Forks
- 189
- Ø Merge
- 19 Std. 57 Min.
- Gemergte PRs (30 T.)
- 542
Entwicklungsumgebung
Dieses Projekt bietet weder Dev-Container noch Dockerfile noch Beitragsleitfaden – die Einrichtung liegt bei Ihnen. Beginnen Sie mit der README; die allgemeinen Schritte stehen in unserem Leitfaden für den ersten Beitrag.
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus getsentry/toolkit
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
getsentry/toolkit#2583 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 77/100
getsentry/toolkit#2531 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
-
mcp-feedback-pattern
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 74/100
getsentry/toolkit#2458 · 2 Kommentare ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 75/100
getsentry/toolkit#2444 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
-
mcp-feedback-pattern
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 67/100
getsentry/toolkit#2362 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
Alle Issues in getsentry/toolkit
Ähnliche Issues
-
Release utils decode git output chunk by chunk, so a multi-byte character can turn into U+FFFDEvtl. vergeben @goranai hat das heute übernommen. Offen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 74/100
Maintainer antworten meist innerhalb von 2 Tagen
-
Task retarget keeps the old host in task scope and adds the new host in a form that matches nothingEvtl. vergeben @chaitanya0305 hat das heute übernommen. Offenbug P2
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 62/100
BaaRai/ARTEX#652 · 1 Kommentar · 1 Reaktion ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 62/100
compiler-explorer/compiler-explorer#9710 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 76/100
Maintainer antworten meist innerhalb von 1 Tag
-
test(web): RevealArtwork's warm tests flake on CI because a 0 ms idle timeout means no deadlineOffenbug effort:S P3
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
nightscout/nocturne#4556 ·
Maintainer antworten meist innerhalb von 1 Tag