Skip to content

feat(mcp): close pre-existing agent allowlist gaps - #922

Merged
h4yfans merged 1 commit into
mainfrom
mcp-allowlist-gaps
Aug 3, 2026
Merged

feat(mcp): close pre-existing agent allowlist gaps#922
h4yfans merged 1 commit into
mainfrom
mcp-allowlist-gaps

Conversation

@h4yfans

@h4yfans h4yfans commented Aug 2, 2026

Copy link
Copy Markdown
Collaborator

What

  • Allowlist the remaining branches of the inbox conversion engine: inbox.convertToEvent, inbox.convertToReminder
  • Allowlist notes.applyTemplate so an agent can apply a template it can already read
  • Allowlist the settings.get/setFeaturesSettings and settings.get/setInboxSettings pairs
  • Add a regression guard for the operations deliberately kept out (telemetry, feedback, diagnostics, shell/OS-surface actions)

Why

Without the feature toggles an agent cannot tell which surfaces are enabled, so it suggests actions the user cannot perform. Closes #921.

Allowlist the remaining branches of the inbox conversion engine
(convertToEvent, convertToReminder), notes.applyTemplate so an agent can
apply a template it can already read, and the features/inbox settings
get/set pairs. Feature toggles matter most: without them an agent cannot
tell which surfaces are enabled and may suggest actions the user cannot
perform.

Adds a regression guard for the operations deliberately kept out —
telemetry, feedback, diagnostics, and shell/OS-surface actions — so a
future audit does not re-file them.

Closes #921
Copilot AI review requested due to automatic review settings August 2, 2026 21:32
@github-actions github-actions Bot added documentation Improvements or additions to documentation enhancement New feature or request test labels Aug 2, 2026

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Ready to approve

The allowlist additions align with the stated gaps, are covered by focused regression tests, and the documentation is updated accordingly.

This review doesn't count toward merge requirements. Sign up for the private preview to control whether Copilot approvals count.

Pull request overview

Closes remaining MCP desktop allowlist gaps so agents can (a) complete inbox conversions, (b) apply note templates they can already read, and (c) read/write feature + inbox settings—while adding a regression test guard against re-allowlisting deliberately excluded telemetry/feedback/diagnostics and shell/OS-surface operations.

Changes:

  • Allowlisted inbox.convertToEvent / inbox.convertToReminder, notes.applyTemplate, and settings.get/setFeaturesSettings + settings.get/setInboxSettings.
  • Added targeted regression tests covering the new allowlisted operations and ensuring excluded operations stay excluded.
  • Updated Agent MCP docs to reflect the expanded allowlist surface and the intentional exclusions.
File summaries
File Description
packages/contracts/src/agent-mcp-channels.ts Adds the missing desktop read/write operation names to the MCP allowlists and schema enum.
packages/contracts/src/agent-mcp-channels.test.ts Adds regression tests for the newly allowlisted ops and asserts excluded ops are not present.
apps/docs/src/user-guide/ai/agent-mcp.md Documents the new allowlisted operations and clarifies excluded operation categories.
Review details
  • Files reviewed: 3/3 changed files
  • Comments generated: 0
  • Review effort level: Lite

We're testing this review assessment. Please use 👍 or 👎 to tell us if it's correct.

@codecov

codecov Bot commented Aug 2, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@h4yfans
h4yfans marked this pull request as ready for review August 3, 2026 09:22
@h4yfans
h4yfans merged commit 42d9671 into main Aug 3, 2026
20 of 21 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation enhancement New feature or request test

Projects

None yet

Development

Successfully merging this pull request may close these issues.

MCP: pre-existing allowlist gaps (inbox conversions, applyTemplate, features/inbox settings)

2 participants