fix: dependency manager & friend fixes (#307)

This commit is contained in:
Ralph Khreish
2025-04-23 02:00:27 +02:00
committed by GitHub
parent ddf0947710
commit 2829194d3c
5 changed files with 25 additions and 15 deletions

View File

@@ -0,0 +1,5 @@
---
'task-master-ai': patch
---
Fix add_dependency tool crashing the MCP Server

View File

@@ -3,6 +3,9 @@ on:
push: push:
branches: branches:
- main - main
concurrency: ${{ github.workflow }}-${{ github.ref }}
jobs: jobs:
release: release:
runs-on: ubuntu-latest runs-on: ubuntu-latest

View File

@@ -27,7 +27,7 @@ MCP (Model Control Protocol) provides the easiest way to get started with Task M
"mcpServers": { "mcpServers": {
"taskmaster-ai": { "taskmaster-ai": {
"command": "npx", "command": "npx",
"args": ["-y", "task-master-ai"], "args": ["-y", "--package=task-master-ai", "task-master-ai"],
"env": { "env": {
"ANTHROPIC_API_KEY": "YOUR_ANTHROPIC_API_KEY_HERE", "ANTHROPIC_API_KEY": "YOUR_ANTHROPIC_API_KEY_HERE",
"PERPLEXITY_API_KEY": "YOUR_PERPLEXITY_API_KEY_HERE", "PERPLEXITY_API_KEY": "YOUR_PERPLEXITY_API_KEY_HERE",

View File

@@ -17,7 +17,7 @@ MCP (Model Control Protocol) provides the easiest way to get started with Task M
"mcpServers": { "mcpServers": {
"taskmaster-ai": { "taskmaster-ai": {
"command": "npx", "command": "npx",
"args": ["-y", "task-master-ai"], "args": ["-y", "--package=task-master-ai", "task-master-ai"],
"env": { "env": {
"ANTHROPIC_API_KEY": "YOUR_ANTHROPIC_API_KEY_HERE", "ANTHROPIC_API_KEY": "YOUR_ANTHROPIC_API_KEY_HERE",
"PERPLEXITY_API_KEY": "YOUR_PERPLEXITY_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: 4. Configure with the following details:
- Name: "Task Master" - Name: "Task Master"
- Type: "Command" - Type: "Command"
- Command: "npx -y task-master-mcp" - Command: "npx -y --package=task-master-ai task-master-ai"
5. Save the settings 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. Once configured, you can interact with Task Master's task management commands directly through Cursor's interface, providing a more integrated experience.

View File

@@ -185,18 +185,20 @@ async function addDependency(tasksPath, taskId, dependencyId) {
); );
// Display a more visually appealing success message // Display a more visually appealing success message
console.log( if (!isSilentMode()) {
boxen( console.log(
chalk.green(`Successfully added dependency:\n\n`) + boxen(
`Task ${chalk.bold(formattedTaskId)} now depends on ${chalk.bold(formattedDependencyId)}`, chalk.green(`Successfully added dependency:\n\n`) +
{ `Task ${chalk.bold(formattedTaskId)} now depends on ${chalk.bold(formattedDependencyId)}`,
padding: 1, {
borderColor: 'green', padding: 1,
borderStyle: 'round', borderColor: 'green',
margin: { top: 1 } borderStyle: 'round',
} margin: { top: 1 }
) }
); )
);
}
// Generate updated task files // Generate updated task files
await generateTaskFiles(tasksPath, 'tasks'); await generateTaskFiles(tasksPath, 'tasks');