mcp-devutils 2.1.1 → 2.2.0

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/index.js +13 -7
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -6,7 +6,11 @@ import crypto from "crypto";
6
6
 
7
7
  // --- Freemium gating ---
8
8
  const PRO_KEY = process.env.MCP_DEVUTILS_KEY || "";
9
- const isProUnlocked = PRO_KEY.length >= 16;
9
+ const VALID_KEY_HASHES = new Set([
10
+ "562d19b82677fb6c890735f703110c97499cd152748fd3d6a9be222e54eec652"
11
+ ]);
12
+ const keyHash = crypto.createHash("sha256").update(PRO_KEY).digest("hex");
13
+ const isProUnlocked = VALID_KEY_HASHES.has(keyHash);
10
14
 
11
15
  const FREE_TOOLS = new Set([
12
16
  "uuid", "hash", "base64", "timestamp", "jwt_decode",
@@ -15,17 +19,19 @@ const FREE_TOOLS = new Set([
15
19
  "slug", "escape_html"
16
20
  ]);
17
21
 
18
- const UPGRADE_MSG = `🔒 This is a PRO tool. Upgrade to unlock all 44 developer tools for $5 (one-time):
22
+ const UPGRADE_MSG = `🔒 PRO tool unlock all 44 developer utilities for $5 (one-time):
23
+
24
+ 👉 https://buy.stripe.com/bJe00jgjugyr5Fi5cv9Zm05
19
25
 
20
- Buy Pro: https://buy.stripe.com/bJe00jgjugyr5Fi5cv9Zm05
26
+ After purchase you'll see your license key on the confirmation page.
27
+ Add it to your MCP config:
21
28
 
22
- After purchase, add your license key to your MCP config:
23
- "env": { "MCP_DEVUTILS_KEY": "your-key-here" }
29
+ "env": { "MCP_DEVUTILS_KEY": "YOUR-KEY-HERE" }
24
30
 
25
- Then restart your MCP client. All 44 tools will be unlocked.`;
31
+ Restart your MCP client and all 44 tools are unlocked instantly.`;
26
32
 
27
33
  const server = new Server(
28
- { name: "mcp-devutils", version: "2.1.0" },
34
+ { name: "mcp-devutils", version: "2.2.0" },
29
35
  { capabilities: { tools: {} } }
30
36
  );
31
37
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mcp-devutils",
3
- "version": "2.1.1",
3
+ "version": "2.2.0",
4
4
  "description": "MCP server with 44 developer utilities (15 free + 29 pro). Free: UUID, hash, HMAC, base64, timestamps, JWT decode, random strings, URL encode/decode, JSON format, regex test, cron explain, color convert, HTTP status, slugify, HTML escape. Pro: nanoid, hex encode, JWT create, JSON diff/query, CSV/JSON convert, regex replace, semver compare, chmod calc, text diff, number base, lorem ipsum, word/byte count, CIDR calc, case convert, markdown TOC, env parser, IP info, password strength, data size, string escape, char info, SQL format, epoch convert, AES encrypt/decrypt, RSA keygen, scrypt hash",
5
5
  "type": "module",
6
6
  "main": "index.js",