You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(mcp): per-tool forward-arg allowlist for all built-in tools (#19)
Extends the v1.14.0 forward-arg stripping from filesystem-only to EVERY built-in
tool, and corrects an over-strip:
- ForwardArgAllowlist maps each built-in tool to its full legitimate arg surface:
send_email {to,subject,body}, run_command {cmd}, read_calendar {range}, plus the
full @modelcontextprotocol/server-filesystem tool set (read_file {path,head,tail},
edit_file {path,edits,dryRun}, search_files {path,pattern,excludePatterns}, etc.).
Any arg outside a tool's surface is stripped before forwarding.
- Fixes the v1.14.0 blanket fs key-set (path/source/destination/paths/content) which
would have dropped legitimate args of richer fs tools (edits, pattern, head/tail,
sortBy, excludePatterns) — strictness no longer breaks function.
- Custom-mapper tools not in the allowlist are forwarded unchanged (mapper owns the surface).
- NormalizeForForward restructured: fs path-canonicalization (under a root) then the
per-tool allowlist for any built-in.
Tests: non-fs strip (read_calendar), full-surface preservation (search_files keeps
pattern, strips unknown). 251 passing + 3 env-gated skipped.
Co-authored-by: Claude Opus 4.8 (1M context) <[email protected]>
<PackageReleaseNotes>v1.14.0 — seventh review pass: MCP bundles record applied approvals + strip unknown forward args; granular email/calendar verification; CI requires real FS-MCP + packs before npx; digest-pinned Docker with .dockerignore + writable runs volume; proxy-mode dedicated auth key; explain no longer honors caller approvals. See CHANGELOG.md.</PackageReleaseNotes>
21
+
<PackageReleaseNotes>v1.14.1 — per-tool MCP forward-arg allowlist for ALL built-in tools (send_email/run_command/read_calendar + the full filesystem tool set), replacing the v1.14.0 fs key-set that over-stripped richer tools (edit_file/search_files/etc.). See CHANGELOG.md.</PackageReleaseNotes>
22
22
23
23
<!-- Reproducible restore: lock files are honored in CI via locked-mode restore. -->
0 commit comments