roshi-google-chat-mcp 0.3.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- roshi_google_chat_mcp-0.3.0/LICENSE +21 -0
- roshi_google_chat_mcp-0.3.0/PKG-INFO +269 -0
- roshi_google_chat_mcp-0.3.0/README.md +231 -0
- roshi_google_chat_mcp-0.3.0/gchat_mcp/__init__.py +6 -0
- roshi_google_chat_mcp-0.3.0/gchat_mcp/auth.py +2379 -0
- roshi_google_chat_mcp-0.3.0/gchat_mcp/cli.py +612 -0
- roshi_google_chat_mcp-0.3.0/gchat_mcp/client.py +1662 -0
- roshi_google_chat_mcp-0.3.0/gchat_mcp/crypto.py +267 -0
- roshi_google_chat_mcp-0.3.0/gchat_mcp/desktop_app.py +1507 -0
- roshi_google_chat_mcp-0.3.0/gchat_mcp/exporter.py +591 -0
- roshi_google_chat_mcp-0.3.0/gchat_mcp/hosting.py +5019 -0
- roshi_google_chat_mcp-0.3.0/gchat_mcp/policy.py +632 -0
- roshi_google_chat_mcp-0.3.0/gchat_mcp/process_identity.py +520 -0
- roshi_google_chat_mcp-0.3.0/gchat_mcp/roshi_ecosystem.py +317 -0
- roshi_google_chat_mcp-0.3.0/gchat_mcp/server.py +1585 -0
- roshi_google_chat_mcp-0.3.0/gchat_mcp/vault.py +1240 -0
- roshi_google_chat_mcp-0.3.0/gchat_mcp/watcher.py +775 -0
- roshi_google_chat_mcp-0.3.0/pyproject.toml +75 -0
- roshi_google_chat_mcp-0.3.0/roshi_google_chat_mcp.egg-info/PKG-INFO +269 -0
- roshi_google_chat_mcp-0.3.0/roshi_google_chat_mcp.egg-info/SOURCES.txt +27 -0
- roshi_google_chat_mcp-0.3.0/roshi_google_chat_mcp.egg-info/dependency_links.txt +1 -0
- roshi_google_chat_mcp-0.3.0/roshi_google_chat_mcp.egg-info/entry_points.txt +3 -0
- roshi_google_chat_mcp-0.3.0/roshi_google_chat_mcp.egg-info/requires.txt +9 -0
- roshi_google_chat_mcp-0.3.0/roshi_google_chat_mcp.egg-info/top_level.txt +1 -0
- roshi_google_chat_mcp-0.3.0/setup.cfg +4 -0
- roshi_google_chat_mcp-0.3.0/tests/test_desktop_app.py +327 -0
- roshi_google_chat_mcp-0.3.0/tests/test_hosting.py +1377 -0
- roshi_google_chat_mcp-0.3.0/tests/test_roshi_ecosystem.py +60 -0
- roshi_google_chat_mcp-0.3.0/tests/test_roshi_google_chat_mcp.py +876 -0
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 RIAEvangelist (Brandon Nozaki Miller / Roshi)
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1,269 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: roshi-google-chat-mcp
|
|
3
|
+
Version: 0.3.0
|
|
4
|
+
Summary: Roshi's Google Chat MCP — The Buddha of Automated Communication. Multi-account Google Chat REST API v1 + zero-GCP Web Session MCP server, Antigravity/Claude/Codex plugin, and CLI with SHA-256 SQLite FTS5 vault, non-destructive edit/delete preservation, resumable threaded exports, lockable privacy/redaction policies, declarative watch triggers, scheduled outbox, cards v2, and incoming webhooks.
|
|
5
|
+
Author: RIAEvangelist (Roshi)
|
|
6
|
+
License-Expression: MIT
|
|
7
|
+
Project-URL: Homepage, https://riaevangelist.github.io/roshi-google-chat-mcp/
|
|
8
|
+
Project-URL: Documentation, https://riaevangelist.github.io/roshi-google-chat-mcp/
|
|
9
|
+
Project-URL: Repository, https://github.com/RIAEvangelist/roshi-google-chat-mcp
|
|
10
|
+
Project-URL: Issues, https://github.com/RIAEvangelist/roshi-google-chat-mcp/issues
|
|
11
|
+
Keywords: google-chat,gchat,google-workspace,chat-automation,messaging,export,redaction,privacy,watch-triggers,chain-of-custody,mcp,mcp-server,model-context-protocol,antigravity,claude,codex
|
|
12
|
+
Classifier: Development Status :: 4 - Beta
|
|
13
|
+
Classifier: Environment :: Console
|
|
14
|
+
Classifier: Intended Audience :: Developers
|
|
15
|
+
Classifier: Intended Audience :: End Users/Desktop
|
|
16
|
+
Classifier: Intended Audience :: Legal Industry
|
|
17
|
+
Classifier: Operating System :: Microsoft :: Windows
|
|
18
|
+
Classifier: Operating System :: POSIX :: Linux
|
|
19
|
+
Classifier: Operating System :: MacOS
|
|
20
|
+
Classifier: Programming Language :: Python :: 3
|
|
21
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
22
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
23
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
24
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
25
|
+
Classifier: Topic :: Communications :: Chat
|
|
26
|
+
Requires-Python: >=3.10
|
|
27
|
+
Description-Content-Type: text/markdown
|
|
28
|
+
License-File: LICENSE
|
|
29
|
+
Requires-Dist: mcp>=2.0.0
|
|
30
|
+
Requires-Dist: httpx>=0.27.0
|
|
31
|
+
Requires-Dist: cryptography>=42.0.0
|
|
32
|
+
Requires-Dist: playwright>=1.48.0
|
|
33
|
+
Provides-Extra: suite
|
|
34
|
+
Requires-Dist: roshi-signal-mcp>=0.2.0; extra == "suite"
|
|
35
|
+
Requires-Dist: roshi-recorder-mcp>=0.1.1; extra == "suite"
|
|
36
|
+
Requires-Dist: roshi-transcription-mcp>=0.1.0; extra == "suite"
|
|
37
|
+
Dynamic: license-file
|
|
38
|
+
|
|
39
|
+
<!-- mcp-name: io.github.RIAEvangelist/roshi-google-chat-mcp -->
|
|
40
|
+
|
|
41
|
+
<p align="center">
|
|
42
|
+
<a href="https://riaevangelist.github.io/roshi-google-chat-mcp/">
|
|
43
|
+
<img src="assets/roshi-google-chat-mcp-header.png" alt="Roshi's Google Chat MCP — The Buddha of Automated Communication" width="100%">
|
|
44
|
+
</a>
|
|
45
|
+
</p>
|
|
46
|
+
|
|
47
|
+
<h1 align="center">Roshi's Google Chat MCP</h1>
|
|
48
|
+
|
|
49
|
+
<p align="center">
|
|
50
|
+
<strong>The Buddha of Automated Communication for Google Chat.</strong><br>
|
|
51
|
+
Stillness in the noise: read, thread, search, sync, redact, export, watch, schedule, react, and speak across every Google Chat space from any AI.
|
|
52
|
+
</p>
|
|
53
|
+
|
|
54
|
+
<p align="center">
|
|
55
|
+
<a href="https://riaevangelist.github.io/roshi-google-chat-mcp/"><strong>Documentation Site</strong></a> ·
|
|
56
|
+
<a href="https://riaevangelist.github.io/roshi-google-chat-mcp/workflows.html"><strong>Sangha Watch Workflows</strong></a> ·
|
|
57
|
+
<a href="https://riaevangelist.github.io/roshi-google-chat-mcp/tools.html"><strong>32 MCP Tools Reference</strong></a> ·
|
|
58
|
+
<a href="https://github.com/RIAEvangelist/roshi-google-chat-mcp"><strong>GitHub Repository</strong></a>
|
|
59
|
+
</p>
|
|
60
|
+
|
|
61
|
+
<p align="center">
|
|
62
|
+
<img src="https://img.shields.io/badge/version-0.3.0-00897B" alt="Version 0.3.0">
|
|
63
|
+
<img src="https://img.shields.io/badge/python-%3E%3D3.10-12d9c4?logo=python&logoColor=white" alt="Python 3.10+">
|
|
64
|
+
<img src="https://img.shields.io/badge/MCP-2.x%20stdio%20%2B%20HTTP-12d9c4" alt="MCP 2.x stdio + HTTP">
|
|
65
|
+
<img src="https://img.shields.io/badge/Hermes%20%7C%20Antigravity%20%7C%20Claude%20%7C%20Codex%20%7C%20VS%20Code-plugin-00897B" alt="Multi-AI Plugin">
|
|
66
|
+
<img src="https://img.shields.io/badge/platforms-Windows%20%7C%20macOS%20%7C%20Linux-3A76F0" alt="Cross-platform">
|
|
67
|
+
<img src="https://img.shields.io/badge/license-MIT-F5A623" alt="MIT License">
|
|
68
|
+
</p>
|
|
69
|
+
|
|
70
|
+
<p align="center">
|
|
71
|
+
<strong>Directories & Registries:</strong>
|
|
72
|
+
<a href="https://pypi.org/project/roshi-google-chat-mcp/">PyPI</a> ·
|
|
73
|
+
<a href="https://registry.modelcontextprotocol.io/v0.1/servers?search=io.github.RIAEvangelist/roshi-google-chat-mcp">Official MCP Registry</a> ·
|
|
74
|
+
<a href="https://github.com/RIAEvangelist/roshi-google-chat-mcp/releases"><strong>GitHub Releases</strong></a> ·
|
|
75
|
+
<a href="https://glama.ai/mcp/servers/@RIAEvangelist/roshi-google-chat-mcp"><strong>Glama Directory</strong></a>
|
|
76
|
+
</p>
|
|
77
|
+
|
|
78
|
+
<p align="center">
|
|
79
|
+
<a href="https://glama.ai/mcp/servers/@RIAEvangelist/roshi-google-chat-mcp">
|
|
80
|
+
<img width="380" height="200" src="https://glama.ai/mcp/servers/@RIAEvangelist/roshi-google-chat-mcp/badge" alt="Roshi's Google Chat MCP on Glama" />
|
|
81
|
+
</a>
|
|
82
|
+
</p>
|
|
83
|
+
|
|
84
|
+
> **100% Local-First Software:** Installed and run locally on **your own machine, device, or private server** — never a cloud SaaS. All data, vaults, and credentials remain on hardware you control (defaults to `local_only`; optional Bearer-authenticated Intranet/LAN hosting is opt-in).
|
|
85
|
+
|
|
86
|
+
---
|
|
87
|
+
|
|
88
|
+
## Roshi Teaching the Sangha: Why Automated Communication Needs Stillness
|
|
89
|
+
|
|
90
|
+
> *"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."*
|
|
91
|
+
|
|
92
|
+
**Roshi's Google Chat MCP** (`roshi-google-chat-mcp`) brings the proven local-first architecture of **[Roshi's Signal MCP](https://github.com/RIAEvangelist/roshi-signal-mcp)** and **[Roshi's Recorder MCP](https://github.com/RIAEvangelist/roshi-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:
|
|
93
|
+
|
|
94
|
+
- **Three Ways to Connect (Zero Friction to Enterprise)**:
|
|
95
|
+
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.
|
|
96
|
+
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`.
|
|
97
|
+
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.
|
|
98
|
+
- **Unified Multi-Account Management, Labels & Antigravity `auth.json`**:
|
|
99
|
+
- Tag accounts with human-friendly **labels** (`work`, `personal`, `temple`) via `manage_accounts` or `roshi-gchat-cli accounts label <acct> <label>` and resolve accounts by alias, email, or label (case-insensitive).
|
|
100
|
+
- Switch the active account per-command or per-host via `ROSHI_ACCOUNT` or Antigravity's `AGY_ACCOUNT` — plus optional `GCHAT_ACCESS_TOKEN` / `GCLI_ACCESS_TOKEN` (`account="env"`) and `GCHAT_WEBHOOK_URL` fallbacks (from env or `~/.env`) for Hermes, open-source stacks, CI, and Antigravity's `auth.json`.
|
|
101
|
+
- Ships a zero-secret [`auth.json`](./auth.json) (optional `google_chat_token` & `google_chat_webhook`) and [`auth.oauth2.template.json`](./auth.oauth2.template.json); running `setup_oauth` automatically syncs your local GCP Desktop OAuth JSON into `~/.gemini/config/plugins/roshi-google-chat-mcp/auth.json` (`0600` on POSIX, never inside git) to light up Antigravity's native multi-account OAuth Accounts tab.
|
|
102
|
+
- **SHA-256 SQLite FTS5 Vault + Non-Destructive Edit & Delete Shield**:
|
|
103
|
+
- Syncs spaces, threads, members, and SHA-256 hashed attachments into `~/RoshiGoogleChat/vault.db` (plus full **Google Takeout** import!).
|
|
104
|
+
- 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.
|
|
105
|
+
- **Tamper-Resistant Privacy Policy & Anti-Oracle Search**:
|
|
106
|
+
- 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`).
|
|
107
|
+
- Search queries are re-verified post-redaction so searching for a redacted secret can never act as an oracle.
|
|
108
|
+
- **Declarative Sangha Automation + Scheduled Outbox**:
|
|
109
|
+
- 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.
|
|
110
|
+
- 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.
|
|
111
|
+
|
|
112
|
+
---
|
|
113
|
+
|
|
114
|
+
## Install in Seconds
|
|
115
|
+
|
|
116
|
+
### Google Antigravity (one command)
|
|
117
|
+
|
|
118
|
+
```bash
|
|
119
|
+
agy plugin install RIAEvangelist/roshi-google-chat-mcp
|
|
120
|
+
```
|
|
121
|
+
|
|
122
|
+
Installs **all 32 MCP tools**, the **`roshi-google-chat-mcp` skill**, zero-secret **`auth.json`**, and **bundled safety rules**, bootstrapping an isolated Python environment automatically on first launch via [`bootstrap_mcp.py`](./bootstrap_mcp.py).
|
|
123
|
+
|
|
124
|
+
### Windows / macOS / Linux (local clone)
|
|
125
|
+
|
|
126
|
+
```powershell
|
|
127
|
+
# Windows (PowerShell)
|
|
128
|
+
git clone https://github.com/RIAEvangelist/roshi-google-chat-mcp.git
|
|
129
|
+
cd roshi-google-chat-mcp
|
|
130
|
+
.\setup.ps1 -InstallPlugin
|
|
131
|
+
```
|
|
132
|
+
|
|
133
|
+
```bash
|
|
134
|
+
# macOS / Linux
|
|
135
|
+
git clone https://github.com/RIAEvangelist/roshi-google-chat-mcp.git
|
|
136
|
+
cd roshi-google-chat-mcp
|
|
137
|
+
./setup.sh --install-plugin
|
|
138
|
+
```
|
|
139
|
+
|
|
140
|
+
---
|
|
141
|
+
|
|
142
|
+
## Works with Every Major AI Client
|
|
143
|
+
|
|
144
|
+
| AI Client / Environment | Integration | Setup |
|
|
145
|
+
| --- | --- | --- |
|
|
146
|
+
| **Google Antigravity** (App, CLI, IDE) | Native Plugin (MCP + Skill + Rules) | `agy plugin install RIAEvangelist/roshi-google-chat-mcp` |
|
|
147
|
+
| **Claude Code & Claude Desktop** | Native Plugin (`.claude-plugin/`) or `uvx` | `claude mcp add roshi-google-chat-mcp -- uvx roshi-google-chat-mcp` |
|
|
148
|
+
| **OpenAI Codex** (CLI & App) | Native Plugin (`.codex-plugin/`) or `uvx` | Add `[mcp_servers.roshi-google-chat-mcp]` to `~/.codex/config.toml` |
|
|
149
|
+
| **Cursor / Windsurf / Zed / Gemini CLI** | Standard MCP 2.x stdio server | `command: "uvx"`, `args: ["roshi-google-chat-mcp"]` |
|
|
150
|
+
| **Docker / Glama** | Containerized MCP stdio image | `docker build -t roshi-google-chat-mcp .` |
|
|
151
|
+
| **Standalone CLI (No AI required)** | PowerShell / Python CLI | `.\gchat-tool.ps1 <cmd>` or `roshi-gchat-cli <cmd>` |
|
|
152
|
+
|
|
153
|
+
---
|
|
154
|
+
|
|
155
|
+
## MCP Tool Surface (32 Tools)
|
|
156
|
+
|
|
157
|
+
| Category | Tools |
|
|
158
|
+
| --- | --- |
|
|
159
|
+
| **Diagnostics, Auth & Webhooks** | `chat_doctor`, `connect_account`, `setup_oauth`, `list_accounts`, `manage_accounts`, `manage_webhooks` |
|
|
160
|
+
| **Spaces, Members & Read State** | `list_spaces`, `get_space`, `list_members`, `create_space`, `manage_read_state` |
|
|
161
|
+
| **Read, Thread, Search & Digest** | `get_messages`, `get_thread`, `search_messages`, `get_unread_digest`, `extract_attachment` |
|
|
162
|
+
| **Vault Sync, Takeout & Export** | `sync_spaces`, `import_takeout`, `export_space`, `resume_export` |
|
|
163
|
+
| **Send, Cards v2, Edit & React** | `send_message`, `send_card_message`, `send_webhook_message`, `manage_message`, `manage_reaction` |
|
|
164
|
+
| **Lockable Privacy Policy** | `get_privacy_policy`, `manage_ignore_list`, `manage_redaction_rules`, `test_redaction` |
|
|
165
|
+
| **Watch Triggers & Outbox** | `manage_watch_rules`, `manage_chat_watcher`, `manage_scheduled_messages` |
|
|
166
|
+
|
|
167
|
+
---
|
|
168
|
+
|
|
169
|
+
## Standalone CLI Quick Reference
|
|
170
|
+
|
|
171
|
+
```powershell
|
|
172
|
+
# Diagnostics & connect accounts
|
|
173
|
+
.\gchat-tool.ps1 doctor
|
|
174
|
+
.\gchat-tool.ps1 auth login --alias personal --mode web
|
|
175
|
+
.\gchat-tool.ps1 auth setup-oauth --enable-gcloud --open-console
|
|
176
|
+
.\gchat-tool.ps1 auth setup-oauth --from-downloads --connect --alias work
|
|
177
|
+
|
|
178
|
+
# Multi-account labels, defaults & Antigravity OAuth auth.json sync (works in Hermes, open-source shells & CI)
|
|
179
|
+
.\gchat-tool.ps1 accounts list
|
|
180
|
+
.\gchat-tool.ps1 accounts label work primary
|
|
181
|
+
.\gchat-tool.ps1 accounts default primary
|
|
182
|
+
.\gchat-tool.ps1 accounts unlabel work primary
|
|
183
|
+
.\gchat-tool.ps1 accounts sync-antigravity-oauth
|
|
184
|
+
# Or select an account per-command via ROSHI_ACCOUNT / AGY_ACCOUNT (or GCHAT_ACCESS_TOKEN for env mode)
|
|
185
|
+
|
|
186
|
+
# Sync, search with ±2 context, digest, and export
|
|
187
|
+
.\gchat-tool.ps1 sync --all
|
|
188
|
+
.\gchat-tool.ps1 import-takeout "C:\Takeout\Google Chat" --account archive
|
|
189
|
+
.\gchat-tool.ps1 search "release checklist" --since 2026-06-01 --until 2026-06-30 --context 2
|
|
190
|
+
.\gchat-tool.ps1 digest --since 24h
|
|
191
|
+
.\gchat-tool.ps1 export "Engineering" --output "$HOME\GoogleChatExports\Engineering"
|
|
192
|
+
.\gchat-tool.ps1 resume-export "$HOME\GoogleChatExports\Engineering" --expand-until-to-now
|
|
193
|
+
|
|
194
|
+
# Safeguarded sends, webhooks, privacy lock & watcher daemon
|
|
195
|
+
.\gchat-tool.ps1 send "Engineering" "Calm waters ahead." --dry-run
|
|
196
|
+
.\gchat-tool.ps1 webhook add ops "https://chat.googleapis.com/v1/spaces/.../messages?key=...&token=..."
|
|
197
|
+
.\gchat-tool.ps1 policy ignore-add spaces "Attorney*"
|
|
198
|
+
.\gchat-tool.ps1 policy preset-on ssn
|
|
199
|
+
.\gchat-tool.ps1 policy lock
|
|
200
|
+
.\gchat-tool.ps1 watch daemon --interval 15
|
|
201
|
+
```
|
|
202
|
+
|
|
203
|
+
---
|
|
204
|
+
|
|
205
|
+
## Security & Trust Boundary
|
|
206
|
+
|
|
207
|
+
- **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.
|
|
208
|
+
- **Safeguarded mutations**: `send_message`, `send_card_message`, `send_webhook_message`, `create_space`, and `manage_message` default to `dry_run=True`.
|
|
209
|
+
- **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.
|
|
210
|
+
- **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.
|
|
211
|
+
|
|
212
|
+
## Verification
|
|
213
|
+
|
|
214
|
+
```powershell
|
|
215
|
+
python -m unittest discover -s tests -v
|
|
216
|
+
```
|
|
217
|
+
|
|
218
|
+
## License
|
|
219
|
+
|
|
220
|
+
MIT — see [LICENSE](./LICENSE).
|
|
221
|
+
|
|
222
|
+
<!-- ROSHI-ECOSYSTEM-INTEGRATION -->
|
|
223
|
+
<!-- ROSHI-AGENT-BOARD-HERMES-V2 -->
|
|
224
|
+
## Roshi & TWiN Local MCP Ecosystem (`https://roshi.chat.local`)
|
|
225
|
+
|
|
226
|
+
- **First-Class Open-Source & Local AI Support:** Works out of the box with **Hermes**, **OpenClaw**, **goose**, **Cline**, **Continue**, **VS Code / GitHub Copilot**, **Ollama / local open-source stacks**, **Antigravity**, **Codex**, and **Claude Code** via standard `stdio` MCP (`bootstrap_mcp.py`) with zero vendor lock-in.
|
|
227
|
+
- **Canonical Local Hostname:** `https://roshi.chat.local` (`roshi.chat.local`)
|
|
228
|
+
- **Server Manager Preference (`roshi-server-manager-mcp`):** Automatically detects and registers with `https://roshi.servers.local` whenever installed, and proceeds gracefully standalone if you opt not to install it.
|
|
229
|
+
- **Agent Board Preference (`roshi-agent-board-mcp`):** Prefers `https://roshi.board.local` (plus optional Git-backed sync boards) for all inter-task, inter-project, inter-agent, inter-system, and cross-machine/team communication, notifications, handoffs, and resource locks.
|
|
230
|
+
- **Preferred Sibling Roshi MCPs:** `roshi-server-manager-mcp` (`https://roshi.servers.local`), `roshi-speech-mcp` (`https://roshi.speech.local`), `roshi-agent-board-mcp` (`https://roshi.board.local`)
|
|
231
|
+
|
|
232
|
+
### Multi-Host Install (Hermes · VS Code / GitHub Copilot · OpenClaw · goose · Antigravity · Codex · Claude Code)
|
|
233
|
+
|
|
234
|
+
- **Nous Research Hermes Agent** (`config.yaml`):
|
|
235
|
+
```yaml
|
|
236
|
+
mcp_servers:
|
|
237
|
+
roshi-google-chat-mcp:
|
|
238
|
+
command: python
|
|
239
|
+
args: ["bootstrap_mcp.py"]
|
|
240
|
+
```
|
|
241
|
+
- **VS Code / GitHub Copilot** (`.vscode/mcp.json` included in this repo):
|
|
242
|
+
```json
|
|
243
|
+
{
|
|
244
|
+
"servers": {
|
|
245
|
+
"roshi-google-chat-mcp": {
|
|
246
|
+
"type": "stdio",
|
|
247
|
+
"command": "python",
|
|
248
|
+
"args": ["bootstrap_mcp.py"]
|
|
249
|
+
}
|
|
250
|
+
}
|
|
251
|
+
}
|
|
252
|
+
```
|
|
253
|
+
- **Official MCP Registry / GitHub MCP Registry / PyPI:** `io.github.RIAEvangelist/roshi-google-chat-mcp` (`pip install roshi-google-chat-mcp`)
|
|
254
|
+
|
|
255
|
+
### Local-Only / Intranet (LAN) Hosting & Sanctuary Status Dashboard (`https://roshi.chat.local/`)
|
|
256
|
+
|
|
257
|
+
- **Local-Only by Default:** Runs over `stdio` MCP by default with hosting locked strictly to `local_only` (`127.0.0.1`).
|
|
258
|
+
- **Sanctuary Status & Hosting Dashboard:** Visit `https://roshi.chat.local/` (or manage from [Roshi Server Manager](https://roshi.servers.local/)) to view safe account/privacy/vault readiness, toggle **Local Only / Intranet (LAN)** access, reveal/rotate the Bearer token (`rsh_...`, local loopback reveal only), and view multi-device connect instructions.
|
|
259
|
+
- **MCP Tool:** `manage_hosting(action="status"|"enable_intranet"|"disable_intranet"|"start"|"stop"|"rotate_token", require_auth=True)`
|
|
260
|
+
- **CLI Commands:**
|
|
261
|
+
```bash
|
|
262
|
+
roshi-gchat-cli hosting status
|
|
263
|
+
roshi-gchat-cli hosting start
|
|
264
|
+
roshi-gchat-cli hosting enable-intranet
|
|
265
|
+
roshi-gchat-cli hosting disable-intranet
|
|
266
|
+
roshi-gchat-cli hosting rotate-token
|
|
267
|
+
roshi-gchat-cli hosting serve --mcp-http # optional Streamable HTTP MCP (/mcp) for LAN clients
|
|
268
|
+
```
|
|
269
|
+
- **Security:** Enabling `intranet` mode auto-generates a `rsh_...` Bearer token stored privately in `~/.roshi-google-chat-mcp/hosting.json` (`0600` on POSIX), requires `Authorization: Bearer <token>` on all non-loopback `/api/v1/hosting` requests, never leaks raw tokens in status outputs, and syncs exposure with `https://roshi.servers.local/`.
|
|
@@ -0,0 +1,231 @@
|
|
|
1
|
+
<!-- mcp-name: io.github.RIAEvangelist/roshi-google-chat-mcp -->
|
|
2
|
+
|
|
3
|
+
<p align="center">
|
|
4
|
+
<a href="https://riaevangelist.github.io/roshi-google-chat-mcp/">
|
|
5
|
+
<img src="assets/roshi-google-chat-mcp-header.png" alt="Roshi's Google Chat MCP — The Buddha of Automated Communication" width="100%">
|
|
6
|
+
</a>
|
|
7
|
+
</p>
|
|
8
|
+
|
|
9
|
+
<h1 align="center">Roshi's Google Chat MCP</h1>
|
|
10
|
+
|
|
11
|
+
<p align="center">
|
|
12
|
+
<strong>The Buddha of Automated Communication for Google Chat.</strong><br>
|
|
13
|
+
Stillness in the noise: read, thread, search, sync, redact, export, watch, schedule, react, and speak across every Google Chat space from any AI.
|
|
14
|
+
</p>
|
|
15
|
+
|
|
16
|
+
<p align="center">
|
|
17
|
+
<a href="https://riaevangelist.github.io/roshi-google-chat-mcp/"><strong>Documentation Site</strong></a> ·
|
|
18
|
+
<a href="https://riaevangelist.github.io/roshi-google-chat-mcp/workflows.html"><strong>Sangha Watch Workflows</strong></a> ·
|
|
19
|
+
<a href="https://riaevangelist.github.io/roshi-google-chat-mcp/tools.html"><strong>32 MCP Tools Reference</strong></a> ·
|
|
20
|
+
<a href="https://github.com/RIAEvangelist/roshi-google-chat-mcp"><strong>GitHub Repository</strong></a>
|
|
21
|
+
</p>
|
|
22
|
+
|
|
23
|
+
<p align="center">
|
|
24
|
+
<img src="https://img.shields.io/badge/version-0.3.0-00897B" alt="Version 0.3.0">
|
|
25
|
+
<img src="https://img.shields.io/badge/python-%3E%3D3.10-12d9c4?logo=python&logoColor=white" alt="Python 3.10+">
|
|
26
|
+
<img src="https://img.shields.io/badge/MCP-2.x%20stdio%20%2B%20HTTP-12d9c4" alt="MCP 2.x stdio + HTTP">
|
|
27
|
+
<img src="https://img.shields.io/badge/Hermes%20%7C%20Antigravity%20%7C%20Claude%20%7C%20Codex%20%7C%20VS%20Code-plugin-00897B" alt="Multi-AI Plugin">
|
|
28
|
+
<img src="https://img.shields.io/badge/platforms-Windows%20%7C%20macOS%20%7C%20Linux-3A76F0" alt="Cross-platform">
|
|
29
|
+
<img src="https://img.shields.io/badge/license-MIT-F5A623" alt="MIT License">
|
|
30
|
+
</p>
|
|
31
|
+
|
|
32
|
+
<p align="center">
|
|
33
|
+
<strong>Directories & Registries:</strong>
|
|
34
|
+
<a href="https://pypi.org/project/roshi-google-chat-mcp/">PyPI</a> ·
|
|
35
|
+
<a href="https://registry.modelcontextprotocol.io/v0.1/servers?search=io.github.RIAEvangelist/roshi-google-chat-mcp">Official MCP Registry</a> ·
|
|
36
|
+
<a href="https://github.com/RIAEvangelist/roshi-google-chat-mcp/releases"><strong>GitHub Releases</strong></a> ·
|
|
37
|
+
<a href="https://glama.ai/mcp/servers/@RIAEvangelist/roshi-google-chat-mcp"><strong>Glama Directory</strong></a>
|
|
38
|
+
</p>
|
|
39
|
+
|
|
40
|
+
<p align="center">
|
|
41
|
+
<a href="https://glama.ai/mcp/servers/@RIAEvangelist/roshi-google-chat-mcp">
|
|
42
|
+
<img width="380" height="200" src="https://glama.ai/mcp/servers/@RIAEvangelist/roshi-google-chat-mcp/badge" alt="Roshi's Google Chat MCP on Glama" />
|
|
43
|
+
</a>
|
|
44
|
+
</p>
|
|
45
|
+
|
|
46
|
+
> **100% Local-First Software:** Installed and run locally on **your own machine, device, or private server** — never a cloud SaaS. All data, vaults, and credentials remain on hardware you control (defaults to `local_only`; optional Bearer-authenticated Intranet/LAN hosting is opt-in).
|
|
47
|
+
|
|
48
|
+
---
|
|
49
|
+
|
|
50
|
+
## Roshi Teaching the Sangha: Why Automated Communication Needs Stillness
|
|
51
|
+
|
|
52
|
+
> *"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."*
|
|
53
|
+
|
|
54
|
+
**Roshi's Google Chat MCP** (`roshi-google-chat-mcp`) brings the proven local-first architecture of **[Roshi's Signal MCP](https://github.com/RIAEvangelist/roshi-signal-mcp)** and **[Roshi's Recorder MCP](https://github.com/RIAEvangelist/roshi-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:
|
|
55
|
+
|
|
56
|
+
- **Three Ways to Connect (Zero Friction to Enterprise)**:
|
|
57
|
+
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.
|
|
58
|
+
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`.
|
|
59
|
+
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.
|
|
60
|
+
- **Unified Multi-Account Management, Labels & Antigravity `auth.json`**:
|
|
61
|
+
- Tag accounts with human-friendly **labels** (`work`, `personal`, `temple`) via `manage_accounts` or `roshi-gchat-cli accounts label <acct> <label>` and resolve accounts by alias, email, or label (case-insensitive).
|
|
62
|
+
- Switch the active account per-command or per-host via `ROSHI_ACCOUNT` or Antigravity's `AGY_ACCOUNT` — plus optional `GCHAT_ACCESS_TOKEN` / `GCLI_ACCESS_TOKEN` (`account="env"`) and `GCHAT_WEBHOOK_URL` fallbacks (from env or `~/.env`) for Hermes, open-source stacks, CI, and Antigravity's `auth.json`.
|
|
63
|
+
- Ships a zero-secret [`auth.json`](./auth.json) (optional `google_chat_token` & `google_chat_webhook`) and [`auth.oauth2.template.json`](./auth.oauth2.template.json); running `setup_oauth` automatically syncs your local GCP Desktop OAuth JSON into `~/.gemini/config/plugins/roshi-google-chat-mcp/auth.json` (`0600` on POSIX, never inside git) to light up Antigravity's native multi-account OAuth Accounts tab.
|
|
64
|
+
- **SHA-256 SQLite FTS5 Vault + Non-Destructive Edit & Delete Shield**:
|
|
65
|
+
- Syncs spaces, threads, members, and SHA-256 hashed attachments into `~/RoshiGoogleChat/vault.db` (plus full **Google Takeout** import!).
|
|
66
|
+
- 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.
|
|
67
|
+
- **Tamper-Resistant Privacy Policy & Anti-Oracle Search**:
|
|
68
|
+
- 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`).
|
|
69
|
+
- Search queries are re-verified post-redaction so searching for a redacted secret can never act as an oracle.
|
|
70
|
+
- **Declarative Sangha Automation + Scheduled Outbox**:
|
|
71
|
+
- 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.
|
|
72
|
+
- 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.
|
|
73
|
+
|
|
74
|
+
---
|
|
75
|
+
|
|
76
|
+
## Install in Seconds
|
|
77
|
+
|
|
78
|
+
### Google Antigravity (one command)
|
|
79
|
+
|
|
80
|
+
```bash
|
|
81
|
+
agy plugin install RIAEvangelist/roshi-google-chat-mcp
|
|
82
|
+
```
|
|
83
|
+
|
|
84
|
+
Installs **all 32 MCP tools**, the **`roshi-google-chat-mcp` skill**, zero-secret **`auth.json`**, and **bundled safety rules**, bootstrapping an isolated Python environment automatically on first launch via [`bootstrap_mcp.py`](./bootstrap_mcp.py).
|
|
85
|
+
|
|
86
|
+
### Windows / macOS / Linux (local clone)
|
|
87
|
+
|
|
88
|
+
```powershell
|
|
89
|
+
# Windows (PowerShell)
|
|
90
|
+
git clone https://github.com/RIAEvangelist/roshi-google-chat-mcp.git
|
|
91
|
+
cd roshi-google-chat-mcp
|
|
92
|
+
.\setup.ps1 -InstallPlugin
|
|
93
|
+
```
|
|
94
|
+
|
|
95
|
+
```bash
|
|
96
|
+
# macOS / Linux
|
|
97
|
+
git clone https://github.com/RIAEvangelist/roshi-google-chat-mcp.git
|
|
98
|
+
cd roshi-google-chat-mcp
|
|
99
|
+
./setup.sh --install-plugin
|
|
100
|
+
```
|
|
101
|
+
|
|
102
|
+
---
|
|
103
|
+
|
|
104
|
+
## Works with Every Major AI Client
|
|
105
|
+
|
|
106
|
+
| AI Client / Environment | Integration | Setup |
|
|
107
|
+
| --- | --- | --- |
|
|
108
|
+
| **Google Antigravity** (App, CLI, IDE) | Native Plugin (MCP + Skill + Rules) | `agy plugin install RIAEvangelist/roshi-google-chat-mcp` |
|
|
109
|
+
| **Claude Code & Claude Desktop** | Native Plugin (`.claude-plugin/`) or `uvx` | `claude mcp add roshi-google-chat-mcp -- uvx roshi-google-chat-mcp` |
|
|
110
|
+
| **OpenAI Codex** (CLI & App) | Native Plugin (`.codex-plugin/`) or `uvx` | Add `[mcp_servers.roshi-google-chat-mcp]` to `~/.codex/config.toml` |
|
|
111
|
+
| **Cursor / Windsurf / Zed / Gemini CLI** | Standard MCP 2.x stdio server | `command: "uvx"`, `args: ["roshi-google-chat-mcp"]` |
|
|
112
|
+
| **Docker / Glama** | Containerized MCP stdio image | `docker build -t roshi-google-chat-mcp .` |
|
|
113
|
+
| **Standalone CLI (No AI required)** | PowerShell / Python CLI | `.\gchat-tool.ps1 <cmd>` or `roshi-gchat-cli <cmd>` |
|
|
114
|
+
|
|
115
|
+
---
|
|
116
|
+
|
|
117
|
+
## MCP Tool Surface (32 Tools)
|
|
118
|
+
|
|
119
|
+
| Category | Tools |
|
|
120
|
+
| --- | --- |
|
|
121
|
+
| **Diagnostics, Auth & Webhooks** | `chat_doctor`, `connect_account`, `setup_oauth`, `list_accounts`, `manage_accounts`, `manage_webhooks` |
|
|
122
|
+
| **Spaces, Members & Read State** | `list_spaces`, `get_space`, `list_members`, `create_space`, `manage_read_state` |
|
|
123
|
+
| **Read, Thread, Search & Digest** | `get_messages`, `get_thread`, `search_messages`, `get_unread_digest`, `extract_attachment` |
|
|
124
|
+
| **Vault Sync, Takeout & Export** | `sync_spaces`, `import_takeout`, `export_space`, `resume_export` |
|
|
125
|
+
| **Send, Cards v2, Edit & React** | `send_message`, `send_card_message`, `send_webhook_message`, `manage_message`, `manage_reaction` |
|
|
126
|
+
| **Lockable Privacy Policy** | `get_privacy_policy`, `manage_ignore_list`, `manage_redaction_rules`, `test_redaction` |
|
|
127
|
+
| **Watch Triggers & Outbox** | `manage_watch_rules`, `manage_chat_watcher`, `manage_scheduled_messages` |
|
|
128
|
+
|
|
129
|
+
---
|
|
130
|
+
|
|
131
|
+
## Standalone CLI Quick Reference
|
|
132
|
+
|
|
133
|
+
```powershell
|
|
134
|
+
# Diagnostics & connect accounts
|
|
135
|
+
.\gchat-tool.ps1 doctor
|
|
136
|
+
.\gchat-tool.ps1 auth login --alias personal --mode web
|
|
137
|
+
.\gchat-tool.ps1 auth setup-oauth --enable-gcloud --open-console
|
|
138
|
+
.\gchat-tool.ps1 auth setup-oauth --from-downloads --connect --alias work
|
|
139
|
+
|
|
140
|
+
# Multi-account labels, defaults & Antigravity OAuth auth.json sync (works in Hermes, open-source shells & CI)
|
|
141
|
+
.\gchat-tool.ps1 accounts list
|
|
142
|
+
.\gchat-tool.ps1 accounts label work primary
|
|
143
|
+
.\gchat-tool.ps1 accounts default primary
|
|
144
|
+
.\gchat-tool.ps1 accounts unlabel work primary
|
|
145
|
+
.\gchat-tool.ps1 accounts sync-antigravity-oauth
|
|
146
|
+
# Or select an account per-command via ROSHI_ACCOUNT / AGY_ACCOUNT (or GCHAT_ACCESS_TOKEN for env mode)
|
|
147
|
+
|
|
148
|
+
# Sync, search with ±2 context, digest, and export
|
|
149
|
+
.\gchat-tool.ps1 sync --all
|
|
150
|
+
.\gchat-tool.ps1 import-takeout "C:\Takeout\Google Chat" --account archive
|
|
151
|
+
.\gchat-tool.ps1 search "release checklist" --since 2026-06-01 --until 2026-06-30 --context 2
|
|
152
|
+
.\gchat-tool.ps1 digest --since 24h
|
|
153
|
+
.\gchat-tool.ps1 export "Engineering" --output "$HOME\GoogleChatExports\Engineering"
|
|
154
|
+
.\gchat-tool.ps1 resume-export "$HOME\GoogleChatExports\Engineering" --expand-until-to-now
|
|
155
|
+
|
|
156
|
+
# Safeguarded sends, webhooks, privacy lock & watcher daemon
|
|
157
|
+
.\gchat-tool.ps1 send "Engineering" "Calm waters ahead." --dry-run
|
|
158
|
+
.\gchat-tool.ps1 webhook add ops "https://chat.googleapis.com/v1/spaces/.../messages?key=...&token=..."
|
|
159
|
+
.\gchat-tool.ps1 policy ignore-add spaces "Attorney*"
|
|
160
|
+
.\gchat-tool.ps1 policy preset-on ssn
|
|
161
|
+
.\gchat-tool.ps1 policy lock
|
|
162
|
+
.\gchat-tool.ps1 watch daemon --interval 15
|
|
163
|
+
```
|
|
164
|
+
|
|
165
|
+
---
|
|
166
|
+
|
|
167
|
+
## Security & Trust Boundary
|
|
168
|
+
|
|
169
|
+
- **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.
|
|
170
|
+
- **Safeguarded mutations**: `send_message`, `send_card_message`, `send_webhook_message`, `create_space`, and `manage_message` default to `dry_run=True`.
|
|
171
|
+
- **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.
|
|
172
|
+
- **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.
|
|
173
|
+
|
|
174
|
+
## Verification
|
|
175
|
+
|
|
176
|
+
```powershell
|
|
177
|
+
python -m unittest discover -s tests -v
|
|
178
|
+
```
|
|
179
|
+
|
|
180
|
+
## License
|
|
181
|
+
|
|
182
|
+
MIT — see [LICENSE](./LICENSE).
|
|
183
|
+
|
|
184
|
+
<!-- ROSHI-ECOSYSTEM-INTEGRATION -->
|
|
185
|
+
<!-- ROSHI-AGENT-BOARD-HERMES-V2 -->
|
|
186
|
+
## Roshi & TWiN Local MCP Ecosystem (`https://roshi.chat.local`)
|
|
187
|
+
|
|
188
|
+
- **First-Class Open-Source & Local AI Support:** Works out of the box with **Hermes**, **OpenClaw**, **goose**, **Cline**, **Continue**, **VS Code / GitHub Copilot**, **Ollama / local open-source stacks**, **Antigravity**, **Codex**, and **Claude Code** via standard `stdio` MCP (`bootstrap_mcp.py`) with zero vendor lock-in.
|
|
189
|
+
- **Canonical Local Hostname:** `https://roshi.chat.local` (`roshi.chat.local`)
|
|
190
|
+
- **Server Manager Preference (`roshi-server-manager-mcp`):** Automatically detects and registers with `https://roshi.servers.local` whenever installed, and proceeds gracefully standalone if you opt not to install it.
|
|
191
|
+
- **Agent Board Preference (`roshi-agent-board-mcp`):** Prefers `https://roshi.board.local` (plus optional Git-backed sync boards) for all inter-task, inter-project, inter-agent, inter-system, and cross-machine/team communication, notifications, handoffs, and resource locks.
|
|
192
|
+
- **Preferred Sibling Roshi MCPs:** `roshi-server-manager-mcp` (`https://roshi.servers.local`), `roshi-speech-mcp` (`https://roshi.speech.local`), `roshi-agent-board-mcp` (`https://roshi.board.local`)
|
|
193
|
+
|
|
194
|
+
### Multi-Host Install (Hermes · VS Code / GitHub Copilot · OpenClaw · goose · Antigravity · Codex · Claude Code)
|
|
195
|
+
|
|
196
|
+
- **Nous Research Hermes Agent** (`config.yaml`):
|
|
197
|
+
```yaml
|
|
198
|
+
mcp_servers:
|
|
199
|
+
roshi-google-chat-mcp:
|
|
200
|
+
command: python
|
|
201
|
+
args: ["bootstrap_mcp.py"]
|
|
202
|
+
```
|
|
203
|
+
- **VS Code / GitHub Copilot** (`.vscode/mcp.json` included in this repo):
|
|
204
|
+
```json
|
|
205
|
+
{
|
|
206
|
+
"servers": {
|
|
207
|
+
"roshi-google-chat-mcp": {
|
|
208
|
+
"type": "stdio",
|
|
209
|
+
"command": "python",
|
|
210
|
+
"args": ["bootstrap_mcp.py"]
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
```
|
|
215
|
+
- **Official MCP Registry / GitHub MCP Registry / PyPI:** `io.github.RIAEvangelist/roshi-google-chat-mcp` (`pip install roshi-google-chat-mcp`)
|
|
216
|
+
|
|
217
|
+
### Local-Only / Intranet (LAN) Hosting & Sanctuary Status Dashboard (`https://roshi.chat.local/`)
|
|
218
|
+
|
|
219
|
+
- **Local-Only by Default:** Runs over `stdio` MCP by default with hosting locked strictly to `local_only` (`127.0.0.1`).
|
|
220
|
+
- **Sanctuary Status & Hosting Dashboard:** Visit `https://roshi.chat.local/` (or manage from [Roshi Server Manager](https://roshi.servers.local/)) to view safe account/privacy/vault readiness, toggle **Local Only / Intranet (LAN)** access, reveal/rotate the Bearer token (`rsh_...`, local loopback reveal only), and view multi-device connect instructions.
|
|
221
|
+
- **MCP Tool:** `manage_hosting(action="status"|"enable_intranet"|"disable_intranet"|"start"|"stop"|"rotate_token", require_auth=True)`
|
|
222
|
+
- **CLI Commands:**
|
|
223
|
+
```bash
|
|
224
|
+
roshi-gchat-cli hosting status
|
|
225
|
+
roshi-gchat-cli hosting start
|
|
226
|
+
roshi-gchat-cli hosting enable-intranet
|
|
227
|
+
roshi-gchat-cli hosting disable-intranet
|
|
228
|
+
roshi-gchat-cli hosting rotate-token
|
|
229
|
+
roshi-gchat-cli hosting serve --mcp-http # optional Streamable HTTP MCP (/mcp) for LAN clients
|
|
230
|
+
```
|
|
231
|
+
- **Security:** Enabling `intranet` mode auto-generates a `rsh_...` Bearer token stored privately in `~/.roshi-google-chat-mcp/hosting.json` (`0600` on POSIX), requires `Authorization: Bearer <token>` on all non-loopback `/api/v1/hosting` requests, never leaks raw tokens in status outputs, and syncs exposure with `https://roshi.servers.local/`.
|