Add project-aware chat startup defaults
Make repo-root chat startup native by letting MCP servers carry a default project source for workspace creation. When a chat host starts from a Git checkout, workspace_create can now omit seed_path and inherit the server startup source; explicit --project-path and clean-clone --repo-url/--repo-ref paths are supported as fallbacks. Add project startup resolution and materialization, surface origin_kind/origin_ref in workspace_seed, update chat-host docs and the repro/fix smoke to use project-aware workspace creation, and switch dist-check to uv run pyro so verification stays stable after uv reinstalls. Validated with uv lock, focused startup/server/CLI pytest coverage, UV_CACHE_DIR=.uv-cache make check, UV_CACHE_DIR=.uv-cache make dist-check, and real guest-backed smokes for both explicit project_path and bare repo-root auto-detection.
This commit is contained in:
parent
9b9b83ebeb
commit
535efc6919
28 changed files with 968 additions and 67 deletions
|
|
@ -27,7 +27,7 @@ Networking: tun=yes ip_forward=yes
|
|||
|
||||
```bash
|
||||
$ uvx --from pyro-mcp pyro env list
|
||||
Catalog version: 4.0.0
|
||||
Catalog version: 4.1.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.
|
||||
|
|
@ -71,13 +71,26 @@ streams, so they may appear in either order in terminals or capture tools. Use
|
|||
|
||||
## 5. Start the MCP server
|
||||
|
||||
Bare `pyro mcp serve` now starts `workspace-core`, which is the intended chat
|
||||
path:
|
||||
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`:
|
||||
|
||||
```bash
|
||||
$ uvx --from pyro-mcp pyro mcp serve
|
||||
```
|
||||
|
||||
If the host does not preserve the server working directory:
|
||||
|
||||
```bash
|
||||
$ uvx --from pyro-mcp pyro mcp serve --project-path /abs/path/to/repo
|
||||
```
|
||||
|
||||
If you are outside a local checkout:
|
||||
|
||||
```bash
|
||||
$ uvx --from pyro-mcp pyro mcp serve --repo-url https://github.com/example/project.git
|
||||
```
|
||||
|
||||
## 6. Connect a chat host
|
||||
|
||||
Claude Code:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue