Complete daemon RPC with per-request context routing (bd-115)

- MCP server now uses daemon client by default with CLI fallback
- Added BEADS_USE_DAEMON environment variable (default: enabled)
- Created multi-repo integration test (all tests pass)
- Updated .gitignore for daemon runtime files
- Added SETUP_DAEMON.md with migration instructions
- Closed bd-105 (investigation complete) and bd-114 (multi-server confusion)

This enables single MCP server to handle multiple repos via daemon
with per-request context routing. No more multiple MCP server configs!

Amp-Thread-ID: https://ampcode.com/threads/T-c222692e-f6ef-4649-9726-db59470b82ef
Co-authored-by: Amp <amp@ampcode.com>
This commit is contained in:
Steve Yegge
2025-10-17 16:55:14 -07:00
parent b40de9bc41
commit ac5578d5f1
6 changed files with 402 additions and 7 deletions

5
.gitignore vendored
View File

@@ -33,5 +33,10 @@ Thumbs.db
*.db-wal
*.db-shm
# Daemon runtime files
.beads/daemon.log
.beads/daemon.pid
.beads/bd.sock
# Keep JSONL exports (source of truth for git)
!.beads/*.jsonl