roshi-environment-mcp 0.2.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_environment_mcp-0.2.0/LICENSE +21 -0
- roshi_environment_mcp-0.2.0/PKG-INFO +161 -0
- roshi_environment_mcp-0.2.0/README.md +146 -0
- roshi_environment_mcp-0.2.0/environment_mcp/__init__.py +4 -0
- roshi_environment_mcp-0.2.0/environment_mcp/catalog.py +437 -0
- roshi_environment_mcp-0.2.0/environment_mcp/cli.py +456 -0
- roshi_environment_mcp-0.2.0/environment_mcp/config.py +135 -0
- roshi_environment_mcp-0.2.0/environment_mcp/daemon.py +1018 -0
- roshi_environment_mcp-0.2.0/environment_mcp/dashboard.py +1608 -0
- roshi_environment_mcp-0.2.0/environment_mcp/db.py +323 -0
- roshi_environment_mcp-0.2.0/environment_mcp/desktop_app.py +1373 -0
- roshi_environment_mcp-0.2.0/environment_mcp/hf_oauth.py +289 -0
- roshi_environment_mcp-0.2.0/environment_mcp/hf_setup_window.py +578 -0
- roshi_environment_mcp-0.2.0/environment_mcp/hosting.py +442 -0
- roshi_environment_mcp-0.2.0/environment_mcp/hosts.py +823 -0
- roshi_environment_mcp-0.2.0/environment_mcp/installer.py +848 -0
- roshi_environment_mcp-0.2.0/environment_mcp/models_boss.py +1017 -0
- roshi_environment_mcp-0.2.0/environment_mcp/process_identity.py +520 -0
- roshi_environment_mcp-0.2.0/environment_mcp/roshi_ecosystem.py +523 -0
- roshi_environment_mcp-0.2.0/environment_mcp/server.py +750 -0
- roshi_environment_mcp-0.2.0/environment_mcp/tracker.py +472 -0
- roshi_environment_mcp-0.2.0/pyproject.toml +41 -0
- roshi_environment_mcp-0.2.0/roshi_environment_mcp.egg-info/PKG-INFO +161 -0
- roshi_environment_mcp-0.2.0/roshi_environment_mcp.egg-info/SOURCES.txt +31 -0
- roshi_environment_mcp-0.2.0/roshi_environment_mcp.egg-info/dependency_links.txt +1 -0
- roshi_environment_mcp-0.2.0/roshi_environment_mcp.egg-info/entry_points.txt +3 -0
- roshi_environment_mcp-0.2.0/roshi_environment_mcp.egg-info/requires.txt +4 -0
- roshi_environment_mcp-0.2.0/roshi_environment_mcp.egg-info/top_level.txt +1 -0
- roshi_environment_mcp-0.2.0/setup.cfg +4 -0
- roshi_environment_mcp-0.2.0/tests/test_desktop_app.py +293 -0
- roshi_environment_mcp-0.2.0/tests/test_environment_mcp.py +419 -0
- roshi_environment_mcp-0.2.0/tests/test_hosting.py +273 -0
- roshi_environment_mcp-0.2.0/tests/test_models_boss.py +76 -0
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 RIAEvangelist (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,161 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: roshi-environment-mcp
|
|
3
|
+
Version: 0.2.0
|
|
4
|
+
Summary: Unified Roshi MCP Environment Manager & Marketplace — discover every Roshi MCP, track installed versions and health across Antigravity, Hermes, Codex, Claude Code, and OpenClaw, and install, reinstall, update, or uninstall plugins from one local dashboard, CLI, or MCP server.
|
|
5
|
+
Author-email: "RIAEvangelist (Roshi)" <roshi@riaevangelist.dev>
|
|
6
|
+
License-Expression: MIT
|
|
7
|
+
Keywords: mcp,marketplace,plugin-manager,roshi-mcp,twin,antigravity,hermes,codex,claude-code,local-first
|
|
8
|
+
Requires-Python: >=3.10
|
|
9
|
+
Description-Content-Type: text/markdown
|
|
10
|
+
License-File: LICENSE
|
|
11
|
+
Requires-Dist: mcp>=2.0.0
|
|
12
|
+
Provides-Extra: dev
|
|
13
|
+
Requires-Dist: pytest>=8.0; extra == "dev"
|
|
14
|
+
Dynamic: license-file
|
|
15
|
+
|
|
16
|
+
<!-- mcp-name: io.github.RIAEvangelist/roshi-environment-mcp -->
|
|
17
|
+
|
|
18
|
+
<p align="center">
|
|
19
|
+
<a href="https://riaevangelist.github.io/roshi-environment-mcp/"><img src="assets/roshi-environment-mcp-header.png" alt="Roshi's Environment MCP — Unified Roshi MCP Marketplace & Multi-Host Manager" width="100%" /></a>
|
|
20
|
+
</p>
|
|
21
|
+
|
|
22
|
+
<h1 align="center">Roshi's Environment MCP</h1>
|
|
23
|
+
|
|
24
|
+
<p align="center">
|
|
25
|
+
<strong>One local-first marketplace & environment manager for every Roshi MCP.</strong><br/>
|
|
26
|
+
Discover what exists • Track what is installed • Detect drift & live daemons • Install, reinstall, update, or uninstall across <strong>Antigravity, Hermes, OpenClaw, OpenAI Codex, Claude Code, Cursor, VS Code / GitHub Copilot, and local CLI scripts</strong>.
|
|
27
|
+
</p>
|
|
28
|
+
|
|
29
|
+
<p align="center">
|
|
30
|
+
<a href="https://riaevangelist.github.io/roshi-environment-mcp/"><strong>Documentation Site</strong></a>
|
|
31
|
+
·
|
|
32
|
+
<a href="https://riaevangelist.github.io/roshi-environment-mcp/marketplace.html">Marketplace & Tracking</a>
|
|
33
|
+
·
|
|
34
|
+
<a href="https://riaevangelist.github.io/roshi-environment-mcp/hosts.html">Multi-Host Setup</a>
|
|
35
|
+
·
|
|
36
|
+
<a href="https://riaevangelist.github.io/roshi-environment-mcp/tools.html">MCP Tools</a>
|
|
37
|
+
·
|
|
38
|
+
<a href="https://riaevangelist.github.io/roshi-environment-mcp/cli.html">CLI & REST API</a>
|
|
39
|
+
·
|
|
40
|
+
<a href="https://github.com/RIAEvangelist/roshi-environment-mcp"><strong>GitHub Repository</strong></a>
|
|
41
|
+
</p>
|
|
42
|
+
|
|
43
|
+
<p align="center">
|
|
44
|
+
<img src="https://img.shields.io/badge/version-v0.2.0-d4a853?style=flat-square" alt="Version v0.2.0" />
|
|
45
|
+
<img src="https://img.shields.io/badge/python-%3E%3D3.10-38bdf8?style=flat-square" alt="Python >=3.10" />
|
|
46
|
+
<img src="https://img.shields.io/badge/MCP-2.x%20stdio%20%2B%20HTTP-0ea5e9?style=flat-square" alt="MCP 2.x stdio + HTTP" />
|
|
47
|
+
<img src="https://img.shields.io/badge/hosts-Hermes%20%7C%20Antigravity%20%7C%20Claude%20%7C%20Codex%20%7C%20VS%20Code-1e293b?style=flat-square" alt="Hermes | Antigravity | Claude | Codex | VS Code" />
|
|
48
|
+
<img src="https://img.shields.io/badge/platform-Windows%20%7C%20macOS%20%7C%20Linux-34d399?style=flat-square" alt="Windows | macOS | Linux" />
|
|
49
|
+
<img src="https://img.shields.io/badge/license-MIT-d4a853?style=flat-square" alt="MIT License" />
|
|
50
|
+
</p>
|
|
51
|
+
|
|
52
|
+
<p align="center">
|
|
53
|
+
<strong>Directories & Registries:</strong>
|
|
54
|
+
<a href="https://pypi.org/project/roshi-environment-mcp/">PyPI</a> ·
|
|
55
|
+
<a href="https://registry.modelcontextprotocol.io/v0.1/servers?search=io.github.RIAEvangelist/roshi-environment-mcp">Official MCP Registry</a> ·
|
|
56
|
+
<a href="https://github.com/RIAEvangelist/roshi-environment-mcp">GitHub Repository</a>
|
|
57
|
+
·
|
|
58
|
+
<a href="https://riaevangelist.github.io/roshi-environment-mcp/">Documentation Site</a>
|
|
59
|
+
</p>
|
|
60
|
+
|
|
61
|
+
> **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).
|
|
62
|
+
|
|
63
|
+
---
|
|
64
|
+
|
|
65
|
+
## Why Roshi's Environment MCP?
|
|
66
|
+
|
|
67
|
+
As the Roshi & TWiN local-first MCP ecosystem grows (`roshi-agent-board-mcp`, `roshi-server-manager-mcp`, `roshi-model-manager-mcp`, `roshi-speech-mcp`, `roshi-transcription-mcp`, `roshi-recorder-mcp`, `roshi-signal-mcp`, `roshi-google-chat-mcp`, `roshi-google-messages-mcp`, plus your own local/custom plugins), keeping track of what exists, what is installed on each AI host, what has drifted from source, and what needs updating should feel effortless — just like a dedicated plugin marketplace page.
|
|
68
|
+
|
|
69
|
+
**Roshi's Environment MCP** gives you:
|
|
70
|
+
- **Unified Marketplace Catalog**: Combines the bundled official Roshi catalog (`registry/catalog.json`), live remote JSON feeds, GitHub discovery (`RIAEvangelist/roshi-*-mcp`), custom user-registered MCPs, and live local repository scanning (`~/.gemini/antigravity/scratch`, `~/git`, `~/Documents/GitHub`, etc.).
|
|
71
|
+
- **Live System & Multi-Host Tracking**: Tracks installed versions, deterministic manifest drift hashes, isolated Python venv readiness (`~/.cache/<id>/venv`), and live daemon health across **Antigravity, Hermes Agent, OpenAI Codex, Claude Code, OpenClaw, Cursor, and VS Code / Copilot**.
|
|
72
|
+
- **One-Click Install, Reinstall, Update & Uninstall**: Available through **MCP tools**, a **standalone CLI (`run_cli.py` / `roshi-env`)**, and a **zero-Node local HTTPS Marketplace Dashboard** (`https://roshi.env.local/`).
|
|
73
|
+
- **Safety-First by Design**: Every uninstall preserves user data vaults (`~/Roshi*`, `~/.roshi-*-mcp/`), host config edits create atomic timestamped backups in `~/.roshi-environment-mcp/backups/`, and Antigravity's `~/.gemini/config/config.json` is never hand-edited.
|
|
74
|
+
- **SQLite Audit Ledger**: Every install, reinstall, update, uninstall, host sync, and catalog refresh is logged in `~/.roshi-environment-mcp/registry.db`.
|
|
75
|
+
- **Composable Roshi Ecosystem**: Auto-registers `https://roshi.env.local` with `roshi-server-manager-mcp` (`https://roshi.servers.local`) when running and announces plugin lifecycle events to `roshi-agent-board-mcp` (`https://roshi.board.local`) when online.
|
|
76
|
+
|
|
77
|
+
---
|
|
78
|
+
|
|
79
|
+
## Quick Install
|
|
80
|
+
|
|
81
|
+
### Windows (PowerShell)
|
|
82
|
+
```powershell
|
|
83
|
+
git clone https://github.com/RIAEvangelist/roshi-environment-mcp.git
|
|
84
|
+
cd roshi-environment-mcp
|
|
85
|
+
.\setup.ps1 -InstallPlugin -StartDaemon
|
|
86
|
+
# Optional: also wire up Hermes and Codex immediately
|
|
87
|
+
.\setup.ps1 -InstallPlugin -ConfigureHermes -ConfigureCodex -StartDaemon
|
|
88
|
+
```
|
|
89
|
+
|
|
90
|
+
### macOS / Linux
|
|
91
|
+
```bash
|
|
92
|
+
git clone https://github.com/RIAEvangelist/roshi-environment-mcp.git
|
|
93
|
+
cd roshi-environment-mcp
|
|
94
|
+
bash ./setup.sh --install-plugin --start-daemon
|
|
95
|
+
# Optional: --configure-hermes --configure-codex
|
|
96
|
+
```
|
|
97
|
+
|
|
98
|
+
Open the live Marketplace Dashboard at **`https://roshi.env.local/`** (routed automatically over trusted local HTTPS via `roshi-server-manager-mcp`).
|
|
99
|
+
|
|
100
|
+
---
|
|
101
|
+
|
|
102
|
+
## First-Class Multi-Host Support
|
|
103
|
+
|
|
104
|
+
Roshi's Environment MCP treats **Hermes, OpenClaw, goose, Cline, Continue, VS Code / GitHub Copilot, Ollama / local open-source stacks, and CLI scripts** as first-class citizens alongside **Antigravity, OpenAI Codex, and Claude Code**:
|
|
105
|
+
|
|
106
|
+
- **Antigravity**: Installs bundles into `~/.gemini/config/plugins/<name>/` (zero-config auto-discovery).
|
|
107
|
+
- **Hermes Agent**: Surgically manages `mcp_servers:` entries in `~/.hermes/config.yaml`.
|
|
108
|
+
- **OpenAI Codex**: Surgically manages `[mcp_servers.<short_id>]` entries in `~/.codex/config.toml`.
|
|
109
|
+
- **Claude Code**: Manages `~/.claude.json` `mcpServers` + exports unified `.claude-plugin/marketplace.json`.
|
|
110
|
+
- **OpenClaw / Cursor / VS Code Copilot**: Safely reads & updates `mcp.json` or generates copy-paste configs.
|
|
111
|
+
- **Standalone CLI & REST API**: Zero vendor lock-in — run `python run_cli.py list` or `curl https://roshi.env.local/api/v1/marketplace` from any script or local agent framework.
|
|
112
|
+
|
|
113
|
+
---
|
|
114
|
+
|
|
115
|
+
## MCP Tools
|
|
116
|
+
|
|
117
|
+
| Tool | Purpose |
|
|
118
|
+
| :--- | :--- |
|
|
119
|
+
| `environment_doctor` | Full ecosystem diagnostic: catalog counts, installed plugins, drift, detected AI hosts, running daemons, sibling MCPs |
|
|
120
|
+
| `list_marketplace` | Browse & filter all Roshi MCPs (`all`, `installed`, `available`, `updates`, `daemons`, `legacy`, category, search, host) |
|
|
121
|
+
| `get_plugin_details` | Deep inspection of one Roshi MCP: versions, drift hashes, per-host state, venv health, skills, and install history |
|
|
122
|
+
| `install_plugin` | Install a Roshi MCP from local repo or GitHub into one or more AI hosts (`dry_run`, `warm_venv`, `pull_remote`) |
|
|
123
|
+
| `reinstall_plugin` | Reinstall / repair from latest source with optional `rebuild_venv=True` |
|
|
124
|
+
| `uninstall_plugin` | Safely uninstall from selected host(s) while preserving user data vaults (`dry_run=True` default) |
|
|
125
|
+
| `update_plugins` | Check or upgrade one / all outdated or drifted Roshi MCPs |
|
|
126
|
+
| `sync_catalog` | Refresh remote feeds, GitHub `RIAEvangelist` discovery, local repo scans, or register custom Roshi MCPs |
|
|
127
|
+
| `manage_hosts` | Inspect detected AI hosts, sync all installed Roshi MCPs to a host, export unified manifests, or get connect snippets |
|
|
128
|
+
| `manage_daemon` | Start, stop, restart, or inspect the local HTTPS Marketplace Dashboard (`https://roshi.env.local/`) |
|
|
129
|
+
| `manage_hosting` | Inspect or toggle `local_only` vs opt-in `intranet` (LAN) hosting with Bearer auth & Server Manager sync |
|
|
130
|
+
| `get_history` | Read the SQLite audit trail of all install/reinstall/update/uninstall operations |
|
|
131
|
+
|
|
132
|
+
---
|
|
133
|
+
|
|
134
|
+
## Standalone CLI Examples
|
|
135
|
+
|
|
136
|
+
```bash
|
|
137
|
+
python run_cli.py list
|
|
138
|
+
python run_cli.py list --status updates
|
|
139
|
+
python run_cli.py install roshi-agent-board-mcp --hosts antigravity,hermes,codex
|
|
140
|
+
python run_cli.py reinstall roshi-server-manager-mcp --rebuild-venv
|
|
141
|
+
python run_cli.py update --all
|
|
142
|
+
python run_cli.py uninstall roshi-diarization-mcp --dry-run
|
|
143
|
+
python run_cli.py hosts --sync hermes
|
|
144
|
+
python run_cli.py daemon-start
|
|
145
|
+
python run_cli.py hosting status
|
|
146
|
+
python run_cli.py hosting enable-intranet
|
|
147
|
+
python run_cli.py hosting rotate-token
|
|
148
|
+
python run_cli.py hosting disable-intranet
|
|
149
|
+
```
|
|
150
|
+
|
|
151
|
+
## Local-Only & Opt-In Intranet (LAN) Hosting
|
|
152
|
+
|
|
153
|
+
- Defaults strictly to **`local_only`** (`https://roshi.env.local/`).
|
|
154
|
+
- Toggle **Intranet (LAN)** access anytime from the **Hosting & Intranet (LAN) Access** dashboard card at `https://roshi.env.local/`, the `manage_hosting` MCP tool, `GET/POST /api/v1/hosting`, or `roshi-env hosting enable-intranet` / `disable-intranet` / `rotate-token`.
|
|
155
|
+
- Enabling Intranet auto-generates an `rsh_...` Bearer token persisted at `~/.roshi-environment-mcp/hosting.json` (`0600` on POSIX), enforces Bearer auth on all non-loopback requests, syncs exposure policy with `https://roshi.servers.local/`, and restricts raw token reveal strictly to loopback.
|
|
156
|
+
|
|
157
|
+
---
|
|
158
|
+
|
|
159
|
+
## License
|
|
160
|
+
|
|
161
|
+
MIT — © 2026 RIAEvangelist (Roshi)
|
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
<!-- mcp-name: io.github.RIAEvangelist/roshi-environment-mcp -->
|
|
2
|
+
|
|
3
|
+
<p align="center">
|
|
4
|
+
<a href="https://riaevangelist.github.io/roshi-environment-mcp/"><img src="assets/roshi-environment-mcp-header.png" alt="Roshi's Environment MCP — Unified Roshi MCP Marketplace & Multi-Host Manager" width="100%" /></a>
|
|
5
|
+
</p>
|
|
6
|
+
|
|
7
|
+
<h1 align="center">Roshi's Environment MCP</h1>
|
|
8
|
+
|
|
9
|
+
<p align="center">
|
|
10
|
+
<strong>One local-first marketplace & environment manager for every Roshi MCP.</strong><br/>
|
|
11
|
+
Discover what exists • Track what is installed • Detect drift & live daemons • Install, reinstall, update, or uninstall across <strong>Antigravity, Hermes, OpenClaw, OpenAI Codex, Claude Code, Cursor, VS Code / GitHub Copilot, and local CLI scripts</strong>.
|
|
12
|
+
</p>
|
|
13
|
+
|
|
14
|
+
<p align="center">
|
|
15
|
+
<a href="https://riaevangelist.github.io/roshi-environment-mcp/"><strong>Documentation Site</strong></a>
|
|
16
|
+
·
|
|
17
|
+
<a href="https://riaevangelist.github.io/roshi-environment-mcp/marketplace.html">Marketplace & Tracking</a>
|
|
18
|
+
·
|
|
19
|
+
<a href="https://riaevangelist.github.io/roshi-environment-mcp/hosts.html">Multi-Host Setup</a>
|
|
20
|
+
·
|
|
21
|
+
<a href="https://riaevangelist.github.io/roshi-environment-mcp/tools.html">MCP Tools</a>
|
|
22
|
+
·
|
|
23
|
+
<a href="https://riaevangelist.github.io/roshi-environment-mcp/cli.html">CLI & REST API</a>
|
|
24
|
+
·
|
|
25
|
+
<a href="https://github.com/RIAEvangelist/roshi-environment-mcp"><strong>GitHub Repository</strong></a>
|
|
26
|
+
</p>
|
|
27
|
+
|
|
28
|
+
<p align="center">
|
|
29
|
+
<img src="https://img.shields.io/badge/version-v0.2.0-d4a853?style=flat-square" alt="Version v0.2.0" />
|
|
30
|
+
<img src="https://img.shields.io/badge/python-%3E%3D3.10-38bdf8?style=flat-square" alt="Python >=3.10" />
|
|
31
|
+
<img src="https://img.shields.io/badge/MCP-2.x%20stdio%20%2B%20HTTP-0ea5e9?style=flat-square" alt="MCP 2.x stdio + HTTP" />
|
|
32
|
+
<img src="https://img.shields.io/badge/hosts-Hermes%20%7C%20Antigravity%20%7C%20Claude%20%7C%20Codex%20%7C%20VS%20Code-1e293b?style=flat-square" alt="Hermes | Antigravity | Claude | Codex | VS Code" />
|
|
33
|
+
<img src="https://img.shields.io/badge/platform-Windows%20%7C%20macOS%20%7C%20Linux-34d399?style=flat-square" alt="Windows | macOS | Linux" />
|
|
34
|
+
<img src="https://img.shields.io/badge/license-MIT-d4a853?style=flat-square" alt="MIT License" />
|
|
35
|
+
</p>
|
|
36
|
+
|
|
37
|
+
<p align="center">
|
|
38
|
+
<strong>Directories & Registries:</strong>
|
|
39
|
+
<a href="https://pypi.org/project/roshi-environment-mcp/">PyPI</a> ·
|
|
40
|
+
<a href="https://registry.modelcontextprotocol.io/v0.1/servers?search=io.github.RIAEvangelist/roshi-environment-mcp">Official MCP Registry</a> ·
|
|
41
|
+
<a href="https://github.com/RIAEvangelist/roshi-environment-mcp">GitHub Repository</a>
|
|
42
|
+
·
|
|
43
|
+
<a href="https://riaevangelist.github.io/roshi-environment-mcp/">Documentation Site</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
|
+
## Why Roshi's Environment MCP?
|
|
51
|
+
|
|
52
|
+
As the Roshi & TWiN local-first MCP ecosystem grows (`roshi-agent-board-mcp`, `roshi-server-manager-mcp`, `roshi-model-manager-mcp`, `roshi-speech-mcp`, `roshi-transcription-mcp`, `roshi-recorder-mcp`, `roshi-signal-mcp`, `roshi-google-chat-mcp`, `roshi-google-messages-mcp`, plus your own local/custom plugins), keeping track of what exists, what is installed on each AI host, what has drifted from source, and what needs updating should feel effortless — just like a dedicated plugin marketplace page.
|
|
53
|
+
|
|
54
|
+
**Roshi's Environment MCP** gives you:
|
|
55
|
+
- **Unified Marketplace Catalog**: Combines the bundled official Roshi catalog (`registry/catalog.json`), live remote JSON feeds, GitHub discovery (`RIAEvangelist/roshi-*-mcp`), custom user-registered MCPs, and live local repository scanning (`~/.gemini/antigravity/scratch`, `~/git`, `~/Documents/GitHub`, etc.).
|
|
56
|
+
- **Live System & Multi-Host Tracking**: Tracks installed versions, deterministic manifest drift hashes, isolated Python venv readiness (`~/.cache/<id>/venv`), and live daemon health across **Antigravity, Hermes Agent, OpenAI Codex, Claude Code, OpenClaw, Cursor, and VS Code / Copilot**.
|
|
57
|
+
- **One-Click Install, Reinstall, Update & Uninstall**: Available through **MCP tools**, a **standalone CLI (`run_cli.py` / `roshi-env`)**, and a **zero-Node local HTTPS Marketplace Dashboard** (`https://roshi.env.local/`).
|
|
58
|
+
- **Safety-First by Design**: Every uninstall preserves user data vaults (`~/Roshi*`, `~/.roshi-*-mcp/`), host config edits create atomic timestamped backups in `~/.roshi-environment-mcp/backups/`, and Antigravity's `~/.gemini/config/config.json` is never hand-edited.
|
|
59
|
+
- **SQLite Audit Ledger**: Every install, reinstall, update, uninstall, host sync, and catalog refresh is logged in `~/.roshi-environment-mcp/registry.db`.
|
|
60
|
+
- **Composable Roshi Ecosystem**: Auto-registers `https://roshi.env.local` with `roshi-server-manager-mcp` (`https://roshi.servers.local`) when running and announces plugin lifecycle events to `roshi-agent-board-mcp` (`https://roshi.board.local`) when online.
|
|
61
|
+
|
|
62
|
+
---
|
|
63
|
+
|
|
64
|
+
## Quick Install
|
|
65
|
+
|
|
66
|
+
### Windows (PowerShell)
|
|
67
|
+
```powershell
|
|
68
|
+
git clone https://github.com/RIAEvangelist/roshi-environment-mcp.git
|
|
69
|
+
cd roshi-environment-mcp
|
|
70
|
+
.\setup.ps1 -InstallPlugin -StartDaemon
|
|
71
|
+
# Optional: also wire up Hermes and Codex immediately
|
|
72
|
+
.\setup.ps1 -InstallPlugin -ConfigureHermes -ConfigureCodex -StartDaemon
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
### macOS / Linux
|
|
76
|
+
```bash
|
|
77
|
+
git clone https://github.com/RIAEvangelist/roshi-environment-mcp.git
|
|
78
|
+
cd roshi-environment-mcp
|
|
79
|
+
bash ./setup.sh --install-plugin --start-daemon
|
|
80
|
+
# Optional: --configure-hermes --configure-codex
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
Open the live Marketplace Dashboard at **`https://roshi.env.local/`** (routed automatically over trusted local HTTPS via `roshi-server-manager-mcp`).
|
|
84
|
+
|
|
85
|
+
---
|
|
86
|
+
|
|
87
|
+
## First-Class Multi-Host Support
|
|
88
|
+
|
|
89
|
+
Roshi's Environment MCP treats **Hermes, OpenClaw, goose, Cline, Continue, VS Code / GitHub Copilot, Ollama / local open-source stacks, and CLI scripts** as first-class citizens alongside **Antigravity, OpenAI Codex, and Claude Code**:
|
|
90
|
+
|
|
91
|
+
- **Antigravity**: Installs bundles into `~/.gemini/config/plugins/<name>/` (zero-config auto-discovery).
|
|
92
|
+
- **Hermes Agent**: Surgically manages `mcp_servers:` entries in `~/.hermes/config.yaml`.
|
|
93
|
+
- **OpenAI Codex**: Surgically manages `[mcp_servers.<short_id>]` entries in `~/.codex/config.toml`.
|
|
94
|
+
- **Claude Code**: Manages `~/.claude.json` `mcpServers` + exports unified `.claude-plugin/marketplace.json`.
|
|
95
|
+
- **OpenClaw / Cursor / VS Code Copilot**: Safely reads & updates `mcp.json` or generates copy-paste configs.
|
|
96
|
+
- **Standalone CLI & REST API**: Zero vendor lock-in — run `python run_cli.py list` or `curl https://roshi.env.local/api/v1/marketplace` from any script or local agent framework.
|
|
97
|
+
|
|
98
|
+
---
|
|
99
|
+
|
|
100
|
+
## MCP Tools
|
|
101
|
+
|
|
102
|
+
| Tool | Purpose |
|
|
103
|
+
| :--- | :--- |
|
|
104
|
+
| `environment_doctor` | Full ecosystem diagnostic: catalog counts, installed plugins, drift, detected AI hosts, running daemons, sibling MCPs |
|
|
105
|
+
| `list_marketplace` | Browse & filter all Roshi MCPs (`all`, `installed`, `available`, `updates`, `daemons`, `legacy`, category, search, host) |
|
|
106
|
+
| `get_plugin_details` | Deep inspection of one Roshi MCP: versions, drift hashes, per-host state, venv health, skills, and install history |
|
|
107
|
+
| `install_plugin` | Install a Roshi MCP from local repo or GitHub into one or more AI hosts (`dry_run`, `warm_venv`, `pull_remote`) |
|
|
108
|
+
| `reinstall_plugin` | Reinstall / repair from latest source with optional `rebuild_venv=True` |
|
|
109
|
+
| `uninstall_plugin` | Safely uninstall from selected host(s) while preserving user data vaults (`dry_run=True` default) |
|
|
110
|
+
| `update_plugins` | Check or upgrade one / all outdated or drifted Roshi MCPs |
|
|
111
|
+
| `sync_catalog` | Refresh remote feeds, GitHub `RIAEvangelist` discovery, local repo scans, or register custom Roshi MCPs |
|
|
112
|
+
| `manage_hosts` | Inspect detected AI hosts, sync all installed Roshi MCPs to a host, export unified manifests, or get connect snippets |
|
|
113
|
+
| `manage_daemon` | Start, stop, restart, or inspect the local HTTPS Marketplace Dashboard (`https://roshi.env.local/`) |
|
|
114
|
+
| `manage_hosting` | Inspect or toggle `local_only` vs opt-in `intranet` (LAN) hosting with Bearer auth & Server Manager sync |
|
|
115
|
+
| `get_history` | Read the SQLite audit trail of all install/reinstall/update/uninstall operations |
|
|
116
|
+
|
|
117
|
+
---
|
|
118
|
+
|
|
119
|
+
## Standalone CLI Examples
|
|
120
|
+
|
|
121
|
+
```bash
|
|
122
|
+
python run_cli.py list
|
|
123
|
+
python run_cli.py list --status updates
|
|
124
|
+
python run_cli.py install roshi-agent-board-mcp --hosts antigravity,hermes,codex
|
|
125
|
+
python run_cli.py reinstall roshi-server-manager-mcp --rebuild-venv
|
|
126
|
+
python run_cli.py update --all
|
|
127
|
+
python run_cli.py uninstall roshi-diarization-mcp --dry-run
|
|
128
|
+
python run_cli.py hosts --sync hermes
|
|
129
|
+
python run_cli.py daemon-start
|
|
130
|
+
python run_cli.py hosting status
|
|
131
|
+
python run_cli.py hosting enable-intranet
|
|
132
|
+
python run_cli.py hosting rotate-token
|
|
133
|
+
python run_cli.py hosting disable-intranet
|
|
134
|
+
```
|
|
135
|
+
|
|
136
|
+
## Local-Only & Opt-In Intranet (LAN) Hosting
|
|
137
|
+
|
|
138
|
+
- Defaults strictly to **`local_only`** (`https://roshi.env.local/`).
|
|
139
|
+
- Toggle **Intranet (LAN)** access anytime from the **Hosting & Intranet (LAN) Access** dashboard card at `https://roshi.env.local/`, the `manage_hosting` MCP tool, `GET/POST /api/v1/hosting`, or `roshi-env hosting enable-intranet` / `disable-intranet` / `rotate-token`.
|
|
140
|
+
- Enabling Intranet auto-generates an `rsh_...` Bearer token persisted at `~/.roshi-environment-mcp/hosting.json` (`0600` on POSIX), enforces Bearer auth on all non-loopback requests, syncs exposure policy with `https://roshi.servers.local/`, and restricts raw token reveal strictly to loopback.
|
|
141
|
+
|
|
142
|
+
---
|
|
143
|
+
|
|
144
|
+
## License
|
|
145
|
+
|
|
146
|
+
MIT — © 2026 RIAEvangelist (Roshi)
|