Skip to content

Add stage_deletion MCP tool for Claude-assisted email cleanup#51

Open
robelkin wants to merge 1 commit intowesm:mainfrom
robelkin:mcp-deletion
Open

Add stage_deletion MCP tool for Claude-assisted email cleanup#51
robelkin wants to merge 1 commit intowesm:mainfrom
robelkin:mcp-deletion

Conversation

@robelkin
Copy link

@robelkin robelkin commented Feb 4, 2026

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:

  • 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)

- 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>
@wesm
Copy link
Owner

wesm commented Feb 4, 2026

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

@wesm
Copy link
Owner

wesm commented Feb 4, 2026

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

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.

3 participants