An AI-powered task-management system you can drop into Cursor, Lovable, Windsurf, Roo, and others.
JavaScript aicursorcursor-aicursorailovablelovable-devroocodetask-managertaskstasks-listwindsurfwindsurf-ai
fix: add temporary patch to fix fastmcp issue asap (#1421)
Ralph Khreishe75946b1a998
diff --git a/.changeset/modern-snakes-mate.md b/.changeset/modern-snakes-mate.mdnew file mode 100644index 00000000..e4d1321f--- /dev/null+++ b/.changeset/modern-snakes-mate.md@@ -0,0 +1,9 @@+---+"task-master-ai": patch+---++Fix MCP server connection issues by patching fastmcp to include completions capability++- 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)diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.ymlindex 94b39533..167e86dc 100644--- a/.github/workflows/ci.yml+++ b/.github/workflows/ci.yml@@ -51,12 +51,22 @@ jobs:with:fetch-depth: 0+ - uses: dorny/paths-filter@v3+ id: changes+ with:+ filters: |+ changesets:+ - '.changeset/**'+ - '.github/scripts/validate-changesets.mjs'+- uses: actions/setup-node@v4+ if: steps.changes.outputs.changesets == 'true'with:node-version: 20cache: "npm"- name: Validate changeset package references+ if: steps.changes.outputs.changesets == 'true'run: |# Validate that changesets only reference public packages# This catches issues like using @tm/cli instead of task-master-ai@@ -126,6 +136,7 @@ jobs:timeout-minutes: 15runs-on: ubuntu-latestneeds: [format-check, typecheck, build, changeset-validation]+ if: always() && !cancelled() && !contains(needs.*.result, 'failure')steps:- uses: actions/checkout@v4with:diff --git a/package-lock.json b/package-lock.jsonindex b5a76c32..548c1cde 100644--- a/package-lock.json+++ b/package-lock.json@@ -7,6 +7,7 @@"": {"name": "task-master-ai","version": "0.32.1",+ "hasInstallScript": true,"license": "MIT WITH Commons-Clause","workspaces": ["apps/*",@@ -65,6 +66,7 @@"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",@@ -10356,6 +10358,12 @@"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,@@ -11924,7 +11932,6 @@},"node_modules/call-bind": {"version": "1.0.8",- "dev": true,"license": "MIT","dependencies": {"call-bind-apply-helpers": "^1.0.0",@@ -12192,7 +12199,6 @@},"node_modules/ci-info": {"version": "3.9.0",- "dev": true,"funding": [{"type": "github",@@ -13368,7 +13374,6 @@},"node_modules/define-data-property": {"version": "1.1.4",- "dev": true,"license": "MIT","dependencies": {"es-define-property": "^1.0.0",@@ -15337,6 +15342,15 @@"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",@@ -16040,7 +16054,6 @@},"node_modules/has-property-descriptors": {"version": "1.0.2",- "dev": true,"license": "MIT","dependencies": {"es-define-property": "^1.0.0"@@ -19420,6 +19433,31 @@"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,@@ -19461,6 +19499,15 @@"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,@@ -19612,6 +19659,15 @@"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,@@ -21321,7 +21377,6 @@},"node_modules/minimist": {"version": "1.2.8",- "dev": true,"license": "MIT","funding": {"url": "https://github.com/sponsors/ljharb"@@ -22045,7 +22100,6 @@},"node_modules/object-keys": {"version": "1.1.1",- "dev": true,"license": "MIT","engines": {"node": ">= 0.4"@@ -22605,6 +22659,174 @@"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,@@ -24595,7 +24817,6 @@},"node_modules/set-function-length": {"version": "1.2.2",- "dev": true,"license": "MIT","dependencies": {"define-data-property": "^1.1.4",@@ -26022,7 +26243,6 @@},"node_modules/tmp": {"version": "0.2.5",- "dev": true,"license": "MIT","engines": {"node": ">=14.14"diff --git a/package.json b/package.jsonindex 3378789b..ce543580 100644--- a/package.json+++ b/package.json@@ -11,6 +11,7 @@},"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",@@ -104,6 +105,7 @@"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",@@ -128,6 +130,7 @@},"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.patchnew file mode 100644index 00000000..09de636d--- /dev/null+++ b/patches/fastmcp+3.23.0.patch@@ -0,0 +1,12 @@+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 }