From e9016c1e22cc4a15d79027d369bb17e2ef28e6c9 Mon Sep 17 00:00:00 2001 From: Ralph Khreish <35776126+Crunchyman-ralph@users.noreply.github.com> Date: Wed, 23 Apr 2025 02:00:27 +0200 Subject: [PATCH 1/3] fix: dependency manager & friend fixes (#307) --- .changeset/calm-ways-visit.md | 5 +++++ .github/workflows/release.yml | 3 +++ README.md | 2 +- docs/tutorial.md | 4 ++-- scripts/modules/dependency-manager.js | 26 ++++++++++++++------------ 5 files changed, 25 insertions(+), 15 deletions(-) create mode 100644 .changeset/calm-ways-visit.md diff --git a/.changeset/calm-ways-visit.md b/.changeset/calm-ways-visit.md new file mode 100644 index 00000000..ace763a4 --- /dev/null +++ b/.changeset/calm-ways-visit.md @@ -0,0 +1,5 @@ +--- +'task-master-ai': patch +--- + +Fix add_dependency tool crashing the MCP Server diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 176e0ccc..e49148b5 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -3,6 +3,9 @@ on: push: branches: - main + +concurrency: ${{ github.workflow }}-${{ github.ref }} + jobs: release: runs-on: ubuntu-latest diff --git a/README.md b/README.md index 7459bc05..c36efb9a 100644 --- a/README.md +++ b/README.md @@ -27,7 +27,7 @@ MCP (Model Control Protocol) provides the easiest way to get started with Task M "mcpServers": { "taskmaster-ai": { "command": "npx", - "args": ["-y", "task-master-ai"], + "args": ["-y", "--package=task-master-ai", "task-master-ai"], "env": { "ANTHROPIC_API_KEY": "YOUR_ANTHROPIC_API_KEY_HERE", "PERPLEXITY_API_KEY": "YOUR_PERPLEXITY_API_KEY_HERE", diff --git a/docs/tutorial.md b/docs/tutorial.md index 1ecdf64e..5c3de9e3 100644 --- a/docs/tutorial.md +++ b/docs/tutorial.md @@ -17,7 +17,7 @@ MCP (Model Control Protocol) provides the easiest way to get started with Task M "mcpServers": { "taskmaster-ai": { "command": "npx", - "args": ["-y", "task-master-ai"], + "args": ["-y", "--package=task-master-ai", "task-master-ai"], "env": { "ANTHROPIC_API_KEY": "YOUR_ANTHROPIC_API_KEY_HERE", "PERPLEXITY_API_KEY": "YOUR_PERPLEXITY_API_KEY_HERE", @@ -132,7 +132,7 @@ You can also set up the MCP server in Cursor settings: 4. Configure with the following details: - Name: "Task Master" - Type: "Command" - - Command: "npx -y task-master-mcp" + - Command: "npx -y --package=task-master-ai task-master-ai" 5. Save the settings Once configured, you can interact with Task Master's task management commands directly through Cursor's interface, providing a more integrated experience. diff --git a/scripts/modules/dependency-manager.js b/scripts/modules/dependency-manager.js index af8904fb..8ce4565a 100644 --- a/scripts/modules/dependency-manager.js +++ b/scripts/modules/dependency-manager.js @@ -185,18 +185,20 @@ async function addDependency(tasksPath, taskId, dependencyId) { ); // Display a more visually appealing success message - console.log( - boxen( - chalk.green(`Successfully added dependency:\n\n`) + - `Task ${chalk.bold(formattedTaskId)} now depends on ${chalk.bold(formattedDependencyId)}`, - { - padding: 1, - borderColor: 'green', - borderStyle: 'round', - margin: { top: 1 } - } - ) - ); + if (!isSilentMode()) { + console.log( + boxen( + chalk.green(`Successfully added dependency:\n\n`) + + `Task ${chalk.bold(formattedTaskId)} now depends on ${chalk.bold(formattedDependencyId)}`, + { + padding: 1, + borderColor: 'green', + borderStyle: 'round', + margin: { top: 1 } + } + ) + ); + } // Generate updated task files await generateTaskFiles(tasksPath, 'tasks'); From 6ba36af2460772ca7a6272570f76ef36d3393188 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Wed, 23 Apr 2025 00:00:43 +0000 Subject: [PATCH 2/3] Version Packages --- .changeset/calm-ways-visit.md | 5 ----- CHANGELOG.md | 6 ++++++ package.json | 2 +- 3 files changed, 7 insertions(+), 6 deletions(-) delete mode 100644 .changeset/calm-ways-visit.md diff --git a/.changeset/calm-ways-visit.md b/.changeset/calm-ways-visit.md deleted file mode 100644 index ace763a4..00000000 --- a/.changeset/calm-ways-visit.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'task-master-ai': patch ---- - -Fix add_dependency tool crashing the MCP Server diff --git a/CHANGELOG.md b/CHANGELOG.md index 4dfce660..2eb52531 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,11 @@ # task-master-ai +## 0.12.1 + +### Patch Changes + +- [#307](https://github.com/eyaltoledano/claude-task-master/pull/307) [`2829194`](https://github.com/eyaltoledano/claude-task-master/commit/2829194d3c1dd5373d3bf40275cf4f63b12d49a7) Thanks [@Crunchyman-ralph](https://github.com/Crunchyman-ralph)! - Fix add_dependency tool crashing the MCP Server + ## 0.12.0 ### Minor Changes diff --git a/package.json b/package.json index 531f5504..2d38da57 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "task-master-ai", - "version": "0.12.0", + "version": "0.12.1", "description": "A task management system for ambitious AI-driven development that doesn't overwhelm and confuse Cursor.", "main": "index.js", "type": "module", From 63ebdd4b44e8ffac9a04862f408c578a0a3decfe Mon Sep 17 00:00:00 2001 From: Marijn van der Werf Date: Fri, 25 Apr 2025 01:05:57 +0200 Subject: [PATCH 3/3] Fix discord badge in readme (#325) --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index c36efb9a..a8b2da4d 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # Task Master [![GitHub stars](https://img.shields.io/github/stars/eyaltoledano/claude-task-master?style=social)](https://github.com/eyaltoledano/claude-task-master/stargazers) -[![CI](https://github.com/eyaltoledano/claude-task-master/actions/workflows/ci.yml/badge.svg)](https://github.com/eyaltoledano/claude-task-master/actions/workflows/ci.yml) [![npm version](https://badge.fury.io/js/task-master-ai.svg)](https://badge.fury.io/js/task-master-ai) ![Discord Follow](https://dcbadge.limes.pink/api/server/https://discord.gg/2ms58QJjqp?style=flat) [![License: MIT with Commons Clause](https://img.shields.io/badge/license-MIT%20with%20Commons%20Clause-blue.svg)](LICENSE) +[![CI](https://github.com/eyaltoledano/claude-task-master/actions/workflows/ci.yml/badge.svg)](https://github.com/eyaltoledano/claude-task-master/actions/workflows/ci.yml) [![npm version](https://badge.fury.io/js/task-master-ai.svg)](https://badge.fury.io/js/task-master-ai) [![Discord Follow](https://dcbadge.limes.pink/api/server/https://discord.gg/2ms58QJjqp?style=flat)](https://discord.gg/2ms58QJjqp) [![License: MIT with Commons Clause](https://img.shields.io/badge/license-MIT%20with%20Commons%20Clause-blue.svg)](LICENSE) ### By [@eyaltoledano](https://x.com/eyaltoledano) & [@RalphEcom](https://x.com/RalphEcom)