@coo-quack/calc-mcp 1.6.0 → 1.6.1

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.
package/dist/index.js CHANGED
@@ -33166,6 +33166,7 @@ var tool11 = {
33166
33166
  };
33167
33167
 
33168
33168
  // src/tools/hash.ts
33169
+ import { createHash } from "node:crypto";
33169
33170
  var schema12 = {
33170
33171
  input: exports_external.string().describe("String to hash"),
33171
33172
  algorithm: exports_external.enum(["md5", "sha1", "sha256", "sha512", "crc32"]).describe("Hash algorithm to use")
@@ -33191,9 +33192,7 @@ function execute12(input) {
33191
33192
  if (input.algorithm === "crc32") {
33192
33193
  return crc32(input.input);
33193
33194
  }
33194
- const hasher = new Bun.CryptoHasher(input.algorithm);
33195
- hasher.update(input.input);
33196
- return hasher.digest("hex");
33195
+ return createHash(input.algorithm).update(input.input).digest("hex");
33197
33196
  }
33198
33197
  var tool12 = {
33199
33198
  name: "hash",
package/docs/changelog.md CHANGED
@@ -2,6 +2,12 @@
2
2
 
3
3
  All notable changes to Calc MCP are documented here.
4
4
 
5
+ ## v1.6.1 (2026-02-12)
6
+
7
+ ### Bug Fixes
8
+
9
+ - **hash** — Replace `Bun.CryptoHasher` with `node:crypto` for Node.js compatibility (#18)
10
+
5
11
  ## v1.6.0 (2026-02-12)
6
12
 
7
13
  ### Features
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@coo-quack/calc-mcp",
3
- "version": "1.6.0",
3
+ "version": "1.6.1",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "calc-mcp": "dist/index.js"
package/CHANGELOG.md DELETED
@@ -1,104 +0,0 @@
1
- # Changelog
2
-
3
- ## v1.6.0 (2026-02-12)
4
-
5
- ### Features
6
-
7
- - **Documentation site** — Full VitePress-powered docs at [coo-quack.github.io/calc-mcp](https://coo-quack.github.io/calc-mcp/) with tool reference, examples, install guides, and changelog (#13)
8
-
9
- ### Documentation
10
-
11
- - Added documentation site link to README
12
- - Added release checklist to CONTRIBUTING.md (#15)
13
- - Updated npx examples with `--prefix /tmp` for better node_modules compatibility
14
- - Added common ignore patterns to .gitignore
15
-
16
- ## v1.5.0 (2026-02-11)
17
-
18
- ### Features
19
-
20
- - **Password generation** — fine-grained options: `uppercase`, `numbers`, `symbols` (on/off), `readable` mode (excludes ambiguous chars like l/1/I/O/0/o), `excludeChars` for custom exclusions
21
- - **Shuffle** — Fisher-Yates algorithm with `crypto.getRandomValues` for unbiased list shuffling
22
-
23
- ### Documentation
24
-
25
- - README title: `@coo-quack/calc-mcp` → `Calc MCP`
26
- - Added "Why?" section with AI-alone vs calc-mcp comparison
27
- - Quick Start moved to top
28
- - Install guides consolidated (Claude Desktop/Cursor/Windsurf share same JSON format)
29
-
30
- ### Tests
31
-
32
- - Random tool tests: 12 → 27 (+15)
33
- - Total: 194 tests, 280 assertions
34
-
35
- ## v1.4.0 (2026-02-11)
36
-
37
- ### Features
38
-
39
- - **Time conversion** — ms, s, min, h, d, wk, mo, yr (now 8 categories, 72 units)
40
- - **`--version` flag** — `npx @coo-quack/calc-mcp --version`
41
-
42
- ### Improvements
43
-
44
- - serverInfo.version synced with package.json (was hardcoded "0.1.0")
45
- - Error messages now list all supported units on unknown unit
46
- - Semver test coverage: 9 → 23 tests
47
- - CI git config for tag authoring
48
- - README badges (npm, CI, license)
49
- - CONTRIBUTING.md added
50
- - GitHub topics set
51
- - README examples: Japanese text replaced with English alternatives
52
-
53
- ## v1.3.0 (2026-02-11)
54
-
55
- ### Documentation
56
-
57
- - Overhaul README with natural language examples (22 verified examples)
58
- - Add install guides for Claude Code, Claude Desktop, VS Code, Cursor, Windsurf
59
- - Add unit conversion coverage details (7 categories, 58 units)
60
- - Add encode/decode examples (Base64, URL, HTML)
61
-
62
- ## v1.1.0 (2026-02-11)
63
-
64
- ### Features
65
-
66
- - **random**: Add UUID v7 support (`uuidVersion: "v7"`) — time-ordered UUIDs, ideal for database primary keys
67
-
68
- ## v1.0.0 (2026-02-11)
69
-
70
- ### Features
71
-
72
- - **21 MCP tools** for calculations and operations AI models struggle with:
73
- - `random` — UUID (v4), ULID, secure password, random number
74
- - `hash` — SHA-1, SHA-256, SHA-512, MD5
75
- - `base64` — Encode/decode Base64
76
- - `encode` — URL encode/decode, HTML entity encode/decode
77
- - `datetime` — Current time, convert, format, Unix timestamp
78
- - `count` — Character, word, line, byte counting (grapheme-aware)
79
- - `math` — Precise math evaluation via mathjs
80
- - `date` — Date arithmetic (add/subtract/diff)
81
- - `regex` — Test, match, replace with regex
82
- - `base` — Number base conversion (bin/oct/dec/hex/custom)
83
- - `diff` — Text diff between two strings
84
- - `json_validate` — JSON schema validation
85
- - `cron_parse` — Cron expression to human-readable description
86
- - `luhn` — Luhn algorithm validation (credit cards, etc.)
87
- - `ip` — IPv4/IPv6 parsing, CIDR subnet info
88
- - `color` — Color format conversion (hex/rgb/hsl/hwb)
89
- - `convert` — Unit conversion (length, weight, temp, data, time)
90
- - `char_info` — Unicode character info (codepoint, name, category)
91
- - `jwt_decode` — Decode JWT tokens (header + payload)
92
- - `url_parse` — URL parsing into components
93
- - `semver` — Semantic versioning operations (compare, satisfy, sort)
94
-
95
- ### CI/CD
96
-
97
- - GitHub Actions: test + lint on push/PR
98
- - Publish workflow: test + lint gate before npm publish on tag
99
-
100
- ### Infrastructure
101
-
102
- - Biome for linting and formatting
103
- - Renovate with OSV vulnerability alerts
104
- - 160 tests, 92%+ line coverage