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
|
|
@ -9,6 +9,9 @@ claude mcp add pyro -- uvx --from pyro-mcp pyro mcp serve
|
|||
claude mcp list
|
||||
```
|
||||
|
||||
Run that from the repo root when you want the first `workspace_create` to start
|
||||
from the current checkout automatically.
|
||||
|
||||
Already installed:
|
||||
|
||||
```bash
|
||||
|
|
@ -16,6 +19,13 @@ claude mcp add pyro -- pyro mcp serve
|
|||
claude mcp list
|
||||
```
|
||||
|
||||
If Claude Code launches the server from an unexpected cwd, pin the project
|
||||
explicitly:
|
||||
|
||||
```bash
|
||||
claude mcp add pyro -- uvx --from pyro-mcp pyro mcp serve --project-path /abs/path/to/repo
|
||||
```
|
||||
|
||||
Move to `workspace-full` only when the chat truly needs shells, services,
|
||||
snapshots, secrets, network policy, or disk tools:
|
||||
|
||||
|
|
|
|||
|
|
@ -9,6 +9,9 @@ codex mcp add pyro -- uvx --from pyro-mcp pyro mcp serve
|
|||
codex mcp list
|
||||
```
|
||||
|
||||
Run that from the repo root when you want the first `workspace_create` to start
|
||||
from the current checkout automatically.
|
||||
|
||||
Already installed:
|
||||
|
||||
```bash
|
||||
|
|
@ -16,6 +19,13 @@ codex mcp add pyro -- pyro mcp serve
|
|||
codex mcp list
|
||||
```
|
||||
|
||||
If Codex launches the server from an unexpected cwd, pin the project
|
||||
explicitly:
|
||||
|
||||
```bash
|
||||
codex mcp add pyro -- uvx --from pyro-mcp pyro mcp serve --project-path /abs/path/to/repo
|
||||
```
|
||||
|
||||
Move to `workspace-full` only when the chat truly needs shells, services,
|
||||
snapshots, secrets, network policy, or disk tools:
|
||||
|
||||
|
|
|
|||
|
|
@ -39,6 +39,10 @@ If `pyro-mcp` is already installed locally, the same server can be configured wi
|
|||
}
|
||||
```
|
||||
|
||||
If the host does not preserve the server working directory and you want the
|
||||
first `workspace_create` to start from a specific checkout, add
|
||||
`"--project-path", "/abs/path/to/repo"` after `"serve"` in the same args list.
|
||||
|
||||
Profile progression:
|
||||
|
||||
- `workspace-core`: the default and recommended first persistent chat profile
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue