Skip to main content
Glama
roshi-google-chat-mcp

roshi-google-chat-mcp


Roshi Teaching the Sangha: Why Automated Communication Needs Stillness

"When a monastery receives a hundred bells at once, wisdom is not ringing louder—it is knowing which bell to answer, which vow to keep silent, and which record to preserve untouched."

Roshi's Google Chat MCP (roshi-google-chat-mcp) brings the proven local-first architecture of Roshi's Signal MCP and Roshi's Recorder MCP to Google Chat—and expands it into a serene, disciplined Buddha of Automated Communication across both personal @gmail.com and Google Workspace accounts:

  • Three Ways to Connect (Zero Friction to Enterprise):

    1. oauth (Official Google Chat REST API v1): Full Workspace access—spaces, DMs, threads, members, reactions, binary media upload/download, interactive Cards v2, and read state—with automatic PKCE OAuth 2.0 refresh.

    2. web (Zero-GCP Persistent Chrome/Edge Session): Works on personal @gmail.com AND Workspace accounts with zero Google Cloud Console setup, using an isolated browser profile at ~/.roshi-google-chat-mcp/accounts/<alias>/browser_profile.

    3. service_account & Incoming Webhooks: Chat App / Workspace delegated service accounts (RS256 JWT) plus a private named registry of Incoming Webhooks for zero-OAuth space announcements and alerts.

  • SHA-256 SQLite FTS5 Vault + Non-Destructive Edit & Delete Shield:

    • Syncs spaces, threads, members, and SHA-256 hashed attachments into ~/RoshiGoogleChat/vault.db (plus full Google Takeout import!).

    • If a message is edited or deleted remotely in Google Chat, the vault never destroys the original—it preserves original_text, appends edit_history, stamps deleted_remotely_at, and can fire a watch alert.

  • Tamper-Resistant Privacy Policy & Anti-Oracle Search:

    • Strict ignore lists (accounts, spaces, threads, senders, keywords, regexes) and Luhn-validated PII/secret redaction (ssn, credit_card, email, phone, secrets, bank_account, ipv4, custom terms/regexes) locked via CLI (.\gchat-tool.ps1 policy lock).

    • Search queries are re-verified post-redaction so searching for a redacted secret can never act as an oracle.

  • Declarative Sangha Automation + Scheduled Outbox:

    • Watch for message_added, message_edited, message_deleted, or mention_received -> automatically reply in-thread, react with emoji, sync, export, forward to a webhook, launch an antigravity_task, or run any command (such as Codex) with redacted GCHAT_* env vars.

    • Queue future/delayed messages in a local Scheduled Outbox, send rich Interactive Cards v2, and read a calm cross-account Unread & @mentions Digest in one call.


Related MCP server: google-chat-mcp

Install in Seconds

Google Antigravity (one command)

agy plugin install RIAEvangelist/roshi-google-chat-mcp

Installs all 31 MCP tools, the roshi-google-chat-mcp skill, and bundled safety rules, bootstrapping an isolated Python environment automatically on first launch via bootstrap_mcp.py.

Windows / macOS / Linux (local clone)

# Windows (PowerShell)
git clone https://github.com/RIAEvangelist/roshi-google-chat-mcp.git
cd roshi-google-chat-mcp
.\setup.ps1 -InstallPlugin
# macOS / Linux
git clone https://github.com/RIAEvangelist/roshi-google-chat-mcp.git
cd roshi-google-chat-mcp
./setup.sh --install-plugin

Works with Every Major AI Client

AI Client / Environment

Integration

Setup

Google Antigravity (App, CLI, IDE)

Native Plugin (MCP + Skill + Rules)

agy plugin install RIAEvangelist/roshi-google-chat-mcp

Claude Code & Claude Desktop

Native Plugin (.claude-plugin/) or uvx

claude mcp add roshi-google-chat-mcp -- uvx roshi-google-chat-mcp

OpenAI Codex (CLI & App)

Native Plugin (.codex-plugin/) or uvx

Add [mcp_servers.roshi-google-chat-mcp] to ~/.codex/config.toml

Cursor / Windsurf / Zed / Gemini CLI

Standard MCP 2.x stdio server

command: "uvx", args: ["roshi-google-chat-mcp"]

Docker / Glama

Containerized MCP stdio image

docker build -t roshi-google-chat-mcp .

Standalone CLI (No AI required)

PowerShell / Python CLI

.\gchat-tool.ps1 <cmd> or roshi-gchat-cli <cmd>


MCP Tool Surface (31 Tools)

Category

Tools

Diagnostics, Auth & Webhooks

chat_doctor, connect_account, setup_oauth, list_accounts, manage_webhooks

Spaces, Members & Read State

list_spaces, get_space, list_members, create_space, manage_read_state

Read, Thread, Search & Digest

get_messages, get_thread, search_messages, get_unread_digest, extract_attachment

Vault Sync, Takeout & Export

sync_spaces, import_takeout, export_space, resume_export

Send, Cards v2, Edit & React

send_message, send_card_message, send_webhook_message, manage_message, manage_reaction

Lockable Privacy Policy

get_privacy_policy, manage_ignore_list, manage_redaction_rules, test_redaction

Watch Triggers & Outbox

manage_watch_rules, manage_chat_watcher, manage_scheduled_messages


Standalone CLI Quick Reference

# Diagnostics & connect accounts
.\gchat-tool.ps1 doctor
.\gchat-tool.ps1 auth login --alias personal --mode web
.\gchat-tool.ps1 auth setup-oauth --enable-gcloud --open-console
.\gchat-tool.ps1 auth setup-oauth --from-downloads --connect --alias work

# Sync, search with ±2 context, digest, and export
.\gchat-tool.ps1 sync --all
.\gchat-tool.ps1 import-takeout "C:\Takeout\Google Chat" --account archive
.\gchat-tool.ps1 search "release checklist" --since 2026-06-01 --until 2026-06-30 --context 2
.\gchat-tool.ps1 digest --since 24h
.\gchat-tool.ps1 export "Engineering" --output "$HOME\GoogleChatExports\Engineering"
.\gchat-tool.ps1 resume-export "$HOME\GoogleChatExports\Engineering" --expand-until-to-now

# Safeguarded sends, webhooks, privacy lock & watcher daemon
.\gchat-tool.ps1 send "Engineering" "Calm waters ahead." --dry-run
.\gchat-tool.ps1 webhook add ops "https://chat.googleapis.com/v1/spaces/.../messages?key=...&token=..."
.\gchat-tool.ps1 policy ignore-add spaces "Attorney*"
.\gchat-tool.ps1 policy preset-on ssn
.\gchat-tool.ps1 policy lock
.\gchat-tool.ps1 watch daemon --interval 15

Security & Trust Boundary

  • Zero credential leakage: OAuth tokens, service-account keys, browser cookies, and Incoming Webhook tokens stay private inside ~/.roshi-google-chat-mcp/ (0600 on POSIX) and are never returned in tool outputs.

  • Safeguarded mutations: send_message, send_card_message, send_webhook_message, create_space, and manage_message default to dry_run=True.

  • Tamper-resistant CLI lock: .\gchat-tool.ps1 policy lock prevents AI agents from removing ignore entries or weakening redaction presets until unlocked from your terminal.

  • Non-destructive chain-of-custody: Local vaults (~/RoshiGoogleChat/) and exports (~/GoogleChatExports/) live outside repositories and never erase prior versions when messages are edited or deleted remotely.

Verification

python -m unittest discover -s tests -v

License

MIT — see LICENSE.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • -
      license
      Not graded
      quality
      D
      maintenance
      Enables AI assistants to read and send messages in Google Chat spaces using service account authentication.
      -
    • A
      license
      A
      quality
      B
      maintenance
      Enables AI assistants to work in Google Chat through natural language: find spaces and direct messages, read and send messages, manage threads, reactions, attachments, and memberships while acting as the signed-in user.
      20
      96 npm
      MIT
    • A
      license
      Not graded
      quality
      C
      maintenance
      Turns Google Workspace into 45 MCP tools spanning Gmail, Drive, Calendar, Docs, Sheets, Slides, Chat, Tasks and Contacts, with server-side OAuth and a single bearer token so any AI client can read, send, create, and manage workspace content without a browser or Google SDK.
      MIT