diff --git a/packages/mcp/README.md b/packages/mcp/README.md index 933c253..db46fc0 100644 --- a/packages/mcp/README.md +++ b/packages/mcp/README.md @@ -93,6 +93,8 @@ npm install STELLAR_SECRET_KEY=S... AGENT_API_URL=http://localhost:3002 npx tsx src/index.ts ``` +`viem` is a required (non-optional) peer dependency of `mppx`, which this package depends on - it's listed here as a direct dependency so a plain `npm install` resolves it without an extra manual `npm i viem` step. + ## License Apache-2.0 - see [LICENSE](https://github.com/nirium-protocol/nirium/blob/main/packages/mcp/LICENSE). diff --git a/packages/mcp/package-lock.json b/packages/mcp/package-lock.json index 2198c21..5fc2251 100644 --- a/packages/mcp/package-lock.json +++ b/packages/mcp/package-lock.json @@ -16,6 +16,7 @@ "@x402/fetch": "^2.28.0", "@x402/stellar": "^2.28.0", "mppx": "^0.6.31", + "viem": "^2.57.16", "zod": "^3.25.0" }, "bin": { @@ -1801,7 +1802,6 @@ } ], "license": "MIT", - "peer": true, "peerDependencies": { "ws": "*" } @@ -2426,7 +2426,7 @@ "version": "5.9.3", "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.9.3.tgz", "integrity": "sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw==", - "devOptional": true, + "dev": true, "license": "Apache-2.0", "bin": { "tsc": "bin/tsc", @@ -2474,9 +2474,9 @@ } }, "node_modules/viem": { - "version": "2.57.10", - "resolved": "https://registry.npmjs.org/viem/-/viem-2.57.10.tgz", - "integrity": "sha512-gQ6aELkfwvJDeWObxdOwWIQw8coUJhKhXDbyXCMOzzopU1F8s5Xs4l1HWQ4uaXa/uJ1/3uz8DiBU+RozllxPhw==", + "version": "2.57.16", + "resolved": "https://registry.npmjs.org/viem/-/viem-2.57.16.tgz", + "integrity": "sha512-+4uaUw3NfkqjaqsZp8Zci94K33oc9rv7mIUgvPduJxsY/tI0ASi2YkaXoUVSBGfdIw/QPWuVnIf9LTFf35IoMg==", "funding": [ { "type": "github", @@ -2484,7 +2484,6 @@ } ], "license": "MIT", - "peer": true, "dependencies": { "@noble/curves": "1.9.1", "@noble/hashes": "1.8.0", @@ -2492,13 +2491,17 @@ "@scure/bip39": "1.6.0", "abitype": "1.2.3", "isows": "1.0.7", - "ox": "0.14.57", + "ox": "0.14.59", "ws": "8.21.0" }, "peerDependencies": { + "mppx": ">=0.17.0", "typescript": ">=5.0.4" }, "peerDependenciesMeta": { + "mppx": { + "optional": true + }, "typescript": { "optional": true } @@ -2509,7 +2512,6 @@ "resolved": "https://registry.npmjs.org/@noble/hashes/-/hashes-1.8.0.tgz", "integrity": "sha512-jCs9ldd7NwzpgXDIf6P3+NrHh9/sD6CQdxHyjQI+h/6rDNo88ypBxxz45UDuZHz9r3tNz7N/VInSVoVdtXEI4A==", "license": "MIT", - "peer": true, "engines": { "node": "^14.21.3 || >=16" }, @@ -2522,7 +2524,6 @@ "resolved": "https://registry.npmjs.org/abitype/-/abitype-1.2.3.tgz", "integrity": "sha512-Ofer5QUnuUdTFsBRwARMoWKOH1ND5ehwYhJ3OJ/BQO+StkwQjHw0XyVh4vDttzHB7QOFhPHa/o413PJ82gU/Tg==", "license": "MIT", - "peer": true, "funding": { "url": "https://github.com/sponsors/wevm" }, @@ -2540,9 +2541,9 @@ } }, "node_modules/viem/node_modules/ox": { - "version": "0.14.57", - "resolved": "https://registry.npmjs.org/ox/-/ox-0.14.57.tgz", - "integrity": "sha512-CPF6aEFyAuqgL0x7VaFM0vI2/CUd5Qk8+BIL6OnViPw+gF07O/VAhqEPOPw5GYnYPwomIk8mD91gTcQ1RAtupA==", + "version": "0.14.59", + "resolved": "https://registry.npmjs.org/ox/-/ox-0.14.59.tgz", + "integrity": "sha512-Y+DPEQScTEGKteQATjtytE1JRQ5cg1R2+DvYQ/lbhUCm/xS9n0Jnkkf2AqQyIntefQxs8xY6dZ+kyNZ7zf2FzA==", "funding": [ { "type": "github", @@ -2550,7 +2551,6 @@ } ], "license": "MIT", - "peer": true, "dependencies": { "@adraffy/ens-normalize": "^1.11.0", "@noble/ciphers": "^1.3.0", @@ -2596,7 +2596,6 @@ "resolved": "https://registry.npmjs.org/ws/-/ws-8.21.0.tgz", "integrity": "sha512-Vsp28b7DRcimFQvrqu2Wek3z1iYxDCWqHYB8Qsnk/S4RfaCQzPGPyBNuVjJV3cd6UiKtUtp6sNM77gWvzcCH+g==", "license": "MIT", - "peer": true, "engines": { "node": ">=10.0.0" }, diff --git a/packages/mcp/package.json b/packages/mcp/package.json index 08dd5a2..f90e8e2 100644 --- a/packages/mcp/package.json +++ b/packages/mcp/package.json @@ -39,6 +39,7 @@ "@x402/fetch": "^2.28.0", "@x402/stellar": "^2.28.0", "mppx": "^0.6.31", + "viem": "^2.57.16", "zod": "^3.25.0" }, "devDependencies": {