bellwether watch
Automatically re-interview when files change.
Synopsis
bellwether watch [options] <command> [args...]
Description
Watch mode monitors your source files and automatically re-runs interviews when changes are detected. This is useful during development to continuously validate your MCP server's behavior.
Arguments
| Argument | Description |
|---|---|
<command> | The command to start the MCP server |
[args...] | Arguments to pass to the server command |
Options
| Option | Description | Default |
|---|---|---|
--watch-path <path> | Directory to watch for changes | ./src |
--debounce <ms> | Debounce time before re-running | 1000 |
--show-diff | Show diff from previous interview | true |
All options from interview are also supported.
Examples
Basic Watch Mode
bellwether watch npx your-server --watch-path ./src
Watch Multiple Directories
bellwether watch npx your-server \
--watch-path ./src \
--watch-path ./lib
Quick Mode Watch
# Fast re-interviews during development
bellwether watch --quick npx your-server --watch-path ./src
Behavior
- Initial interview - Runs a full interview on startup
- File monitoring - Watches specified directories for changes
- Debouncing - Waits for changes to settle before re-running
- Re-interview - Runs interview and shows diff from previous
- Repeat - Continues monitoring
Output:
[watch] Initial interview starting...
[watch] Interview complete. Watching ./src for changes...
[watch] File changed: src/tools/read.ts
[watch] Re-running interview...
Changes detected:
+ read_file now handles symlinks
~ error message format changed for ENOENT
[watch] Interview complete. Watching for changes...
Use Cases
Development Workflow
Keep watch running in a terminal while developing:
# Terminal 1: Watch for changes
bellwether watch npx your-server --watch-path ./src
# Terminal 2: Edit your server code
vim src/tools/read.ts
# Watch automatically re-interviews
TDD for MCP Servers
Use watch mode for test-driven development:
- Write expected behavior in AGENTS.md
- Start watch mode
- Implement tools until behavior matches
Exit
Press Ctrl+C to stop watch mode.
See Also
- interview - Single interview command
- Drift Detection - Understanding changes