feat(phantom-ship): hara-gmail-mcp server (path 1, IMAP+SMTP) 📬

Adds an MCP server exposing read tools (list_inbox, search, read_email)
across three personal Gmail accounts using existing app passwords in
/etc/openclaw/. Wired into claude-channels via --mcp-config. Slated for
replacement by an OAuth2 Gmail+Calendar server in path 2.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
DannyDannyDanny 2026-05-02 14:15:10 +02:00
parent 771cc58076
commit af9f735abc
9 changed files with 559 additions and 3 deletions

View file

@ -0,0 +1,22 @@
# 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.1.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";
};
}