Metadata-Version: 2.4
Name: roshi-recorder-mcp
Version: 0.1.0
Summary: Roshi's Recorder MCP — Google Recorder (recorder.google.com) & Local Audio Vault MCP server, Antigravity/Claude/Codex plugin, and CLI with direct RPC search, playback & section clipping, crash-safe SHA-256 sync, deletion preservation, privacy policies, watch triggers, and local GPU transcription handoff.
Author: RIAEvangelist (Roshi)
License-Expression: MIT
Project-URL: Homepage, https://riaevangelist.github.io/roshi-recorder-mcp/
Project-URL: Documentation, https://riaevangelist.github.io/roshi-recorder-mcp/
Project-URL: Repository, https://github.com/RIAEvangelist/roshi-recorder-mcp
Project-URL: Issues, https://github.com/RIAEvangelist/roshi-recorder-mcp/issues
Keywords: google-recorder,pixel-recorder,recorder,audio,transcription,voice-notes,evidence,chain-of-custody,mcp,mcp-server,model-context-protocol,antigravity,claude,codex
Classifier: Development Status :: 4 - Beta
Classifier: Environment :: Console
Classifier: Intended Audience :: Developers
Classifier: Intended Audience :: End Users/Desktop
Classifier: Intended Audience :: Legal Industry
Classifier: Operating System :: Microsoft :: Windows
Classifier: Operating System :: POSIX :: Linux
Classifier: Operating System :: MacOS
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Topic :: Multimedia :: Sound/Audio :: Speech
Requires-Python: >=3.10
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: mcp>=2.0.0
Requires-Dist: httpx>=0.27.0
Requires-Dist: playwright>=1.48.0
Requires-Dist: imageio-ffmpeg>=0.5.1
Provides-Extra: transcription
Requires-Dist: roshi-transcription-mcp>=0.1.0; extra == "transcription"
Provides-Extra: signal
Requires-Dist: roshi-signal-mcp>=0.2.0; extra == "signal"
Provides-Extra: suite
Requires-Dist: roshi-transcription-mcp>=0.1.0; extra == "suite"
Requires-Dist: roshi-signal-mcp>=0.2.0; extra == "suite"
Dynamic: license-file

<p align="center">
  <a href="https://riaevangelist.github.io/roshi-recorder-mcp/">
    <img src="assets/roshi-recorder-mcp-header.png" alt="Roshi's Recorder MCP — Google Recorder & SHA-256 Local Audio Vault MCP server" width="100%">
  </a>
</p>

<h1 align="center">Roshi's Recorder MCP</h1>

<p align="center">
  <strong>Manage, Search, Play, Clip, Sync, Watch &amp; Archive Google Recorder (<code>recorder.google.com</code>) from Any AI</strong><br>
  Antigravity Plugin &middot; Claude Code &amp; Desktop Plugin &middot; OpenAI Codex Plugin &middot; Open MCP 2.x Server &middot; Standalone CLI
</p>

<p align="center">
  <a href="https://riaevangelist.github.io/roshi-recorder-mcp/"><strong>Documentation Site</strong></a> &middot;
  <a href="https://riaevangelist.github.io/roshi-recorder-mcp/workflows.html"><strong>Field &amp; Evidence Workflows</strong></a> &middot;
  <a href="https://riaevangelist.github.io/roshi-recorder-mcp/tools.html"><strong>27 MCP Tools Reference</strong></a> &middot;
  <a href="https://github.com/RIAEvangelist/roshi-recorder-mcp"><strong>GitHub Repository</strong></a>
</p>

<p align="center">
  <img src="https://img.shields.io/badge/version-0.1.0-0E7490" alt="Version 0.1.0">
  <img src="https://img.shields.io/badge/python-%3E%3D3.10-12d9c4?logo=python&logoColor=white" alt="Python 3.10+">
  <img src="https://img.shields.io/badge/MCP-2.x%20stdio-12d9c4" alt="MCP 2.x stdio">
  <img src="https://img.shields.io/badge/Antigravity%20%7C%20Claude%20%7C%20Codex-plugin-0E7490" alt="Multi-AI Plugin">
  <img src="https://img.shields.io/badge/platforms-Windows%20%7C%20macOS%20%7C%20Linux-3A76F0" alt="Cross-platform">
  <img src="https://img.shields.io/badge/license-MIT-F5A623" alt="MIT License">
</p>

---

## Why Roshi's Recorder MCP?

Google Recorder (`recorder.google.com`) has **no official public API** and only lets you click and download recordings one by one in a browser tab. When you have dozens or hundreds of voice memos, field notes, meetings, or evidentiary recordings spread across accounts, pulling them down manually takes hours.

**Roshi's Recorder MCP** speaks directly to Google Recorder's real backend protocol (`pixelrecorder-pa.clients6.google.com` + `usercontent.recorder.google.com`) while maintaining a **crash-safe, SHA-256 verified local SQLite FTS5 vault (`~/RoshiRecordings/`)** and a **declarative watch & trigger engine**:

- **Personal Voice Notes & Second Brain**: Capture ideas on your Pixel in the field → your workstation automatically syncs, indexes full transcripts, and triggers AI summaries or Antigravity tasks.
- **Clandestine / Evidentiary Chain-of-Custody**: Every downloaded `.m4a` gets an immutable **SHA-256 digest** and `ffprobe` creation timestamp. If a recording is ever deleted remotely from `recorder.google.com`, your vault **never wipes the local copy** — it flags `deleted_remotely_at` and fires a **`recording_removed`** alert.
- **Listen & Clip in Seconds**: Jump straight to any timestamp (`01:10`–`01:35`), speaker turn, or spoken phrase (`query="watch commander"`), cut a playable `.mp3`/`.wav`/`.m4a` clip, and open it in your audio player alongside the transcript.
- **Cross-Device Local Vault Import**: `recorder.google.com` does not expose a web upload/create-recording RPC (cloud uploads are restricted to the native Pixel app). Use **`import_local_recording`** to bring audio from *any* device (iPhone, Zoom, FTR courtroom recordings, Signal voice notes, desktop mic) into the exact same searchable vault.
- **Seamless Roshi Suite Integration**: Hands off vaulted audio directly to **[Roshi's Transcription MCP](https://github.com/RIAEvangelist/roshi-transcription-mcp)** for local GPU NVIDIA Nemotron-3-Diarization + Whisper `large-v3` court-reporter PDF/DOCX transcripts, and shares the same lockable privacy/redaction & watch-trigger architecture as **[Roshi's Signal MCP](https://github.com/RIAEvangelist/roshi-signal-mcp)**.

---

## Install in Seconds

### Google Antigravity (one command)

```bash
agy plugin install RIAEvangelist/roshi-recorder-mcp
```

Installs **all 27 MCP tools**, the **`roshi-recorder-mcp` skill**, and **bundled safety rules**, bootstrapping an isolated Python environment automatically on first launch via [`bootstrap_mcp.py`](./bootstrap_mcp.py).

### Windows / macOS / Linux (local clone)

```powershell
# Windows (PowerShell)
git clone https://github.com/RIAEvangelist/roshi-recorder-mcp.git
cd roshi-recorder-mcp
.\setup.ps1 -InstallPlugin
```

```bash
# macOS / Linux
git clone https://github.com/RIAEvangelist/roshi-recorder-mcp.git
cd roshi-recorder-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-recorder-mcp` |
| **Claude Code & Claude Desktop** | Native Plugin (`.claude-plugin/`) or `uvx` | `claude mcp add roshi-recorder-mcp -- uvx roshi-recorder-mcp` |
| **OpenAI Codex** (CLI & App) | Native Plugin (`.codex-plugin/`) or `uvx` | Add `[mcp_servers.roshi-recorder-mcp]` to `~/.codex/config.toml` |
| **Cursor / Windsurf / Zed / Gemini CLI** | Standard MCP 2.x stdio server | `command: "uvx"`, `args: ["roshi-recorder-mcp"]` |
| **Docker / Glama** | Containerized MCP stdio image | `docker build -t roshi-recorder-mcp .` |
| **Standalone CLI (No AI required)** | PowerShell / Python CLI | `.\recorder-tool.ps1 <cmd>` or `roshi-recorder-cli <cmd>` |

<details>
<summary><strong>Copy-paste MCP configs (uvx / Codex / Claude Desktop / Cursor)</strong></summary>

**JSON MCP config (Claude Desktop, Cursor, Windsurf, Gemini CLI):**
```json
{
  "mcpServers": {
    "roshi-recorder-mcp": {
      "command": "uvx",
      "args": ["roshi-recorder-mcp"]
    }
  }
}
```

**OpenAI Codex (`~/.codex/config.toml`):**
```toml
[mcp_servers.roshi-recorder-mcp]
command = "uvx"
args = ["roshi-recorder-mcp"]
```

</details>

---

## Capabilities at a Glance

| Capability | Tools |
| --- | --- |
| **Multi-account persistent Chrome/Edge auth + silent headless refresh** | `connect_account`, `list_accounts`, `refresh_account_session`, `recorder_doctor` |
| **Browse, read & search transcripts + audio tags (cloud + instant FTS5 vault)** | `list_recordings`, `get_recording`, `get_transcript`, `get_audio_tags`, `search_recordings`, `search_in_recording` |
| **Crash-safe bulk sync, SHA-256 chain-of-custody & external audio import** | `download_recording`, `sync_recordings`, `import_local_recording`, `transcribe_recording` |
| **Play full audio, jump to spoken phrases & cut MP3/WAV/M4A clips** | `play_recording`, `listen_to_section`, `extract_audio_clip` |
| **Cloud organization, speaker naming & safeguarded sharing/deletion** | `rename_recording`, `manage_labels`, `rename_speaker`, `manage_sharing`, `delete_recording` |
| **Lockable local privacy policy (ignore lists + PII/custom redaction)** | `get_privacy_policy`, `manage_ignore_list`, `manage_redaction_rules` |
| **Declarative watch & trigger engine (added/updated/removed/matched)** | `manage_watch_rules`, `manage_recorder_watcher` |

---

## Watch & Trigger Automations (Field Capture → Workstation)

Record on your Pixel phone in the field, and let a remote computer signed into the same Google account automatically react:

- **Events**: `recording_added`, `recording_updated`, `recording_removed`, `transcript_matched`
- **Matchers**: `account`, `title_contains`, `transcript_contains`, `regex`, `label`, `min_duration_seconds`, `max_duration_seconds`, `cooldown_seconds`
- **Actions**:
  - `sync`: Immediately download `.m4a` + transcript + SHA-256 hash into `~/RoshiRecordings/`
  - `transcribe`: Sync and run local GPU `roshi-transcription-mcp` (`fast` / `dual` / `court`)
  - `antigravity_task`: Spawn an Antigravity conversation via `ConversationService`
  - `command`: Run any shell, webhook, Codex, or Signal notification script with redacted `RECORDER_*` environment variables

Run one-shot checks with `/schedule` or cron (`manage_recorder_watcher(action="run_once")`), or start the live polling loop (`manage_recorder_watcher(action="start", poll_interval_seconds=30)`).

---

## Can You Upload Audio to `recorder.google.com`?

**Honestly: no — Google does not expose any upload or create-recording RPC on `recorder.google.com`.** Inspection of the live Google Recorder web frontend confirms its backend only implements `PlaybackService` (16 methods) and `EditingService` (9 methods); cloud recording creation is restricted to the native Pixel/Android app.

**How Roshi's Recorder MCP solves cross-device audio anyway:** Call `import_local_recording(audio_path=..., title=..., tags=[...])` to ingest `.m4a`, `.mp3`, `.wav`, `.flac`, or `.ogg` files from *any* device into `~/RoshiRecordings/local/` — giving external recordings the exact same SHA-256 vault manifest, SQLite FTS5 search, section clipping, playback, and local GPU Nemotron transcription handoff.

---

## Security & Trust Boundary

- **Zero credential leakage**: Session cookies (`SAPISID`, `__Secure-1PAPISID`, `__Secure-3PAPISID`) stay private inside `~/.roshi-recorder-mcp/accounts/<alias>/` (mode `0600` on POSIX) and are never returned in tool outputs.
- **Safeguarded mutations**: `delete_recording` and `manage_sharing` mutations default to `dry_run=True` (and `backup_before_delete=True`).
- **Lockable privacy policy**: Run `.\recorder-tool.ps1 policy lock` (or `roshi-recorder-cli policy lock`) so MCP tools can add stricter ignore/redaction rules but cannot weaken or remove protections until unlocked from your terminal.
- **Non-destructive sync**: Cloud deletions never erase local vault evidence; recordings are stamped with `deleted_remotely_at`.

---

## Standalone CLI Quick Reference

```powershell
.\recorder-tool.ps1 doctor
.\recorder-tool.ps1 auth login --alias personal
.\recorder-tool.ps1 list --favorites
.\recorder-tool.ps1 sync --all
.\recorder-tool.ps1 search "watch commander" --source both
.\recorder-tool.ps1 listen <recording_id> --query "coercive control"
.\recorder-tool.ps1 clip <recording_id> --start 01:10 --end 01:35 --format mp3
.\recorder-tool.ps1 import-local "C:\path\to\voice_memo.m4a" --tag field-note
.\recorder-tool.ps1 transcribe <recording_id> --profile court --precision bf16 --whisper
.\recorder-tool.ps1 policy lock
.\recorder-tool.ps1 watch daemon --interval 30
```

## License

MIT — see [LICENSE](./LICENSE).
