From 271f5a11df033ef00e7935cf2e4b62ec2f4aa437 Mon Sep 17 00:00:00 2001 From: Marvellous Nwachukwu Date: Fri, 15 May 2026 03:23:13 +0100 Subject: [PATCH 1/3] chore: pin pnpm via packageManager field Without packageManager, corepack auto-resolves the latest pnpm on each environment. That's what caused the sync-tools workflow to start fetching pnpm 11 (Node \u226522.13 required) and crash on 'node:sqlite' (#52). Pinning here makes local dev and any future workflow deterministic by default. Matches the version that pnpm/action-setup uses in release.yml and push.yml. --- package.json | 1 + 1 file changed, 1 insertion(+) diff --git a/package.json b/package.json index fa9f2ce..9b80089 100644 --- a/package.json +++ b/package.json @@ -2,6 +2,7 @@ "name": "@iqai/mcp-polymarket", "version": "0.0.17", "description": "Polymarket MCP Server - Model Context Protocol server for Polymarket trading", + "packageManager": "pnpm@9.15.4", "type": "module", "main": "dist/index.js", "bin": { From b201dcff47aef1f104c9c0e2d92babc85be5c715 Mon Sep 17 00:00:00 2001 From: Marvellous Nwachukwu Date: Fri, 15 May 2026 03:23:57 +0100 Subject: [PATCH 2/3] chore: render CHANGELOG entries with PR links via @changesets/changelog-github The default @changesets/cli/changelog renderer produces a plain bullet list. Switching to @changesets/changelog-github means each entry in CHANGELOG.md links to its PR/commit and credits the author, which is the convention most public packages follow. --- .changeset/config.json | 5 ++- package.json | 1 + pnpm-lock.yaml | 72 +++++++++++++++++++++++++++++++++++++++--- 3 files changed, 72 insertions(+), 6 deletions(-) diff --git a/.changeset/config.json b/.changeset/config.json index 7e3bff1..62e15ae 100644 --- a/.changeset/config.json +++ b/.changeset/config.json @@ -1,6 +1,9 @@ { "$schema": "https://unpkg.com/@changesets/config@3.1.1/schema.json", - "changelog": "@changesets/cli/changelog", + "changelog": [ + "@changesets/changelog-github", + { "repo": "IQAIcom/mcp-polymarket" } + ], "commit": false, "fixed": [], "linked": [], diff --git a/package.json b/package.json index 9b80089..5d66096 100644 --- a/package.json +++ b/package.json @@ -42,6 +42,7 @@ }, "devDependencies": { "@biomejs/biome": "^2.3.1", + "@changesets/changelog-github": "^0.5.0", "@changesets/cli": "^2.29.7", "@types/node": "^24.9.1", "shx": "^0.3.4", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 71c0f98..eabeebd 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -30,6 +30,9 @@ importers: '@biomejs/biome': specifier: ^2.3.1 version: 2.3.1 + '@changesets/changelog-github': + specifier: ^0.5.0 + version: 0.5.2 '@changesets/cli': specifier: ^2.29.7 version: 2.29.7(@types/node@24.9.1) @@ -77,28 +80,24 @@ packages: engines: {node: '>=14.21.3'} cpu: [arm64] os: [linux] - libc: [musl] '@biomejs/cli-linux-arm64@2.3.1': resolution: {integrity: sha512-td5O8pFIgLs8H1sAZsD6v+5quODihyEw4nv2R8z7swUfIK1FKk+15e4eiYVLcAE4jUqngvh4j3JCNgg0Y4o4IQ==} engines: {node: '>=14.21.3'} cpu: [arm64] os: [linux] - libc: [glibc] '@biomejs/cli-linux-x64-musl@2.3.1': resolution: {integrity: sha512-Y3Ob4nqgv38Mh+6EGHltuN+Cq8aj/gyMTJYzkFZV2AEj+9XzoXB9VNljz9pjfFNHUxvLEV4b55VWyxozQTBaUQ==} engines: {node: '>=14.21.3'} cpu: [x64] os: [linux] - libc: [musl] '@biomejs/cli-linux-x64@2.3.1': resolution: {integrity: sha512-PYWgEO7up7XYwSAArOpzsVCiqxBCXy53gsReAb1kKYIyXaoAlhBaBMvxR/k2Rm9aTuZ662locXUmPk/Aj+Xu+Q==} engines: {node: '>=14.21.3'} cpu: [x64] os: [linux] - libc: [glibc] '@biomejs/cli-win32-arm64@2.3.1': resolution: {integrity: sha512-RHIG/zgo+69idUqVvV3n8+j58dKYABRpMyDmfWu2TITC+jwGPiEaT0Q3RKD+kQHiS80mpBrST0iUGeEXT0bU9A==} @@ -124,6 +123,9 @@ packages: '@changesets/changelog-git@0.2.1': resolution: {integrity: sha512-x/xEleCFLH28c3bQeQIyeZf8lFXyDFVn1SgcBiR2Tw/r4IAWlk1fzxCEZ6NxQAjF2Nwtczoen3OA2qR+UawQ8Q==} + '@changesets/changelog-github@0.5.2': + resolution: {integrity: sha512-HeGeDl8HaIGj9fQHo/tv5XKQ2SNEi9+9yl1Bss1jttPqeiASRXhfi0A2wv8yFKCp07kR1gpOI5ge6+CWNm1jPw==} + '@changesets/cli@2.29.7': resolution: {integrity: sha512-R7RqWoaksyyKXbKXBTbT4REdy22yH81mcFK6sWtqSanxUCbUi9Uf+6aqxZtDQouIqPdem2W56CdxXgsxdq7FLQ==} hasBin: true @@ -137,6 +139,9 @@ packages: '@changesets/get-dependents-graph@2.1.3': resolution: {integrity: sha512-gphr+v0mv2I3Oxt19VdWRRUxq3sseyUpX9DaHpTUmLj92Y10AGy+XOtV+kbM6L/fDcpx7/ISDFK6T8A/P3lOdQ==} + '@changesets/get-github-info@0.7.0': + resolution: {integrity: sha512-+i67Bmhfj9V4KfDeS1+Tz3iF32btKZB2AAx+cYMqDSRFP7r3/ZdGbjCo+c6qkyViN9ygDuBjzageuPGJtKGe5A==} + '@changesets/get-release-plan@4.0.13': resolution: {integrity: sha512-DWG1pus72FcNeXkM12tx+xtExyH/c9I1z+2aXlObH3i9YA7+WZEVaiHzHl03thpvAgWTRaH64MpfHxozfF7Dvg==} @@ -694,6 +699,9 @@ packages: resolution: {integrity: sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==} engines: {node: '>= 8'} + dataloader@1.4.0: + resolution: {integrity: sha512-68s5jYdlvasItOJnCuI2Q9s4q98g0pCyL3HrcKJu8KNugUl8ahgmZYg38ysLTgQjjXX3H8CJLkAvWrclWfcalw==} + debug@4.4.3: resolution: {integrity: sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA==} engines: {node: '>=6.0'} @@ -719,6 +727,10 @@ packages: resolution: {integrity: sha512-WkrWp9GR4KXfKGYzOLmTuGVi1UWFfws377n9cc55/tb6DuqyF6pcQ5AbiHEshaDpY9v6oaSr2XCDidGmMwdzIA==} engines: {node: '>=8'} + dotenv@8.6.0: + resolution: {integrity: sha512-IrPdXQsk2BbzvCBGBOTmmSH5SodmqZNt4ERAZDmW4CT+tL8VtvinqywuANaFu4bOMWki16nqf0e4oC0QIaDr/g==} + engines: {node: '>=10'} + dunder-proto@1.0.1: resolution: {integrity: sha512-KIN/nDJBQRcXw0MLVhZE9iQHmG68qAVIBg9CqmUYjmQIhgij9U5MFvrqkUL5FbtyyzZuOeOt0zdeRe4UY7ct+A==} engines: {node: '>= 0.4'} @@ -951,7 +963,7 @@ packages: glob@7.2.3: resolution: {integrity: sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==} - deprecated: Glob versions prior to v9 are no longer supported + deprecated: Old versions of glob are not supported, and contain widely publicized security vulnerabilities, which have been fixed in the current version. Please update. Support for old versions may be purchased (at exorbitant rates) by contacting i@izs.me globby@11.1.0: resolution: {integrity: sha512-jhIXaOzy1sb8IyocaruWSn1TjmnBVs8Ayhcy83rmxNJ8q2uWKCAj3CnJY+KpGSXCueAPc0i05kVvVKtP1t9S3g==} @@ -1171,6 +1183,15 @@ packages: resolution: {integrity: sha512-8Ofs/AUQh8MaEcrlq5xOX0CQ9ypTF5dl78mjlMNfOK08fzpgTHQRQPBxcPlEtIw0yRpws+Zo/3r+5WRby7u3Gg==} engines: {node: '>= 0.6'} + node-fetch@2.7.0: + resolution: {integrity: sha512-c4FRfUm/dbcWZ7U+1Wq0AwCyFL+3nt2bEw05wfxSz+DWpWsitgmSgYmy2dQdWyKC1694ELPqMs/YzUSNozLt8A==} + engines: {node: 4.x || >=6.0.0} + peerDependencies: + encoding: ^0.1.0 + peerDependenciesMeta: + encoding: + optional: true + npm-run-path@6.0.0: resolution: {integrity: sha512-9qny7Z9DsQU8Ou39ERsPU4OZQlSTP47ShQzuKZ6PRXpYLtIFgl/DEBYEXKlvcEa+9tHVcK8CF81Y2V72qaZhWA==} engines: {node: '>=18'} @@ -1472,6 +1493,9 @@ packages: resolution: {integrity: sha512-kh9LVIWH5CnL63Ipf0jhlBIy0UsrMj/NJDfpsy1SqOXlLKEVyXXYrnFxFT1yOOYVGBSApeVnjPw/sBz5BfEjAQ==} engines: {node: '>=14.16'} + tr46@0.0.3: + resolution: {integrity: sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw==} + tslib@2.8.1: resolution: {integrity: sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w==} @@ -1535,6 +1559,12 @@ packages: resolution: {integrity: sha512-BNGbWLfd0eUPabhkXUVm0j8uuvREyTh5ovRa/dyow/BqAbZJyC+5fU+IzQOzmAKzYqYRAISoRhdQr3eIZ/PXqg==} engines: {node: '>= 0.8'} + webidl-conversions@3.0.1: + resolution: {integrity: sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ==} + + whatwg-url@5.0.0: + resolution: {integrity: sha512-saE57nupxk6v3HY35+jzBwYa0rKSy0XR8JSxZPwgLr7ys0IBzhGviA1/TUGJLmSVqs8pb9AnvICXEuOHLprYTw==} + which@2.0.2: resolution: {integrity: sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==} engines: {node: '>= 8'} @@ -1679,6 +1709,14 @@ snapshots: dependencies: '@changesets/types': 6.1.0 + '@changesets/changelog-github@0.5.2': + dependencies: + '@changesets/get-github-info': 0.7.0 + '@changesets/types': 6.1.0 + dotenv: 8.6.0 + transitivePeerDependencies: + - encoding + '@changesets/cli@2.29.7(@types/node@24.9.1)': dependencies: '@changesets/apply-release-plan': 7.0.13 @@ -1733,6 +1771,13 @@ snapshots: picocolors: 1.1.1 semver: 7.7.3 + '@changesets/get-github-info@0.7.0': + dependencies: + dataloader: 1.4.0 + node-fetch: 2.7.0 + transitivePeerDependencies: + - encoding + '@changesets/get-release-plan@4.0.13': dependencies: '@changesets/assemble-release-plan': 6.0.9 @@ -2476,6 +2521,8 @@ snapshots: shebang-command: 2.0.0 which: 2.0.2 + dataloader@1.4.0: {} + debug@4.4.3: dependencies: ms: 2.1.3 @@ -2490,6 +2537,8 @@ snapshots: dependencies: path-type: 4.0.0 + dotenv@8.6.0: {} + dunder-proto@1.0.1: dependencies: call-bind-apply-helpers: 1.0.2 @@ -3017,6 +3066,10 @@ snapshots: negotiator@1.0.0: {} + node-fetch@2.7.0: + dependencies: + whatwg-url: 5.0.0 + npm-run-path@6.0.0: dependencies: path-key: 4.0.0 @@ -3294,6 +3347,8 @@ snapshots: '@tokenizer/token': 0.3.0 ieee754: 1.2.1 + tr46@0.0.3: {} + tslib@2.8.1: {} tsx@4.20.6: @@ -3339,6 +3394,13 @@ snapshots: vary@1.1.2: {} + webidl-conversions@3.0.1: {} + + whatwg-url@5.0.0: + dependencies: + tr46: 0.0.3 + webidl-conversions: 3.0.1 + which@2.0.2: dependencies: isexe: 2.0.0 From a642b08a3bf55d03efc0d89dd8366ba1082411d1 Mon Sep 17 00:00:00 2001 From: Marvellous Nwachukwu Date: Fri, 15 May 2026 12:10:13 +0100 Subject: [PATCH 3/3] ci: drop inline pnpm version from workflows; packageManager is source of truth With packageManager: pnpm@9.15.4 in package.json, pnpm/action-setup errors out with ERR_PNPM_BAD_PM_VERSION when the workflow also declares version: 9. Removing the inline version makes the action read from packageManager. --- .github/workflows/push.yml | 2 -- .github/workflows/release.yml | 1 - .github/workflows/sync-tools.yml | 2 -- 3 files changed, 5 deletions(-) diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml index ecf8606..85172b9 100644 --- a/.github/workflows/push.yml +++ b/.github/workflows/push.yml @@ -21,8 +21,6 @@ jobs: node-version: 22.0.0 - name: Setup pnpm uses: pnpm/action-setup@v4 - with: - version: 9 - name: Get pnpm store directory shell: bash run: | diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 7869779..8d2479f 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -22,7 +22,6 @@ jobs: - name: Setup pnpm uses: pnpm/action-setup@v4 with: - version: 9 run_install: false - name: Get pnpm store directory diff --git a/.github/workflows/sync-tools.yml b/.github/workflows/sync-tools.yml index 269afdb..eba49e9 100644 --- a/.github/workflows/sync-tools.yml +++ b/.github/workflows/sync-tools.yml @@ -23,8 +23,6 @@ jobs: - name: Setup pnpm uses: pnpm/action-setup@v4 - with: - version: 9 - name: Install dependencies run: |