@cyanheads/calculator-mcp-server 0.1.21 → 0.1.22

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/AGENTS.md CHANGED
@@ -1,7 +1,7 @@
1
1
  # Agent Protocol
2
2
 
3
3
  **Server:** calculator-mcp-server
4
- **Version:** 0.1.21
4
+ **Version:** 0.1.22
5
5
  **Framework:** [@cyanheads/mcp-ts-core](https://www.npmjs.com/package/@cyanheads/mcp-ts-core)
6
6
 
7
7
  > **Read the framework docs first:** `node_modules/@cyanheads/mcp-ts-core/CLAUDE.md` contains the full API reference — builders, Context, error codes, exports, patterns. This file covers server-specific conventions only.
@@ -263,14 +263,15 @@ Available skills:
263
263
  | `report-issue-framework` | File a bug or feature request against `@cyanheads/mcp-ts-core` via `gh` CLI |
264
264
  | `report-issue-local` | File a bug or feature request against this server's own repo via `gh` CLI |
265
265
  | `api-auth` | Auth modes, scopes, JWT/OAuth |
266
- | `api-canvas` | DataCanvas: register tabular data, run SQL, export — Tier 3 opt-in |
266
+ | `api-canvas` | DataCanvas: register tabular data, run SQL, export, plus the `spillover()` helper for big result sets — Tier 3 opt-in |
267
267
  | `api-config` | AppConfig, parseConfig, env vars |
268
268
  | `api-context` | Context interface, logger, state, progress |
269
269
  | `api-errors` | McpError, JsonRpcErrorCode, error patterns |
270
270
  | `api-linter` | MCP definition linter rules reference (every rule ID + fix) |
271
271
  | `api-services` | LLM, Speech, Graph services |
272
+ | `api-telemetry` | OTel catalog: spans, metrics, completion logs, env config, cardinality rules |
272
273
  | `api-testing` | createMockContext, test patterns |
273
- | `api-utils` | Formatting, parsing, security, pagination, scheduling |
274
+ | `api-utils` | Formatting, parsing, security, pagination, scheduling, telemetry helpers |
274
275
  | `api-workers` | Cloudflare Workers runtime |
275
276
  | `migrate-mcp-ts-template` | Migrate a template fork to use `@cyanheads/mcp-ts-core` as a package |
276
277
 
package/CLAUDE.md CHANGED
@@ -1,7 +1,7 @@
1
1
  # Agent Protocol
2
2
 
3
3
  **Server:** calculator-mcp-server
4
- **Version:** 0.1.21
4
+ **Version:** 0.1.22
5
5
  **Framework:** [@cyanheads/mcp-ts-core](https://www.npmjs.com/package/@cyanheads/mcp-ts-core)
6
6
 
7
7
  > **Read the framework docs first:** `node_modules/@cyanheads/mcp-ts-core/CLAUDE.md` contains the full API reference — builders, Context, error codes, exports, patterns. This file covers server-specific conventions only.
@@ -263,14 +263,15 @@ Available skills:
263
263
  | `report-issue-framework` | File a bug or feature request against `@cyanheads/mcp-ts-core` via `gh` CLI |
264
264
  | `report-issue-local` | File a bug or feature request against this server's own repo via `gh` CLI |
265
265
  | `api-auth` | Auth modes, scopes, JWT/OAuth |
266
- | `api-canvas` | DataCanvas: register tabular data, run SQL, export — Tier 3 opt-in |
266
+ | `api-canvas` | DataCanvas: register tabular data, run SQL, export, plus the `spillover()` helper for big result sets — Tier 3 opt-in |
267
267
  | `api-config` | AppConfig, parseConfig, env vars |
268
268
  | `api-context` | Context interface, logger, state, progress |
269
269
  | `api-errors` | McpError, JsonRpcErrorCode, error patterns |
270
270
  | `api-linter` | MCP definition linter rules reference (every rule ID + fix) |
271
271
  | `api-services` | LLM, Speech, Graph services |
272
+ | `api-telemetry` | OTel catalog: spans, metrics, completion logs, env config, cardinality rules |
272
273
  | `api-testing` | createMockContext, test patterns |
273
- | `api-utils` | Formatting, parsing, security, pagination, scheduling |
274
+ | `api-utils` | Formatting, parsing, security, pagination, scheduling, telemetry helpers |
274
275
  | `api-workers` | Cloudflare Workers runtime |
275
276
  | `migrate-mcp-ts-template` | Migrate a template fork to use `@cyanheads/mcp-ts-core` as a package |
276
277
 
package/Dockerfile CHANGED
@@ -4,7 +4,7 @@
4
4
  # This stage installs all dependencies (including dev), builds the TypeScript
5
5
  # source code into JavaScript, and prepares the production assets.
6
6
  # ==============================================================================
7
- FROM oven/bun:1 AS build
7
+ FROM oven/bun:1.3 AS build
8
8
 
9
9
  WORKDIR /usr/src/app
10
10
 
@@ -28,7 +28,7 @@ RUN bun run build
28
28
  # application. It uses a slim base image and only includes production
29
29
  # dependencies and build artifacts.
30
30
  # ==============================================================================
31
- FROM oven/bun:1-slim AS production
31
+ FROM oven/bun:1.3-slim AS production
32
32
 
33
33
  WORKDIR /usr/src/app
34
34
 
package/README.md CHANGED
@@ -8,7 +8,7 @@
8
8
 
9
9
  [![npm](https://img.shields.io/npm/v/@cyanheads/calculator-mcp-server?style=flat-square&logo=npm&logoColor=white)](https://www.npmjs.com/package/@cyanheads/calculator-mcp-server)
10
10
  [![Docker](https://img.shields.io/badge/Docker-ghcr.io-2496ED?style=flat-square&logo=docker&logoColor=white)](https://github.com/users/cyanheads/packages/container/package/calculator-mcp-server)
11
- [![Version](https://img.shields.io/badge/Version-0.1.21-blue.svg?style=flat-square)](./CHANGELOG.md) [![Framework](https://img.shields.io/badge/Built%20on-@cyanheads/mcp--ts--core-259?style=flat-square)](https://www.npmjs.com/package/@cyanheads/mcp-ts-core)
11
+ [![Version](https://img.shields.io/badge/Version-0.1.22-blue.svg?style=flat-square)](./CHANGELOG.md) [![Framework](https://img.shields.io/badge/Built%20on-@cyanheads/mcp--ts--core-259?style=flat-square)](https://www.npmjs.com/package/@cyanheads/mcp-ts-core)
12
12
 
13
13
  [![MCP SDK](https://img.shields.io/badge/MCP%20SDK-1.29.0-green.svg?style=flat-square)](https://modelcontextprotocol.io/) [![License](https://img.shields.io/badge/License-Apache%202.0-orange.svg?style=flat-square)](./LICENSE) [![TypeScript](https://img.shields.io/badge/TypeScript-6.0.3-3178C6.svg?style=flat-square)](https://www.typescriptlang.org/)
14
14
 
@@ -105,7 +105,7 @@ Add to your MCP client config (e.g., `claude_desktop_config.json`):
105
105
 
106
106
  ### Prerequisites
107
107
 
108
- - [Bun v1.2.0](https://bun.sh/) or higher
108
+ - [Bun v1.3.0](https://bun.sh/) or higher
109
109
 
110
110
  ### Installation
111
111
 
package/dist/index.js CHANGED
@@ -11,6 +11,7 @@ import { initMathService } from './services/math/math-service.js';
11
11
  await createApp({
12
12
  tools: [calculateTool],
13
13
  resources: [helpResource],
14
+ instructions: 'Use `calculate` to verify math computations via math.js. `operation` selects `evaluate` (default, numeric), `simplify` (symbolic, with trig identities), or `derivative` (symbolic, requires `variable`). Covers arithmetic, trigonometry, logarithms, statistics, matrices, complex numbers, combinatorics, and unit conversion (e.g. `5 kg to lbs`). Pass variable values via `scope` (e.g. `{ "x": 5 }`) and bound numeric output with `precision` (1–16). One expression per call.',
14
15
  landing: {
15
16
  repoRoot: 'https://github.com/cyanheads/calculator-mcp-server',
16
17
  tagline: 'A hardened math.js calculator MCP server — evaluate, simplify, and differentiate expressions.',
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AACA;;;GAGG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AACnD,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAC5D,OAAO,EAAE,YAAY,EAAE,MAAM,qDAAqD,CAAC;AACnF,OAAO,EAAE,aAAa,EAAE,MAAM,kDAAkD,CAAC;AACjF,OAAO,EAAE,eAAe,EAAE,MAAM,iCAAiC,CAAC;AAElE,MAAM,SAAS,CAAC;IACd,KAAK,EAAE,CAAC,aAAa,CAAC;IACtB,SAAS,EAAE,CAAC,YAAY,CAAC;IACzB,OAAO,EAAE;QACP,QAAQ,EAAE,oDAAoD;QAC9D,OAAO,EACL,+FAA+F;KAClG;IACD,KAAK;QACH,eAAe,CAAC,eAAe,EAAE,CAAC,CAAC;IACrC,CAAC;CACF,CAAC,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AACA;;;GAGG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AACnD,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAC5D,OAAO,EAAE,YAAY,EAAE,MAAM,qDAAqD,CAAC;AACnF,OAAO,EAAE,aAAa,EAAE,MAAM,kDAAkD,CAAC;AACjF,OAAO,EAAE,eAAe,EAAE,MAAM,iCAAiC,CAAC;AAElE,MAAM,SAAS,CAAC;IACd,KAAK,EAAE,CAAC,aAAa,CAAC;IACtB,SAAS,EAAE,CAAC,YAAY,CAAC;IACzB,YAAY,EACV,wdAAwd;IAC1d,OAAO,EAAE;QACP,QAAQ,EAAE,oDAAoD;QAC9D,OAAO,EACL,+FAA+F;KAClG;IACD,KAAK;QACH,eAAe,CAAC,eAAe,EAAE,CAAC,CAAC;IACrC,CAAC;CACF,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cyanheads/calculator-mcp-server",
3
- "version": "0.1.21",
3
+ "version": "0.1.22",
4
4
  "description": "Calculator MCP server — evaluate, simplify, and differentiate math expressions.",
5
5
  "mcpName": "io.github.cyanheads/calculator-mcp-server",
6
6
  "type": "module",
@@ -55,26 +55,26 @@
55
55
  }
56
56
  ],
57
57
  "engines": {
58
- "node": ">=22.0.0",
59
- "bun": ">=1.2.0"
58
+ "node": ">=24.0.0",
59
+ "bun": ">=1.3.0"
60
60
  },
61
61
  "packageManager": "bun@1.3.11",
62
62
  "publishConfig": {
63
63
  "access": "public"
64
64
  },
65
65
  "dependencies": {
66
- "@cyanheads/mcp-ts-core": "^0.8.15",
66
+ "@cyanheads/mcp-ts-core": "^0.9.1",
67
67
  "mathjs": "^15.2.0",
68
68
  "pino-pretty": "^13.1.3"
69
69
  },
70
70
  "devDependencies": {
71
- "@biomejs/biome": "^2.4.14",
72
- "@types/node": "^25.6.0",
71
+ "@biomejs/biome": "^2.4.15",
72
+ "@types/node": "^25.8.0",
73
73
  "depcheck": "^1.4.7",
74
74
  "ignore": "^7.0.5",
75
75
  "tsc-alias": "^1.8.17",
76
- "tsx": "^4.21.0",
76
+ "tsx": "^4.22.0",
77
77
  "typescript": "^6.0.3",
78
- "vitest": "^4.1.5"
78
+ "vitest": "^4.1.6"
79
79
  }
80
80
  }
package/server.json CHANGED
@@ -6,7 +6,7 @@
6
6
  "url": "https://github.com/cyanheads/calculator-mcp-server",
7
7
  "source": "github"
8
8
  },
9
- "version": "0.1.21",
9
+ "version": "0.1.22",
10
10
  "remotes": [
11
11
  {
12
12
  "type": "streamable-http",
@@ -19,7 +19,7 @@
19
19
  "registryBaseUrl": "https://registry.npmjs.org",
20
20
  "identifier": "@cyanheads/calculator-mcp-server",
21
21
  "runtimeHint": "bun",
22
- "version": "0.1.21",
22
+ "version": "0.1.22",
23
23
  "packageArguments": [
24
24
  {
25
25
  "type": "positional",
@@ -69,7 +69,7 @@
69
69
  "registryBaseUrl": "https://registry.npmjs.org",
70
70
  "identifier": "@cyanheads/calculator-mcp-server",
71
71
  "runtimeHint": "bun",
72
- "version": "0.1.21",
72
+ "version": "0.1.22",
73
73
  "packageArguments": [
74
74
  {
75
75
  "type": "positional",