mirror of
https://github.com/block/buzz.git
synced 2026-10-27 04:30:52 +00:00
Add desktop Playwright e2e harness (#11)
This commit is contained in:
16
README.md
16
README.md
@@ -147,17 +147,21 @@ cargo run -p sprout-admin -- mint-token \
|
||||
--scopes "messages:read,messages:write,channels:read"
|
||||
```
|
||||
|
||||
Outputs a bearer token. Set it as `SPROUT_API_TOKEN` for the MCP server.
|
||||
Save the `nsec...` private key and API token from the output. They are shown only once.
|
||||
|
||||
**6. Connect an agent via MCP**
|
||||
**6. Launch an agent with the MCP extension**
|
||||
|
||||
```bash
|
||||
SPROUT_RELAY_URL=ws://localhost:3000 \
|
||||
SPROUT_API_TOKEN=<token> \
|
||||
cargo run -p sprout-mcp
|
||||
SPROUT_PRIVATE_KEY=nsec1... \
|
||||
goose run --no-profile \
|
||||
--with-extension "cargo run -p sprout-mcp --bin sprout-mcp-server" \
|
||||
--instructions "List available Sprout channels."
|
||||
```
|
||||
|
||||
The MCP server speaks stdio JSON-RPC. Wire it into any MCP-compatible agent host.
|
||||
`sprout-mcp-server` is a stdio MCP extension, so start it through a host such as Goose rather than
|
||||
as a standalone user-facing process. See [TESTING.md](TESTING.md) for the full multi-agent flow.
|
||||
|
||||
**7. Run the desktop app (optional)**
|
||||
|
||||
@@ -262,9 +266,11 @@ just reset # ⚠️ Wipe all data and recreate environment
|
||||
```bash
|
||||
cargo run -p sprout-relay
|
||||
cargo run -p sprout-admin -- --help
|
||||
cargo run -p sprout-mcp
|
||||
cargo run -p sprout-mcp --bin sprout-mcp-server
|
||||
```
|
||||
|
||||
`sprout-mcp-server` is normally launched by Goose or another MCP host.
|
||||
|
||||
**Database migrations** live in `migrations/`. The relay applies them automatically on startup.
|
||||
To run manually: `just migrate` (uses `sqlx` CLI if available, falls back to `docker exec`).
|
||||
|
||||
|
||||
Reference in New Issue
Block a user