benbjohnson / benbjohnson/litestream
feat(mcp): add daemon-control tools (list/sync/info/start/stop/register/unregister)
@corylanou is already working on this.
Since Jul 16, 2026.
- Dominant language
- Go
- Stars
- 14.4k
- Forks
- 417
- Avg merge
- 7d 1h
- Merged PRs (30d)
- 21
Description
Problem
None of the daemon-control commands are exposed as MCP tools. An assistant can't list managed databases, force a sync, read daemon info, or start/stop replication. These map to the existing Unix-socket IPC endpoints (cmd/litestream/server.go:75-90).
Fix
Add tools that call the daemon IPC client: list, sync (incl. -wait), daemon info, start, stop, register, unregister. Annotate mutating ones destructiveHint, read-only ones readOnlyHint. Fail gracefully when no daemon is running (clear error, no crash).
Acceptance
With a running daemon, an assistant can list DBs, force a sync (incl. wait), read daemon info, and start/stop replication; without one, tools return a clear "no daemon" error.
Cross-refs
After #1367 & #1368.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.