Skip to content

feat: read-only mode (v1.0.2)#9

Merged
Dan8Oren merged 4 commits into
mainfrom
dano/read-only-mode
Apr 27, 2026
Merged

feat: read-only mode (v1.0.2)#9
Dan8Oren merged 4 commits into
mainfrom
dano/read-only-mode

Conversation

@Dan8Oren

Copy link
Copy Markdown
Owner

Summary

Adds MCP_APPLE_NOTES_READ_ONLY=1 env variable as a safety net for users who want to explore their notes without risk of mutations.

  • Hides mutating tools (create-note, edit-note, append-to-note, move-note, delete-note) from tool listing when enabled
  • Blocks mutating calls at execution with a clear ReadOnlyError (belt-and-suspenders)
  • Logs read-only mode status at startup
  • Updated README: features list, setup tip, dedicated section before verbose mode

Test plan

  • Set MCP_APPLE_NOTES_READ_ONLY=1 → only 5 read-only tools listed
  • Read-only tools (list-folders, list-notes, etc.) work normally
  • Mutating tools return ReadOnlyError if called directly
  • Unset env var → all 10 tools available again
  • tsc --noEmit passes

🤖 Generated with Claude Code

Dan8Oren and others added 4 commits April 27, 2026 10:57
Adds an optional safety net that disables all mutating tools (create, edit, append, move, delete) when MCP_APPLE_NOTES_READ_ONLY=1 is set. Mutating tools are hidden from the tool listing and blocked at execution.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Removed duplicate tip about enabling read-only mode and cleaned up formatting.
@Dan8Oren Dan8Oren force-pushed the dano/read-only-mode branch from 8373371 to 180f8e3 Compare April 27, 2026 08:46
@Dan8Oren Dan8Oren changed the title feat: read-only mode (v1.1.0) feat: read-only mode (v1.0.2) Apr 27, 2026
@Dan8Oren Dan8Oren merged commit 8f1dc85 into main Apr 27, 2026
1 check passed
@Dan8Oren Dan8Oren deleted the dano/read-only-mode branch April 27, 2026 14:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant