No MCP tool changes project or organization Security & Privacy settings (IP scrubbing, data scrubbing)
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 新手友好度
- 45/100
- Issue 类型
- 功能
- 描述清晰度
- 基本清楚
- 活跃度
- 活跃
- 技术栈
- typescript
调研方向
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.
由索引模型根据 Issue 内容生成。
描述
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.
--
- 主要语言
- TypeScript
- 星标
- 975
- 派生
- 189
- 平均合并
- 19 小时 57 分钟
- 30 天内合并 PR
- 542
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
getsentry/toolkit 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 72/100
getsentry/toolkit#2583 · 1 条评论 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 77/100
getsentry/toolkit#2531 · 1 条评论 ·
维护者通常 1 天内回复
-
mcp-feedback-pattern
难度 2/5 1-3 小时 新手友好度 74/100
getsentry/toolkit#2458 · 2 条评论 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 75/100
getsentry/toolkit#2444 · 1 条评论 ·
维护者通常 1 天内回复
-
mcp-feedback-pattern
难度 2/5 1-3 小时 新手友好度 67/100
getsentry/toolkit#2362 · 1 条评论 ·
维护者通常 1 天内回复
查看 getsentry/toolkit 的全部 Issue
相似的 Issue
-
Release utils decode git output chunk by chunk, so a multi-byte character can turn into U+FFFD可能已有人在做 @goranai 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 74/100
维护者通常 2 天内回复
-
Task retarget keeps the old host in task scope and adds the new host in a form that matches nothing可能已有人在做 @chaitanya0305 今天认领。 未关闭bug P2
难度 2/5 1-3 小时 新手友好度 62/100
BaaRai/ARTEX#652 · 1 条评论 · 1 个 reaction ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 62/100
compiler-explorer/compiler-explorer#9710 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 76/100
维护者通常 1 天内回复
-
bug effort:S P3
难度 2/5 1-3 小时 新手友好度 72/100
nightscout/nocturne#4556 ·
维护者通常 1 天内回复