Commit eb87f60
fix(extension): fail closed on the recordDestructive/sync setting fallback
cfg.get(...) fallbacks for mcp.categories.recordDestructive and .sync were
still `true`, contradicting Task 1's intent that both default off. Inert
today (package.json registers a real default of false, which wins), but
would silently widen if that settings block were ever renamed/unregistered.
Flip both to `false`.
docs(mcp-server): document the LEGACY_CATEGORIES_DEFAULT_ON granularity ceiling
LEGACY_CATEGORIES_DEFAULT_ON gates absent tools-config.json keys by
category, not tool name — so a standalone npm user with an on-disk custom
profile who explicitly disabled Record Write can silently regain a *new*
tool added to that already-adopted category (upload_attachment, and
create_records/update_records if they postdate the user's config). Never
affects delete_records (record-destructive is a new category, correctly
excluded) and never affects VS Code extension users (syncSettingsToFile
always writes an explicit key for all 71 tools). Strictly better than
pre-pass behavior, which had no category gate at all. No resolution logic
changed — documents the known limitation in CHANGELOG.md for npm
consumers and adds a ponytail: comment at the allowlist definition naming
the ceiling and the upgrade path (a frozen tool-name allowlist).
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>1 parent 58e5efd commit eb87f60
3 files changed
Lines changed: 58 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
270 | 270 | | |
271 | 271 | | |
272 | 272 | | |
273 | | - | |
| 273 | + | |
274 | 274 | | |
275 | 275 | | |
276 | 276 | | |
277 | 277 | | |
278 | 278 | | |
279 | 279 | | |
280 | 280 | | |
281 | | - | |
| 281 | + | |
282 | 282 | | |
283 | 283 | | |
284 | 284 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
5 | 48 | | |
6 | 49 | | |
7 | 50 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
153 | 153 | | |
154 | 154 | | |
155 | 155 | | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
156 | 169 | | |
157 | 170 | | |
158 | 171 | | |
| |||
0 commit comments