TaskMaster MCP Bootstrap Workflow
Follow this sequence end-to-end. Only skip steps if the operator already completed them in this session and the state is unchanged.
0. Collect Context
- Confirm desired deployment target:
- Local developer machine (most common).
- Shared server/VM (needs SSH access, systemd, reverse proxy decisions).
- Identify editor(s) that will connect to TaskMaster (Cursor, Claude Code CLI, VS Code, etc.).
- Gather secret sources (Anthropic, OpenAI, Perplexity, etc.) and decide which tools must be enabled.
- Locate or create the Git repository where
tasks.mdandtasks-archive.mdwill live. - Record Node.js/npm/git versions with
node -v,npm -v,git --version.
If requirements are missing or versions are too old (Node < 18, npm < 9), pause and coordinate an upgrade before continuing.
1. Choose Installation Mode
| Mode | When to choose | Pros | Cons |
|---|---|---|---|
npx -y task-master-ai (ephemeral) |
Quick local use, no customization | Fast, minimal disk | Auto-updates to latest release, harder to pin version |
Git clone + npm install |
Persistent server, custom patches, Dockerization | Version control, scripts available | Slightly longer setup |
Document the chosen mode in the operator log. For repeatable deployments or server hosting, prefer the git clone path.
2A. Provision via npx (skip if using clone)
- Run
npx -y task-master-ai -- --versionto verify package reachability. - Capture the resolved version string for documentation.
- Dry-run
npx -y task-master-ai --helpto list commands and confirm the binary starts. - Note that this mode requires passing environment variables each time it runs (covered in Step 3).
2B. Provision via Git Clone (skip if using npx)
- Select install directory (e.g.,
~/services/taskmaster-mcp). Ensure it does not already exist. - Clone repository:
git clone https://github.com/eyaltoledano/claude-task-master.git <target-dir>. - Change into directory and run
npm install. - (Optional) Initialize
.envfromscripts/env.exampleif provided; otherwise create a new file per Step 3. - If deploying for multiple operators, consider
npm run buildandnpm linkso the CLI is globally accessible. - Record commit hash (
git rev-parse HEAD) for change tracking.
The helper script scripts/bootstrap_taskmaster.sh automates steps 2–3. Explain how to run it when appropriate.
3. Configure Environment Variables
- List required models with the operator. Minimum: one provider for the main model (e.g., Anthropic API key) unless using Claude Code CLI.
- Use the template below (also in
REFERENCE.md) to assemble an.envor MCPenvblock:
ANTHROPIC_API_KEY=YOUR_ANTHROPIC_API_KEY
OPENAI_API_KEY=YOUR_OPENAI_API_KEY
PERPLEXITY_API_KEY=YOUR_PERPLEXITY_API_KEY
TASK_MASTER_TOOLS=standard
TASK_MASTER_DATA_DIR=/absolute/path/to/taskmaster-data- Replace placeholders with operator-provided secrets. Remove unused providers to keep configs clean.
- For shared installs, instruct the user to secure
.envwith proper file permissions (chmod 600). - Ensure
TASK_MASTER_DATA_DIRpoints to a directory that contains (or will contain)tasks.mdandtasks-archive.md. Create the directory if necessary.
4. Wire MCP Configuration
Depending on the editor:
- Cursor / Windsurf / Q CLI: Update
~/.cursor/mcp.json(or project-level) undermcpServers. - VS Code: Update
<workspace>/.vscode/mcp.jsonunderserverswith"type": "mcp"when required. - Claude Code CLI: Run
claude mcp add taskmaster-ai -- npx -y task-master-aithen merge environment variables into the generated config.
Always include:
"task-master-ai": {
"command": "npx",
"args": ["-y", "task-master-ai"],
"env": {
"TASK_MASTER_TOOLS": "standard",
"ANTHROPIC_API_KEY": "${ANTHROPIC_API_KEY}",
"TASK_MASTER_DATA_DIR": "/absolute/path/to/taskmaster-data"
}
}For clone installs replace the command/args with the local binary path (e.g., "command": "node", "args": ["/srv/taskmaster/bin/cli.js"]). Document the final JSON snippet in the output.
5. Validate the Deployment
- Run
npx task-master-ai status(ornode bin/cli.js status) inside the configured environment. - Confirm the tool list matches expectations (e.g., research tools only appear when the relevant API keys are set).
- Execute
npx task-master-ai board --format markdownagainst the configured data directory to ensure TaskMaster can read/write the Markdown files. - Inspect logs for warnings (missing API keys, disabled tools). Resolve before sign-off unless explicitly accepted by the operator.
- If deploying as a long-running service, instruct how to run in the background (
tmux,systemd, ornpm run start).
6. Integrate BMAD Hooks
- Reaffirm the shared data directory path with the operator.
- Map BMAD Hook 1 (save updates) to commit changes produced by TaskMaster. Typically: TaskMaster writes
tasks.md; Hook watches for changes and pushes to Git. - Map BMAD Hook 2 (session start) to pull the latest
tasks.mdand optionally calltask-master-ai board --format markdownto prime Claude's context. - (Optional) Configure scheduled summaries using TaskMaster's reporting commands (
progress,blockers, etc.) tied to Hook 3. - Record automation gaps or TODOs for the operator if hook scripting is deferred.
7. Handover & Documentation
- Summarize:
- Installation mode and version/commit deployed.
- Location of binaries, data directory, and config files.
- Enabled tools/providers.
- Provide start/stop commands and testing snippets.
- Highlight next steps (e.g., rotate API keys quarterly, monitor Git sync jobs).
- Link relevant sections from
REFERENCE.mdfor future troubleshooting.
Mark the checklist complete only after the operator confirms everything works.