KyongSik-Yoon/bead-mcp-ts
If you are the rightful owner of bead-mcp-ts and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to dayong@mcphub.com.
This repository implements a Model Context Protocol (MCP) server in TypeScript, designed to integrate with the 'beads' issue tracker and agent memory system.
Beads MCP (TypeScript)
English is the default README.
For Korean documentation, see .
Overview
This repository is a TypeScript implementation of a Model Context Protocol (MCP) server
that integrates with the beads issue tracker
and agent memory system.
Like the Python-based beads-mcp, this server shells out to the bd CLI to manage
issues. It never manipulates local JSON files directly; all data lives in the beads
database.
MCP Tools
This server exposes the same MCP tool names and behavior as the official Python
beads-mcp README. All tools support an optional workspace_root parameter.
set_context– set the defaultworkspace_rootfor subsequent callswhere_am_i– show the current context and database pathready– list issues that are ready to work on (no blocking dependencies)list– list issues filtered by status, priority, type, assignee, etc.show– show details for a single issue (including dependencies)create– create a new issue (bug/feature/task/epic/chore, dependencies, etc.)update– update an existing issuestatus="closed"→ internally calls theclosetoolstatus="open"→ internally calls thereopentool
close– close an issue (optionally including areason)reopen– reopen one or more issuesdep– add dependencies between issues
(blocks,related,parent-child,discovered-from)stats– aggregate stats by status, including blocked/ready and lead timeblocked– list issues that currently have blocking dependenciesinit– initialize.beads/and a database in the current directory (optional prefix)debug_env– debug output for working directory and environment variablesinspect_migration– show the migration plan and database stateget_schema_info– show current database schema informationrepair_deps– detect orphaned dependencies and optionally repair themdetect_pollution– detect/clean test issues that leaked into a production databasevalidate– comprehensive health check (orphans, duplicates, pollution, conflicts, etc.)
Resources
beads://quickstart– returns the same quickstart guide asbd quickstart
Usage
-
Install dependencies and build:
npm install npm run build -
Configure your MCP client (e.g., Claude Desktop, Cursor) to use this server:
- Command:
node - Args:
[path-to-this-repo]/build/index.js
- Command:
Environment Variables
This implementation supports the same environment variables as the official
Python beads-mcp README (all optional):
BEADS_USE_DAEMON– ignored for now; this server always uses the CLIBEADS_PATH– path to thebdexecutable- Default: search
bdonPATH, then~/.local/bin/bd
- Default: search
BEADS_DB– path to the beads database file (forwarded to the CLI when needed)BEADS_WORKING_DIR– default working directory forbdcommands- Calling the
set_contexttool sets/updates this value.
- Calling the
BEADS_ACTOR– actor name used for audit logging (default:$USER)BEADS_NO_AUTO_FLUSH– whentrue/1, disables automatic JSONL auto-flushBEADS_NO_AUTO_IMPORT– whentrue/1, disables automatic JSONL auto-importBEADS_REQUIRE_CONTEXT– when1, write tools requireworkspace_rootor a priorset_contextcall
Workspace & Multi-Repo
- By default, the MCP process
cwdis used as the working directory. - When you call
set_context(workspace_root=...):- The path is normalized to the git repository root when possible.
BEADS_WORKING_DIRandBEADS_DBare set.- All tools that omit
workspace_rootwill use this value.
- All tools (
ready,list,show,create,update,close,reopen,dep,stats,blocked, etc.) accept aworkspace_rootparameter so you can target a specific project explicitly.
Data Storage (bd CLI)
All persistent data is managed by the bd CLI.
- The
.beads/directory and database file are automatically discovered bybdrelative to the working directory. - The
inittool callsbd initinternally to create a new database.