GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — feat(mcp): add edit and organize tools for notes and snippets by antonreshetov · Pull Request #982 · massCodeIO/massCode

Conversation

@antonreshetov

@antonreshetov antonreshetov commented Oct 14, 2026

Copy link
Copy Markdown
Member

Summary

Adds editing and organization of notes, snippets, folders and HTTP requests to the MCP server. Edits are protected by a new opt-in preference, and writes are checked against concurrent changes.

Changes

  • New MCP tools: list_structure, list_items, update_note, update_snippet, trash_item, restore_item, create_folder, update_folder, delete_folder, move_items, get_note_links.
  • create_note and create_snippet accept folderId and tags.
  • Optimistic concurrency: items expose contentRevision. A write with a stale revision returns CONFLICT.
  • Clearer errors for invalid names: the error explains the reason and lists forbidden characters.
  • New preference api.mcp.allowEdits ("Allow MCP to modify existing items"). All tools that change existing items, including update_http_request, return EDITING_DISABLED while it is off.
  • list_http_requests accepts status: active | trash, so request IDs can be found for restore_item.
  • trash_item clears folderId, matching the app.
  • delete_folder removes only empty folders: subfolders, active items or files that massCode does not manage block deletion.
  • Storage: getUnmanagedFiles for code and notes folders, and a fix that prevents a folder from becoming its own parent.
  • Docs: MCP guide, documentation index and README updated; Claude Code is listed first.

Behavior changes and migration

  • api.mcp.allowEdits is enabled automatically for users who already have MCP enabled, so their current behavior is preserved. New users get it disabled by default.
  • For new users, update_http_request requires allowEdits. Until they enable it, the tool returns EDITING_DISABLED.

Testing

  • Vitest: src/main/api/mcp, store preferences, storage folders (257 tests).
  • ESLint on the changed files.
  • TypeScript check for the main process.
  • VitePress docs build.
  • Manual check of all tools through Claude Code on a dev build.

Known limitations

  • Autosave of a note that is open in the editor can overwrite an edit made through MCP.
  • Rolling back the runtime cache when a write fails is moved to a separate task.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@antonreshetov
feat(mcp): add edit and organize tools for notes and snippets
bda78a5
@antonreshetov antonreshetov self-assigned this Oct 14, 2026
@antonreshetov
antonreshetov merged commit 48cd9e9 into main Oct 14, 2026
@antonreshetov
antonreshetov deleted the feat/mcp-edit-notes-snippets branch October 14, 2026 01:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

@antonreshetov antonreshetov

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

1 participant

@antonreshetov
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.