Add stage_deletion MCP tool for Claude-assisted email cleanup#51
Open
Add stage_deletion MCP tool for Claude-assisted email cleanup#51
Conversation
- Add stageDeletion handler that supports both Gmail-style query and structured filters (from, domain, label, date range, has_attachment) - Pass dataDir to MCP server for deletion manifest storage - Add .mcp.json to gitignore (contains machine-specific paths) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Owner
|
Being able to stage deletes via MCP sounds like an obvious and useful thing to do! I will review and test this and work on getting it released in the near future |
Owner
|
I'm going to release 0.5.0 shortly before letting this out into the wild so it can have a day or two for me to test and harden any issues that I see |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
It could be that you want to keep the tool very clean and safe from an MCP perspective. But I wanted to clean up all of my email and I wanted to do that using Claude rather than going through the TUI.
So I had Claude add this to the MCP implementation. I'll be super clear, I had Claude do the work here. I am not a Go developer, and so apologies in advance for whatever annoyance this has because I've missed a way to do things etc.
I'm very aware that one of the things I perceive that you are aiming for here is safety. All the deletes just go to the staged deletion for further deletion. So I think this fits in well with the pattern, but I can also understand if this wouldn't be interesting for you.
Summary of changes: