@coo-quack/calc-mcp 1.6.0 → 1.6.2

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/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.2",
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
Binary file
@@ -1,56 +0,0 @@
1
- import { defineConfig } from "vitepress";
2
-
3
- export default defineConfig({
4
- title: "Calc MCP",
5
- description: "21 tools for things AI is bad at",
6
- base: "/calc-mcp/",
7
-
8
- themeConfig: {
9
- logo: "/logo.svg",
10
-
11
- nav: [
12
- { text: "Home", link: "/" },
13
- { text: "Tools", link: "/tools" },
14
- { text: "Install", link: "/install" },
15
- { text: "Examples", link: "/examples" },
16
- { text: "Changelog", link: "/changelog" },
17
- ],
18
-
19
- sidebar: [
20
- {
21
- text: "Guide",
22
- items: [
23
- { text: "Getting Started", link: "/" },
24
- { text: "Installation", link: "/install" },
25
- { text: "Examples", link: "/examples" },
26
- ],
27
- },
28
- {
29
- text: "Reference",
30
- items: [
31
- { text: "All Tools", link: "/tools" },
32
- { text: "Changelog", link: "/changelog" },
33
- ],
34
- },
35
- ],
36
-
37
- socialLinks: [
38
- { icon: "github", link: "https://github.com/coo-quack/calc-mcp" },
39
- {
40
- icon: "npm",
41
- link: "https://www.npmjs.com/package/@coo-quack/calc-mcp",
42
- },
43
- ],
44
-
45
- footer: {
46
- message: "Released under the MIT License.",
47
- copyright: "Copyright © 2026 coo-quack",
48
- },
49
-
50
- search: {
51
- provider: "local",
52
- },
53
- },
54
-
55
- head: [["link", { rel: "icon", href: "/calc-mcp/favicon.ico" }]],
56
- });
@@ -1,4 +0,0 @@
1
- import DefaultTheme from "vitepress/theme";
2
- import "./style.css";
3
-
4
- export default DefaultTheme;
@@ -1,21 +0,0 @@
1
- :root {
2
- --vp-c-brand-1: #00a000;
3
- --vp-c-brand-2: #00c000;
4
- --vp-c-brand-3: #00e000;
5
- --vp-c-brand-soft: rgba(0, 160, 0, 0.14);
6
- }
7
-
8
- .dark {
9
- --vp-c-brand-1: #00d000;
10
- --vp-c-brand-2: #00b000;
11
- --vp-c-brand-3: #00a000;
12
- --vp-c-brand-soft: rgba(0, 208, 0, 0.16);
13
- }
14
-
15
- .vp-doc a {
16
- color: var(--vp-c-brand-1);
17
- }
18
-
19
- .vp-doc a:hover {
20
- color: var(--vp-c-brand-2);
21
- }
package/docs/changelog.md DELETED
@@ -1,111 +0,0 @@
1
- # Changelog
2
-
3
- All notable changes to Calc MCP are documented here.
4
-
5
- ## v1.6.0 (2026-02-12)
6
-
7
- ### Features
8
-
9
- - **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)
10
-
11
- ### Documentation
12
-
13
- - Added documentation site link to README
14
- - Added release checklist to CONTRIBUTING.md (#15)
15
- - Updated npx examples with `--prefix /tmp` for better node_modules compatibility
16
- - Added common ignore patterns to .gitignore
17
-
18
- ## v1.5.0 (2026-02-11)
19
-
20
- ### Features
21
-
22
- - **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
23
- - **Shuffle** — Fisher-Yates algorithm with `crypto.getRandomValues` for unbiased list shuffling
24
-
25
- ### Documentation
26
-
27
- - README title: `@coo-quack/calc-mcp` → `Calc MCP`
28
- - Added "Why?" section with AI-alone vs calc-mcp comparison
29
- - Quick Start moved to top
30
- - Install guides consolidated (Claude Desktop/Cursor/Windsurf share same JSON format)
31
-
32
- ### Tests
33
-
34
- - Random tool tests: 12 → 27 (+15)
35
- - Total: 194 tests, 280 assertions
36
-
37
- ## v1.4.0 (2026-02-11)
38
-
39
- ### Features
40
-
41
- - **Time conversion** — ms, s, min, h, d, wk, mo, yr (now 8 categories, 72 units)
42
- - **`--version` flag** — `npx @coo-quack/calc-mcp --version`
43
-
44
- ### Improvements
45
-
46
- - serverInfo.version synced with package.json (was hardcoded "0.1.0")
47
- - Error messages now list all supported units on unknown unit
48
- - Semver test coverage: 9 → 23 tests
49
- - CI git config for tag authoring
50
- - README badges (npm, CI, license)
51
- - CONTRIBUTING.md added
52
- - GitHub topics set
53
- - README examples: Japanese text replaced with English alternatives
54
-
55
- ## v1.3.0 (2026-02-11)
56
-
57
- ### Documentation
58
-
59
- - Overhaul README with natural language examples (22 verified examples)
60
- - Add install guides for Claude Code, Claude Desktop, VS Code, Cursor, Windsurf
61
- - Add unit conversion coverage details (7 categories, 58 units)
62
- - Add encode/decode examples (Base64, URL, HTML)
63
-
64
- ## v1.1.0 (2026-02-11)
65
-
66
- ### Features
67
-
68
- - **random**: Add UUID v7 support (`uuidVersion: "v7"`) — Time-ordered UUIDs, ideal for database primary keys
69
-
70
- ## v1.0.0 (2026-02-11)
71
-
72
- ### Features
73
-
74
- Initial release with **21 MCP tools** for calculations and operations AI models struggle with:
75
-
76
- - **random** — UUID (v4), ULID, secure password, random number
77
- - **hash** — SHA-1, SHA-256, SHA-512, MD5
78
- - **base64** — Encode/decode Base64
79
- - **encode** — URL encode/decode, HTML entity encode/decode
80
- - **datetime** — Current time, convert, format, Unix timestamp
81
- - **count** — Character, word, line, byte counting (grapheme-aware)
82
- - **math** — Precise math evaluation via mathjs
83
- - **date** — Date arithmetic (add/subtract/diff)
84
- - **regex** — Test, match, replace with regex
85
- - **base** — Number base conversion (bin/oct/dec/hex/custom)
86
- - **diff** — Text diff between two strings
87
- - **json_validate** — JSON schema validation
88
- - **cron_parse** — Cron expression to human-readable description
89
- - **luhn** — Luhn algorithm validation (credit cards, etc.)
90
- - **ip** — IPv4/IPv6 parsing, CIDR subnet info
91
- - **color** — Color format conversion (hex/rgb/hsl/hwb)
92
- - **convert** — Unit conversion (length, weight, temp, data, time)
93
- - **char_info** — Unicode character info (codepoint, name, category)
94
- - **jwt_decode** — Decode JWT tokens (header + payload)
95
- - **url_parse** — URL parsing into components
96
- - **semver** — Semantic versioning operations (compare, satisfy, sort)
97
-
98
- ### CI/CD
99
-
100
- - GitHub Actions: test + lint on push/PR
101
- - Publish workflow: test + lint gate before npm publish on tag
102
-
103
- ### Infrastructure
104
-
105
- - Biome for linting and formatting
106
- - Renovate with OSV vulnerability alerts
107
- - 160 tests, 92%+ line coverage
108
-
109
- ---
110
-
111
- For the latest changes, see [GitHub Releases](https://github.com/coo-quack/calc-mcp/releases).