Skip to content

An AI-powered task-management system you can drop into Cursor, Lovable, Windsurf, Roo, and others.

Fix: upgrade fastmcp to latest non-breaking version (#1422)

Ralph Khreish3d19921ab42c
diff --git a/.changeset/modern-snakes-mate.md b/.changeset/modern-snakes-mate.md
index e4d1321f..6e0ef14f 100644
--- a/.changeset/modern-snakes-mate.md
+++ b/.changeset/modern-snakes-mate.md
@@ -2,8 +2,8 @@
"task-master-ai": patch
---
-Fix MCP server connection issues by patching fastmcp to include completions capability
+Upgrade fastmcp dependency to solve `Server does not support completions (required for completion/complete)`
- This resolves errors where MCP clients (like Cursor) failed to connect to the Task Master MCP server:
- [#1413](https://github.com/eyaltoledano/claude-task-master/issues/1413)
- - [#1411](https://github.com/eyaltoledano/claude-task-master/issues/1411)
+ - [#1411](https://github.com/eyaltoledano/claude-task-master/issues/1411)
\ No newline at end of file
diff --git a/package-lock.json b/package-lock.json
index 548c1cde..eef834ed 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -7,7 +7,6 @@
"": {
"name": "task-master-ai",
"version": "0.32.1",
- "hasInstallScript": true,
"license": "MIT WITH Commons-Clause",
"workspaces": [
"apps/*",
@@ -49,7 +48,7 @@
"date-fns": "^4.1.0",
"dotenv": "^16.6.1",
"express": "^4.21.2",
- "fastmcp": "^3.23.0",
+ "fastmcp": "^3.23.1",
"figlet": "^1.8.0",
"fs-extra": "^11.3.0",
"fuse.js": "^7.1.0",
@@ -66,7 +65,6 @@
"ollama-ai-provider-v2": "^1.3.1",
"open": "^10.2.0",
"ora": "^8.2.0",
- "patch-package": "^8.0.1",
"simple-git": "^3.28.0",
"steno": "^4.0.2",
"undici": "^7.16.0",
@@ -10358,12 +10356,6 @@
"node": ">=4"
}
},
- "node_modules/@yarnpkg/lockfile": {
- "version": "1.1.0",
- "resolved": "https://registry.npmjs.org/@yarnpkg/lockfile/-/lockfile-1.1.0.tgz",
- "integrity": "sha512-GpSwvyXOcOOlV70vbnzjj4fW5xW/FdUF6nQEt1ENy7m4ZCczi1+/buVUPAqmGfqznsORNFzUMjctTIp8a9tuCQ==",
- "license": "BSD-2-Clause"
- },
"node_modules/abort-controller": {
"version": "3.0.0",
"dev": true,
@@ -11932,6 +11924,7 @@
},
"node_modules/call-bind": {
"version": "1.0.8",
+ "dev": true,
"license": "MIT",
"dependencies": {
"call-bind-apply-helpers": "^1.0.0",
@@ -12199,6 +12192,7 @@
},
"node_modules/ci-info": {
"version": "3.9.0",
+ "dev": true,
"funding": [
{
"type": "github",
@@ -13374,6 +13368,7 @@
},
"node_modules/define-data-property": {
"version": "1.1.4",
+ "dev": true,
"license": "MIT",
"dependencies": {
"es-define-property": "^1.0.0",
@@ -14661,9 +14656,9 @@
}
},
"node_modules/fastmcp": {
- "version": "3.23.0",
- "resolved": "https://registry.npmjs.org/fastmcp/-/fastmcp-3.23.0.tgz",
- "integrity": "sha512-zojzKe0sgW5V8U6NVTLSd9DdSpFGvkpo6G/42n2qw7MFHqi46c4ZpQQ46m1JWnGM1/Uw+Cu7OeJRGe3/7P4k4g==",
+ "version": "3.23.1",
+ "resolved": "https://registry.npmjs.org/fastmcp/-/fastmcp-3.23.1.tgz",
+ "integrity": "sha512-98wz8gLaLAJm7c2zrPk2tIHqTllrnyXZTSGgjh8Mkv6+ivlRDYle+iTjpeIr9vb8tI5XH2+f9KLj0opcO/OUag==",
"license": "MIT",
"dependencies": {
"@modelcontextprotocol/sdk": "^1.17.2",
@@ -15342,15 +15337,6 @@
"node": ">=8"
}
},
- "node_modules/find-yarn-workspace-root": {
- "version": "2.0.0",
- "resolved": "https://registry.npmjs.org/find-yarn-workspace-root/-/find-yarn-workspace-root-2.0.0.tgz",
- "integrity": "sha512-1IMnbjt4KzsQfnhnzNd8wUEgXZ44IzZaZmnLYx7D5FZlaHt2gW20Cri8Q+E/t5tIj4+epTBub+2Zxu/vNILzqQ==",
- "license": "Apache-2.0",
- "dependencies": {
- "micromatch": "^4.0.2"
- }
- },
"node_modules/fix-dts-default-cjs-exports": {
"version": "1.0.1",
"license": "MIT",
@@ -16054,6 +16040,7 @@
},
"node_modules/has-property-descriptors": {
"version": "1.0.2",
+ "dev": true,
"license": "MIT",
"dependencies": {
"es-define-property": "^1.0.0"
@@ -19433,31 +19420,6 @@
"version": "1.0.0",
"license": "MIT"
},
- "node_modules/json-stable-stringify": {
- "version": "1.3.0",
- "resolved": "https://registry.npmjs.org/json-stable-stringify/-/json-stable-stringify-1.3.0.tgz",
- "integrity": "sha512-qtYiSSFlwot9XHtF9bD9c7rwKjr+RecWT//ZnPvSmEjpV5mmPOCN4j8UjY5hbjNkOwZ/jQv3J6R1/pL7RwgMsg==",
- "license": "MIT",
- "dependencies": {
- "call-bind": "^1.0.8",
- "call-bound": "^1.0.4",
- "isarray": "^2.0.5",
- "jsonify": "^0.0.1",
- "object-keys": "^1.1.1"
- },
- "engines": {
- "node": ">= 0.4"
- },
- "funding": {
- "url": "https://github.com/sponsors/ljharb"
- }
- },
- "node_modules/json-stable-stringify/node_modules/isarray": {
- "version": "2.0.5",
- "resolved": "https://registry.npmjs.org/isarray/-/isarray-2.0.5.tgz",
- "integrity": "sha512-xHjhDr3cNBK0BzdUJSPXZntQUx/mwMS5Rw4A7lPJ90XGAO6ISP/ePDNuo0vhqOZU+UD5JoodwCAAoZQd3FeAKw==",
- "license": "MIT"
- },
"node_modules/json5": {
"version": "2.2.3",
"dev": true,
@@ -19499,15 +19461,6 @@
"graceful-fs": "^4.1.6"
}
},
- "node_modules/jsonify": {
- "version": "0.0.1",
- "resolved": "https://registry.npmjs.org/jsonify/-/jsonify-0.0.1.tgz",
- "integrity": "sha512-2/Ki0GcmuqSrgFyelQq9M05y7PS0mEwuIzrf3f1fPqkVDVRvZrPZtVSMHxdgo8Aq0sxAOb/cr2aqqA3LeWHVPg==",
- "license": "Public Domain",
- "funding": {
- "url": "https://github.com/sponsors/ljharb"
- }
- },
"node_modules/jsonpath-plus": {
"version": "10.3.0",
"dev": true,
@@ -19659,15 +19612,6 @@
"node": ">=0.10.0"
}
},
- "node_modules/klaw-sync": {
- "version": "6.0.0",
- "resolved": "https://registry.npmjs.org/klaw-sync/-/klaw-sync-6.0.0.tgz",
- "integrity": "sha512-nIeuVSzdCCs6TDPTqI8w1Yre34sSq7AkZ4B3sfOBbI2CgVSB4Du4aLQijFU2+lhAFCwt9+42Hel6lQNIv6AntQ==",
- "license": "MIT",
- "dependencies": {
- "graceful-fs": "^4.1.11"
- }
- },
"node_modules/kleur": {
"version": "3.0.3",
"dev": true,
@@ -21377,6 +21321,7 @@
},
"node_modules/minimist": {
"version": "1.2.8",
+ "dev": true,
"license": "MIT",
"funding": {
"url": "https://github.com/sponsors/ljharb"
@@ -22100,6 +22045,7 @@
},
"node_modules/object-keys": {
"version": "1.1.1",
+ "dev": true,
"license": "MIT",
"engines": {
"node": ">= 0.4"
@@ -22659,174 +22605,6 @@
"node": "^12.20.0 || ^14.13.1 || >=16.0.0"
}
},
- "node_modules/patch-package": {
- "version": "8.0.1",
- "resolved": "https://registry.npmjs.org/patch-package/-/patch-package-8.0.1.tgz",
- "integrity": "sha512-VsKRIA8f5uqHQ7NGhwIna6Bx6D9s/1iXlA1hthBVBEbkq+t4kXD0HHt+rJhf/Z+Ci0F/HCB2hvn0qLdLG+Qxlw==",
- "license": "MIT",
- "dependencies": {
- "@yarnpkg/lockfile": "^1.1.0",
- "chalk": "^4.1.2",
- "ci-info": "^3.7.0",
- "cross-spawn": "^7.0.3",
- "find-yarn-workspace-root": "^2.0.0",
- "fs-extra": "^10.0.0",
- "json-stable-stringify": "^1.0.2",
- "klaw-sync": "^6.0.0",
- "minimist": "^1.2.6",
- "open": "^7.4.2",
- "semver": "^7.5.3",
- "slash": "^2.0.0",
- "tmp": "^0.2.4",
- "yaml": "^2.2.2"
- },
- "bin": {
- "patch-package": "index.js"
- },
- "engines": {
- "node": ">=14",
- "npm": ">5"
- }
- },
- "node_modules/patch-package/node_modules/ansi-styles": {
- "version": "4.3.0",
- "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz",
- "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==",
- "license": "MIT",
- "dependencies": {
- "color-convert": "^2.0.1"
- },
- "engines": {
- "node": ">=8"
- },
- "funding": {
- "url": "https://github.com/chalk/ansi-styles?sponsor=1"
- }
- },
- "node_modules/patch-package/node_modules/chalk": {
- "version": "4.1.2",
- "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz",
- "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==",
- "license": "MIT",
- "dependencies": {
- "ansi-styles": "^4.1.0",
- "supports-color": "^7.1.0"
- },
- "engines": {
- "node": ">=10"
- },
- "funding": {
- "url": "https://github.com/chalk/chalk?sponsor=1"
- }
- },
- "node_modules/patch-package/node_modules/color-convert": {
- "version": "2.0.1",
- "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz",
- "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==",
- "license": "MIT",
- "dependencies": {
- "color-name": "~1.1.4"
- },
- "engines": {
- "node": ">=7.0.0"
- }
- },
- "node_modules/patch-package/node_modules/color-name": {
- "version": "1.1.4",
- "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz",
- "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==",
- "license": "MIT"
- },
- "node_modules/patch-package/node_modules/fs-extra": {
- "version": "10.1.0",
- "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-10.1.0.tgz",
- "integrity": "sha512-oRXApq54ETRj4eMiFzGnHWGy+zo5raudjuxN0b8H7s/RU2oW0Wvsx9O0ACRN/kRq9E8Vu/ReskGB5o3ji+FzHQ==",
- "license": "MIT",
- "dependencies": {
- "graceful-fs": "^4.2.0",
- "jsonfile": "^6.0.1",
- "universalify": "^2.0.0"
- },
- "engines": {
- "node": ">=12"
- }
- },
- "node_modules/patch-package/node_modules/is-docker": {
- "version": "2.2.1",
- "resolved": "https://registry.npmjs.org/is-docker/-/is-docker-2.2.1.tgz",
- "integrity": "sha512-F+i2BKsFrH66iaUFc0woD8sLy8getkwTwtOBjvs56Cx4CgJDeKQeqfz8wAYiSb8JOprWhHH5p77PbmYCvvUuXQ==",
- "license": "MIT",
- "bin": {
- "is-docker": "cli.js"
- },
- "engines": {
- "node": ">=8"
- },
- "funding": {
- "url": "https://github.com/sponsors/sindresorhus"
- }
- },
- "node_modules/patch-package/node_modules/is-wsl": {
- "version": "2.2.0",
- "resolved": "https://registry.npmjs.org/is-wsl/-/is-wsl-2.2.0.tgz",
- "integrity": "sha512-fKzAra0rGJUUBwGBgNkHZuToZcn+TtXHpeCgmkMJMMYx1sQDYaCSyjJBSCa2nH1DGm7s3n1oBnohoVTBaN7Lww==",
- "license": "MIT",
- "dependencies": {
- "is-docker": "^2.0.0"
- },
- "engines": {
- "node": ">=8"
- }
- },
- "node_modules/patch-package/node_modules/open": {
- "version": "7.4.2",
- "resolved": "https://registry.npmjs.org/open/-/open-7.4.2.tgz",
- "integrity": "sha512-MVHddDVweXZF3awtlAS+6pgKLlm/JgxZ90+/NBurBoQctVOOB/zDdVjcyPzQ+0laDGbsWgrRkflI65sQeOgT9Q==",
- "license": "MIT",
- "dependencies": {
- "is-docker": "^2.0.0",
- "is-wsl": "^2.1.1"
- },
- "engines": {
- "node": ">=8"
- },
- "funding": {
- "url": "https://github.com/sponsors/sindresorhus"
- }
- },
- "node_modules/patch-package/node_modules/slash": {
- "version": "2.0.0",
- "resolved": "https://registry.npmjs.org/slash/-/slash-2.0.0.tgz",
- "integrity": "sha512-ZYKh3Wh2z1PpEXWr0MpSBZ0V6mZHAQfYevttO11c51CaWjGTaadiKZ+wVt1PbMlDV5qhMFslpZCemhwOK7C89A==",
- "license": "MIT",
- "engines": {
- "node": ">=6"
- }
- },
- "node_modules/patch-package/node_modules/supports-color": {
- "version": "7.2.0",
- "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz",
- "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==",
- "license": "MIT",
- "dependencies": {
- "has-flag": "^4.0.0"
- },
- "engines": {
- "node": ">=8"
- }
- },
- "node_modules/patch-package/node_modules/yaml": {
- "version": "2.8.1",
- "resolved": "https://registry.npmjs.org/yaml/-/yaml-2.8.1.tgz",
- "integrity": "sha512-lcYcMxX2PO9XMGvAJkJ3OsNMw+/7FKes7/hgerGUYWIoWu5j/+YQqcZr5JnPZWzOsEBgMbSbiSTn/dv/69Mkpw==",
- "license": "ISC",
- "bin": {
- "yaml": "bin.mjs"
- },
- "engines": {
- "node": ">= 14.6"
- }
- },
"node_modules/path-exists": {
"version": "4.0.0",
"dev": true,
@@ -24817,6 +24595,7 @@
},
"node_modules/set-function-length": {
"version": "1.2.2",
+ "dev": true,
"license": "MIT",
"dependencies": {
"define-data-property": "^1.1.4",
@@ -26243,6 +26022,7 @@
},
"node_modules/tmp": {
"version": "0.2.5",
+ "dev": true,
"license": "MIT",
"engines": {
"node": ">=14.14"
diff --git a/package.json b/package.json
index ce543580..80cab9e4 100644
--- a/package.json
+++ b/package.json
@@ -11,7 +11,6 @@
},
"workspaces": ["apps/*", "packages/*", "."],
"scripts": {
- "postinstall": "patch-package",
"build": "npm run build:build-config && cross-env NODE_ENV=production tsdown",
"dev": "tsdown --watch",
"turbo:dev": "turbo dev",
@@ -88,7 +87,7 @@
"date-fns": "^4.1.0",
"dotenv": "^16.6.1",
"express": "^4.21.2",
- "fastmcp": "^3.23.0",
+ "fastmcp": "^3.23.1",
"figlet": "^1.8.0",
"fs-extra": "^11.3.0",
"fuse.js": "^7.1.0",
@@ -105,7 +104,6 @@
"ollama-ai-provider-v2": "^1.3.1",
"open": "^10.2.0",
"ora": "^8.2.0",
- "patch-package": "^8.0.1",
"simple-git": "^3.28.0",
"steno": "^4.0.2",
"undici": "^7.16.0",
@@ -130,7 +128,6 @@
},
"files": [
"dist/**",
- "patches/**",
"README-task-master.md",
"README.md",
"LICENSE",
diff --git a/patches/fastmcp+3.23.0.patch b/patches/fastmcp+3.23.0.patch
deleted file mode 100644
index 09de636d..00000000
--- a/patches/fastmcp+3.23.0.patch
+++ /dev/null
@@ -1,12 +0,0 @@
-diff --git a/node_modules/fastmcp/dist/FastMCP.js b/node_modules/fastmcp/dist/FastMCP.js
-index 8b131b7..a5cb799 100644
---- a/node_modules/fastmcp/dist/FastMCP.js
-+++ b/node_modules/fastmcp/dist/FastMCP.js
-@@ -390,6 +390,7 @@ var FastMCPSession = class extends FastMCPSessionEventEmitter {
- this.#capabilities.prompts = {};
- }
- this.#capabilities.logging = {};
-+ this.#capabilities.completions = {};
- this.#server = new Server(
- { name, version },
- { capabilities: this.#capabilities, instructions }