When to Use MCP
Use MCP
- Claude Desktop (no shell access)
- VS Code with GitHub Copilot
- MCP-only environments
- Natural language interfaces
Use CLI + Hooks
- Claude Code
- Cursor
- Windsurf
- Any environment with shell access
Installation
Configure your AI client
- Claude Desktop
- VS Code (Copilot)
- Development
Add to your Claude Desktop config (
~/Library/Application Support/Claude/claude_desktop_config.json on macOS):Available Tools
All tools support an optionalworkspace_root parameter for multi-project setups.
| Tool | Description | Example |
|---|---|---|
beads_init | Initialize bd in directory | ”Initialize beads here” |
beads_create | Create new issue | ”Create a bug for login timeout” |
beads_list | List issues with filters | ”Show all P1 bugs” |
beads_ready | Find unblocked work | ”What can I work on?” |
beads_show | Show issue details | ”Show bd-42” |
beads_update | Update issue fields | ”Set bd-42 to in-progress” |
beads_close | Close completed issue | ”Close bd-42 as done” |
beads_reopen | Reopen closed issue | ”Reopen bd-42” |
beads_dep | Add dependency | ”bd-99 blocks bd-42” |
beads_dep_tree | Show dependency tree | ”What blocks bd-42?” |
beads_blocked | Get blocked issues | ”Show blocked issues” |
beads_stats | Get project statistics | ”Show project stats” |
beads_sync | Sync to git | ”Sync beads to git” |
set_context | Set default workspace | ”Use /path/to/project” |
Resources
| Resource | Description |
|---|---|
beads://quickstart | Quickstart guide for using beads |
Multi-Repository Setup
Single MCP Server (Recommended)
Use one MCP server instance for all projects:- MCP server detects the beads project in your current workspace
- Routes requests to the per-project Dolt server
- Auto-starts local Dolt server if not running
- Each project gets isolated database access
Multi-Project Support
Every tool accepts an optionalworkspace_root parameter:
Connection Pool
The MCP server maintains a connection pool keyed by canonical workspace path:- Each workspace gets its own Dolt server connection
- Paths are canonicalized (symlinks resolved, git toplevel detected)
- Concurrent requests use
asyncio.Lockto prevent race conditions - No LRU eviction (keeps all connections open for session)
Environment Variables
All optional:| Variable | Description | Default |
|---|---|---|
BEADS_PATH | Path to bd executable | ~/.local/bin/bd |
BEADS_DB | Path to beads database | Auto-discover from cwd |
BEADS_WORKING_DIR | Working directory | $PWD or current directory |
BEADS_ACTOR | Actor name for audit | $USER |
BEADS_NO_AUTO_FLUSH | Disable auto sync | false |
BEADS_NO_AUTO_IMPORT | Disable auto import | false |
Usage Examples
Natural Language Queries
Creating Issues
Updating Issues
Tracking Dependencies
Completing Work
Troubleshooting
MCP tools not loading
MCP tools not loading
Check installation:Verify PATH:Restart client:
- Claude Desktop: Quit and relaunch
- VS Code: Reload window (Cmd/Ctrl + Shift + P → “Reload Window”)
No beads database found
No beads database found
Initialize beads in your project:
Wrong database detected
Wrong database detected
Check current context:Set explicit context:
Stale connections
Stale connections
If you see connection issues, restart the Dolt server:The MCP server will automatically reconnect.
Version mismatches
Version mismatches
Ensure bd and beads-mcp are up to date:
Token Overhead Comparison
| Approach | Token Overhead | Compute Cost | Latency |
|---|---|---|---|
| CLI + Hooks | ~1-2k tokens | Low | Fast |
| MCP Server | ~10-50k tokens | High (10-50x) | Slower |
- MCP requires full tool schemas in context
- Each tool adds 1-5k tokens for schema definition
- CLI just injects workflow instructions (~1-2k total)
- Very short conversations
- MCP-only environments (no alternative)
- Long conversations or coding sessions
- Any environment with shell access
- Multi-editor workflows
Development
Run MCP Inspector
Type Checking
Linting and Formatting
Testing
See Also
Claude Code
Recommended CLI + hooks integration
GitHub Copilot
Use MCP with VS Code Copilot
Aider Integration
Human-in-the-loop AI pair programming
Quick Start
Learn Beads basics