dotfiles/nixos/pkgs/hara-gmail-mcp/default.nix
Hara 4d2e40455d hara-gmail-mcp: add mark_read and archive tools (v0.2.0)
Adds two write-capable IMAP tools:
- gmail_mark_read: sets \Seen flag on a message
- gmail_archive: copies to [Gmail]/All Mail and removes from INBOX

The IMAP connection already used SELECT (read-write mode); this just
exposes the mutation surface through MCP.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-03 07:14:42 +02:00

22 lines
644 B
Nix

# Gmail MCP server for Hara.
#
# Path 1 implementation: IMAP for read/sort, SMTP for reply.
# Slated for replacement by an OAuth2 + Gmail API + Calendar API server later.
{ python3Packages }:
python3Packages.buildPythonApplication {
pname = "hara-gmail-mcp";
version = "0.2.0";
pyproject = true;
src = ./.;
nativeBuildInputs = [ python3Packages.setuptools ];
propagatedBuildInputs = [ python3Packages.mcp ];
# The server is launched via stdio by Claude Code; no tests yet.
doCheck = false;
meta = {
description = "Gmail MCP server for Hara (IMAP+SMTP, throwaway pre-OAuth2)";
mainProgram = "hara-gmail-mcp";
};
}