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>
22 lines
644 B
Nix
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.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";
|
|
};
|
|
}
|