chore: Adjusts the mcp server command from task-master-mcp-server to task-master-mcp. It cannot be simpler because global installations of the npm package would expose this as a globally available command. Calling it like 'mcp' could collide and also is lacking in branding and clarity of what command would be run. This is as good as we can make it.

This commit is contained in:
Eyal Toledano
2025-04-03 15:17:11 -04:00
parent bad16b200f
commit 8e478f9e5e
4 changed files with 5 additions and 4 deletions

View File

@@ -3,7 +3,7 @@
---
- Adjusts the MCP server invokation in the mcp.json we ship with `task-master init`. Fully functional now.
- Rename the npx -y command. It's now `npx -y task-master-ai task-master-mcp`
- Rename MCP tools to better align with API conventions and natural language in client chat:
- Rename `list-tasks` to `get-tasks` for more intuitive client requests like "get my tasks"
- Rename `show-task` to `get-task` for consistency with GET-based API naming conventions

2
package-lock.json generated
View File

@@ -32,7 +32,7 @@
"bin": {
"task-master": "bin/task-master.js",
"task-master-init": "bin/task-master-init.js",
"task-master-mcp-server": "mcp-server/server.js"
"task-master-mcp": "mcp-server/server.js"
},
"devDependencies": {
"@changesets/changelog-github": "^0.5.1",

View File

@@ -7,7 +7,7 @@
"bin": {
"task-master": "bin/task-master.js",
"task-master-init": "bin/task-master-init.js",
"task-master-mcp-server": "mcp-server/server.js"
"task-master-mcp": "mcp-server/server.js"
},
"scripts": {
"test": "node --experimental-vm-modules node_modules/.bin/jest",

View File

@@ -710,7 +710,8 @@ function setupMCPConfiguration(targetDir, projectName) {
"command": "npx",
"args": [
"-y",
"task-master-mcp-server"
"task-master-ai",
"task-master-mcp"
],
"env": {
"ANTHROPIC_API_KEY": "%ANTHROPIC_API_KEY%",