@yawlabs/npmjs-mcp 0.11.2 → 0.11.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.js +5 -3
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -30955,8 +30955,10 @@ var authTools = [
30955
30955
  handler: async (input) => {
30956
30956
  const authErr = requireAuth();
30957
30957
  if (authErr) return authErr;
30958
+ const userErr = validateUsername(input.username);
30959
+ if (userErr) return { ok: false, status: 400, error: userErr };
30958
30960
  const res = await registryGetAuth(
30959
- `/-/user/org.couchdb.user:${encodeURIComponent(input.username)}/package`
30961
+ `/-/user/org.couchdb.user:${encUser(input.username)}/package`
30960
30962
  );
30961
30963
  if (!res.ok) return translateError(res, { op: `user_packages ${input.username}` });
30962
30964
  const packages = Object.entries(res.data).map(([name, access]) => ({ name, access }));
@@ -33318,9 +33320,9 @@ var writeTools = [
33318
33320
  ];
33319
33321
 
33320
33322
  // src/index.ts
33321
- var version2 = true ? "0.11.2" : (await null).createRequire(import.meta.url)("../package.json").version;
33323
+ var version2 = true ? "0.11.3" : (await null).createRequire(import.meta.url)("../package.json").version;
33322
33324
  var subcommand = process.argv[2];
33323
- if (subcommand === "version" || subcommand === "--version") {
33325
+ if (subcommand === "version" || subcommand === "--version" || subcommand === "-v" || subcommand === "-V") {
33324
33326
  console.log(version2);
33325
33327
  process.exit(0);
33326
33328
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yawlabs/npmjs-mcp",
3
- "version": "0.11.2",
3
+ "version": "0.11.3",
4
4
  "description": "npm registry MCP server — package intelligence, security audits, and dependency analysis for AI assistants",
5
5
  "license": "MIT",
6
6
  "author": "YawLabs <contact@yaw.sh>",
@@ -52,6 +52,6 @@
52
52
  "zod": "^4.3.6"
53
53
  },
54
54
  "engines": {
55
- "node": ">=18"
55
+ "node": ">=20"
56
56
  }
57
57
  }