Add host bootstrap and repair helpers
Add a dedicated pyro host surface for supported chat hosts so Claude Code, Codex, and OpenCode users can connect or repair the canonical MCP setup without hand-writing raw commands or config edits. Implement the shared host helper layer and wire it through the CLI with connect, print-config, doctor, and repair, all generated from the same canonical pyro mcp serve command shape and project-source flags. Update the docs, public contract, examples, changelog, and roadmap so the helper flow becomes the primary onramp while raw host-specific commands remain as reference material. Harden the verification path that this milestone exposed: temp git repos in tests now disable commit signing, socket-based port tests skip cleanly when the sandbox forbids those primitives, and make test still uses multiple cores by default but caps xdist workers to a stable value so make check stays fast and deterministic here. Validation: - uv lock - UV_OFFLINE=1 UV_CACHE_DIR=.uv-cache make check - UV_OFFLINE=1 UV_CACHE_DIR=.uv-cache make dist-check
This commit is contained in:
parent
535efc6919
commit
899a6760c4
25 changed files with 1658 additions and 58 deletions
|
|
@ -62,7 +62,8 @@ pyro run debian:12 -- git --version
|
|||
If you are running from a repo checkout instead, replace `pyro` with
|
||||
`uv run pyro`.
|
||||
|
||||
After that one-shot proof works, the intended next step is `pyro mcp serve`.
|
||||
After that one-shot proof works, the intended next step is `pyro host connect`
|
||||
or `pyro host print-config`.
|
||||
|
||||
## 1. Check the host
|
||||
|
||||
|
|
@ -92,7 +93,7 @@ uvx --from pyro-mcp pyro env list
|
|||
Expected output:
|
||||
|
||||
```bash
|
||||
Catalog version: 4.1.0
|
||||
Catalog version: 4.2.0
|
||||
debian:12 [installed|not installed] Debian 12 environment with Git preinstalled for common agent workflows.
|
||||
debian:12-base [installed|not installed] Minimal Debian 12 environment for shell and core Unix tooling.
|
||||
debian:12-build [installed|not installed] Debian 12 environment with Git and common build tools preinstalled.
|
||||
|
|
@ -140,6 +141,23 @@ deterministic structured result.
|
|||
|
||||
## 5. Connect a chat host
|
||||
|
||||
Use the helper flow first:
|
||||
|
||||
```bash
|
||||
uvx --from pyro-mcp pyro host connect claude-code
|
||||
uvx --from pyro-mcp pyro host connect codex
|
||||
uvx --from pyro-mcp pyro host print-config opencode
|
||||
```
|
||||
|
||||
If setup drifts later, inspect and repair it with:
|
||||
|
||||
```bash
|
||||
uvx --from pyro-mcp pyro host doctor
|
||||
uvx --from pyro-mcp pyro host repair claude-code
|
||||
uvx --from pyro-mcp pyro host repair codex
|
||||
uvx --from pyro-mcp pyro host repair opencode
|
||||
```
|
||||
|
||||
Bare `pyro mcp serve` now starts `workspace-core`. From a repo root, it also
|
||||
auto-detects the current Git checkout so the first `workspace_create` can omit
|
||||
`seed_path`.
|
||||
|
|
@ -170,12 +188,14 @@ Copy-paste host-specific starts:
|
|||
Claude Code:
|
||||
|
||||
```bash
|
||||
pyro host connect claude-code
|
||||
claude mcp add pyro -- uvx --from pyro-mcp pyro mcp serve
|
||||
```
|
||||
|
||||
Codex:
|
||||
|
||||
```bash
|
||||
pyro host connect codex
|
||||
codex mcp add pyro -- uvx --from pyro-mcp pyro mcp serve
|
||||
```
|
||||
|
||||
|
|
@ -195,8 +215,9 @@ The intended user journey is:
|
|||
1. validate the host with `pyro doctor`
|
||||
2. pull `debian:12`
|
||||
3. prove guest execution with `pyro run debian:12 -- git --version`
|
||||
4. connect Claude Code, Codex, or OpenCode with `pyro mcp serve` from a repo
|
||||
root, or use `--project-path` / `--repo-url` when needed
|
||||
4. connect Claude Code, Codex, or OpenCode with `pyro host connect ...` or
|
||||
`pyro host print-config opencode`, then use raw `pyro mcp serve` only when
|
||||
you need `--project-path` / `--repo-url`
|
||||
5. start with one use-case recipe from [use-cases/README.md](use-cases/README.md)
|
||||
6. trust but verify with `make smoke-use-cases`
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue