@cyanheads/calculator-mcp-server 0.1.22 → 0.1.23
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 +53 -10
- package/CLAUDE.md +53 -10
- package/README.md +11 -6
- package/dist/config/server-config.d.ts +1 -5
- package/dist/config/server-config.d.ts.map +1 -1
- package/dist/mcp-server/resources/definitions/help.resource.d.ts +1 -3
- package/dist/mcp-server/resources/definitions/help.resource.d.ts.map +1 -1
- package/dist/mcp-server/tools/definitions/calculate.tool.d.ts +1 -16
- package/dist/mcp-server/tools/definitions/calculate.tool.d.ts.map +1 -1
- package/dist/mcp-server/tools/definitions/calculate.tool.js +2 -0
- package/dist/mcp-server/tools/definitions/calculate.tool.js.map +1 -1
- package/package.json +17 -7
- package/server.json +4 -4
package/AGENTS.md
CHANGED
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
# Agent Protocol
|
|
2
2
|
|
|
3
3
|
**Server:** calculator-mcp-server
|
|
4
|
-
**Version:** 0.1.
|
|
5
|
-
**Framework:** [@cyanheads/mcp-ts-core](https://www.npmjs.com/package/@cyanheads/mcp-ts-core)
|
|
4
|
+
**Version:** 0.1.23
|
|
5
|
+
**Framework:** [@cyanheads/mcp-ts-core](https://www.npmjs.com/package/@cyanheads/mcp-ts-core) `^0.9.4`
|
|
6
|
+
**Engines:** Bun ≥1.3.0, Node ≥24.0.0
|
|
7
|
+
**MCP SDK:** `@modelcontextprotocol/sdk` 1.29.0
|
|
8
|
+
**Zod:** 4.4.3
|
|
6
9
|
|
|
7
10
|
> **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.
|
|
8
11
|
|
|
@@ -36,7 +39,7 @@ When the user asks what to do next, what's left, or needs direction, suggest rel
|
|
|
36
39
|
8. **Run the `security-pass` skill** — audit handlers for MCP-specific security gaps (injection, blast radius, input sinks, tenant isolation)
|
|
37
40
|
9. **Run the `polish-docs-meta` skill** — finalize README, CHANGELOG, metadata, and agent protocol for shipping
|
|
38
41
|
10. **Run the `release-and-publish` skill** — publish to npm + MCP Registry + GHCR after wrapup
|
|
39
|
-
11. **Run the `maintenance` skill** —
|
|
42
|
+
11. **Run the `maintenance` skill** — investigate changelogs, adopt upstream changes, and sync skills after `bun update --latest`
|
|
40
43
|
|
|
41
44
|
Tailor suggestions to what's actually missing or stale — don't recite the full list every time.
|
|
42
45
|
|
|
@@ -239,7 +242,7 @@ src/
|
|
|
239
242
|
|
|
240
243
|
Skills are modular instructions in `skills/` at the project root. Read them directly when a task matches — e.g., `skills/add-tool/SKILL.md` when adding a tool.
|
|
241
244
|
|
|
242
|
-
**Agent skill directory:** Copy skills into the directory your agent discovers (Claude Code: `.claude/skills/`, others: equivalent).
|
|
245
|
+
**Agent skill directory:** Copy skills into the directory your agent discovers (Claude Code: `.claude/skills/`, others: equivalent). Skills then load as context without referencing `skills/` paths. After framework updates, run the `maintenance` skill — Phase B re-syncs the agent directory.
|
|
243
246
|
|
|
244
247
|
Available skills:
|
|
245
248
|
|
|
@@ -256,10 +259,10 @@ Available skills:
|
|
|
256
259
|
| `field-test` | Exercise tools/resources/prompts with real inputs, verify behavior, report issues |
|
|
257
260
|
| `tool-defs-analysis` | Read-only audit of MCP definition language (voice, leaks, recovery hints, structure) |
|
|
258
261
|
| `devcheck` | Lint, format, typecheck, audit |
|
|
259
|
-
| `security-pass` | Audit
|
|
262
|
+
| `security-pass` | Audit server for MCP-flavored security gaps: output injection, scope blast radius, input sinks, tenant isolation |
|
|
260
263
|
| `polish-docs-meta` | Finalize docs, README, metadata, and agent protocol for shipping |
|
|
261
264
|
| `release-and-publish` | Publish to npm, MCP Registry, and GHCR after git wrapup |
|
|
262
|
-
| `maintenance` |
|
|
265
|
+
| `maintenance` | Investigate changelogs, adopt upstream changes, sync skills to agent dirs |
|
|
263
266
|
| `report-issue-framework` | File a bug or feature request against `@cyanheads/mcp-ts-core` via `gh` CLI |
|
|
264
267
|
| `report-issue-local` | File a bug or feature request against this server's own repo via `gh` CLI |
|
|
265
268
|
| `api-auth` | Auth modes, scopes, JWT/OAuth |
|
|
@@ -286,16 +289,55 @@ When you complete a skill's checklist, check the boxes and add a completion time
|
|
|
286
289
|
| `bun run build` | Compile TypeScript |
|
|
287
290
|
| `bun run rebuild` | Clean + build |
|
|
288
291
|
| `bun run clean` | Remove build artifacts |
|
|
289
|
-
| `bun run devcheck` | Lint + format + typecheck + security |
|
|
292
|
+
| `bun run devcheck` | Lint + format + typecheck + security + changelog sync |
|
|
293
|
+
| `bun run audit:refresh` | Delete `bun.lock`, reinstall, and re-run `bun audit`. Use when `devcheck` flags a transitive advisory — Bun's `update` is sticky on transitive resolutions, so the advisory may be a stale-lockfile false positive. If it survives the refresh, it's real. |
|
|
290
294
|
| `bun run tree` | Generate directory structure doc |
|
|
295
|
+
| `bun run list-skills` | Print skill index from `skills/` frontmatter |
|
|
291
296
|
| `bun run format` | Auto-fix formatting |
|
|
292
297
|
| `bun run lint:mcp` | Validate MCP definitions |
|
|
298
|
+
| `bun run lint:packaging` | Validate env var alignment between `manifest.json` and `server.json` |
|
|
299
|
+
| `bun run bundle` | Build and pack as `.mcpb` for one-click Claude Desktop install |
|
|
300
|
+
| `bun run changelog:build` | Regenerate `CHANGELOG.md` from `changelog/*.md` |
|
|
301
|
+
| `bun run changelog:check` | Verify `CHANGELOG.md` is in sync (used by devcheck) |
|
|
293
302
|
| `bun run test` | Run tests |
|
|
294
303
|
| `bun run start:stdio` | Production mode (stdio) |
|
|
295
304
|
| `bun run start:http` | Production mode (HTTP) |
|
|
296
305
|
|
|
297
306
|
---
|
|
298
307
|
|
|
308
|
+
## Bundling
|
|
309
|
+
|
|
310
|
+
`bun run bundle` produces a `.mcpb` extension bundle for one-click install in Claude Desktop. MCPB is stdio-only — HTTP deployments are unaffected. Delete `manifest.json` and `.mcpbignore` to skip; `lint:packaging` skips cleanly when `manifest.json` is absent.
|
|
311
|
+
|
|
312
|
+
**Adding an env var requires both files:** `server.json` (`environmentVariables[]`) and `manifest.json` (`mcp_config.env` + `user_config`). `lint:packaging` (run by `devcheck`) verifies env var names match.
|
|
313
|
+
|
|
314
|
+
**README install badges** — drop these in to give users one-click install paths:
|
|
315
|
+
|
|
316
|
+
| Client | Mechanism |
|
|
317
|
+
|:-------|:----------|
|
|
318
|
+
| Claude Desktop | Browser downloads `.mcpb` from latest GitHub Release; OS file handler routes to Claude Desktop. |
|
|
319
|
+
| Cursor | `https://cursor.com/en/install-mcp` with base64 JSON config. |
|
|
320
|
+
| VS Code | `vscode:mcp/install?...` wrapped in `https://vscode.dev/redirect?url=` (GitHub strips non-HTTP schemes). |
|
|
321
|
+
| Claude Code / Codex | CLI only — no URL scheme. |
|
|
322
|
+
|
|
323
|
+
```markdown
|
|
324
|
+
[](https://github.com/cyanheads/calculator-mcp-server/releases/latest/download/calculator-mcp-server.mcpb)
|
|
325
|
+
[](https://cursor.com/en/install-mcp?name=calculator-mcp-server&config=<BASE64_CONFIG>)
|
|
326
|
+
[](https://vscode.dev/redirect?url=vscode:mcp/install?<URLENCODED_JSON>)
|
|
327
|
+
```
|
|
328
|
+
|
|
329
|
+
Generate encoded configs:
|
|
330
|
+
|
|
331
|
+
```bash
|
|
332
|
+
# Cursor
|
|
333
|
+
echo -n '{"command":"npx -y @cyanheads/calculator-mcp-server"}' | base64
|
|
334
|
+
|
|
335
|
+
# VS Code
|
|
336
|
+
node -p 'encodeURIComponent(JSON.stringify({name:"@cyanheads/calculator-mcp-server",command:"npx",args:["-y","@cyanheads/calculator-mcp-server"]}))'
|
|
337
|
+
```
|
|
338
|
+
|
|
339
|
+
---
|
|
340
|
+
|
|
299
341
|
## Publishing
|
|
300
342
|
|
|
301
343
|
After git wrapup (version bumps, changelog, commit, annotated tag) is complete, run the **`release-and-publish`** skill — it handles the full publish flow with retry-on-transient-failure across every registry.
|
|
@@ -317,7 +359,8 @@ git push && git push --tags
|
|
|
317
359
|
This server publishes to:
|
|
318
360
|
|
|
319
361
|
1. **npm** — `bun publish --access public`
|
|
320
|
-
2. **
|
|
362
|
+
2. **GitHub Release** — `.mcpb` bundle attached via `gh release create --verify-tag --notes-from-tag dist/*.mcpb` (powers the Claude Desktop install badge)
|
|
363
|
+
3. **GHCR** — multi-arch Docker image:
|
|
321
364
|
|
|
322
365
|
```bash
|
|
323
366
|
docker buildx build --platform linux/amd64,linux/arm64 \
|
|
@@ -326,7 +369,7 @@ This server publishes to:
|
|
|
326
369
|
--push .
|
|
327
370
|
```
|
|
328
371
|
|
|
329
|
-
The `release-and-publish` skill drives
|
|
372
|
+
The `release-and-publish` skill drives all three — don't run the commands manually unless the skill halts.
|
|
330
373
|
|
|
331
374
|
---
|
|
332
375
|
|
|
@@ -346,7 +389,7 @@ import { getServerConfig } from '@/config/server-config.js';
|
|
|
346
389
|
|
|
347
390
|
## Checklist
|
|
348
391
|
|
|
349
|
-
- [ ] Zod schemas: all fields have `.describe()`, only JSON-Schema-serializable types (no `z.custom()`, `z.date()`, `z.transform()`,
|
|
392
|
+
- [ ] Zod schemas: all fields have `.describe()`, only JSON-Schema-serializable types (no `z.custom()`, `z.date()`, `z.transform()`, `z.bigint()`, `z.symbol()`, `z.void()`, `z.map()`, `z.set()`, `z.function()`, `z.nan()`)
|
|
350
393
|
- [ ] Optional nested objects: handler guards for empty inner values from form-based clients (`if (input.obj?.field && ...)`, not just `if (input.obj)`). When regex/length constraints matter, use `z.union([z.literal(''), z.string().regex(...).describe(...)])` — literal variants are exempt from `describe-on-fields`.
|
|
351
394
|
- [ ] JSDoc `@fileoverview` + `@module` on every file
|
|
352
395
|
- [ ] `ctx.log` for logging, `ctx.state` for storage
|
package/CLAUDE.md
CHANGED
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
# Agent Protocol
|
|
2
2
|
|
|
3
3
|
**Server:** calculator-mcp-server
|
|
4
|
-
**Version:** 0.1.
|
|
5
|
-
**Framework:** [@cyanheads/mcp-ts-core](https://www.npmjs.com/package/@cyanheads/mcp-ts-core)
|
|
4
|
+
**Version:** 0.1.23
|
|
5
|
+
**Framework:** [@cyanheads/mcp-ts-core](https://www.npmjs.com/package/@cyanheads/mcp-ts-core) `^0.9.4`
|
|
6
|
+
**Engines:** Bun ≥1.3.0, Node ≥24.0.0
|
|
7
|
+
**MCP SDK:** `@modelcontextprotocol/sdk` 1.29.0
|
|
8
|
+
**Zod:** 4.4.3
|
|
6
9
|
|
|
7
10
|
> **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.
|
|
8
11
|
|
|
@@ -36,7 +39,7 @@ When the user asks what to do next, what's left, or needs direction, suggest rel
|
|
|
36
39
|
8. **Run the `security-pass` skill** — audit handlers for MCP-specific security gaps (injection, blast radius, input sinks, tenant isolation)
|
|
37
40
|
9. **Run the `polish-docs-meta` skill** — finalize README, CHANGELOG, metadata, and agent protocol for shipping
|
|
38
41
|
10. **Run the `release-and-publish` skill** — publish to npm + MCP Registry + GHCR after wrapup
|
|
39
|
-
11. **Run the `maintenance` skill** —
|
|
42
|
+
11. **Run the `maintenance` skill** — investigate changelogs, adopt upstream changes, and sync skills after `bun update --latest`
|
|
40
43
|
|
|
41
44
|
Tailor suggestions to what's actually missing or stale — don't recite the full list every time.
|
|
42
45
|
|
|
@@ -239,7 +242,7 @@ src/
|
|
|
239
242
|
|
|
240
243
|
Skills are modular instructions in `skills/` at the project root. Read them directly when a task matches — e.g., `skills/add-tool/SKILL.md` when adding a tool.
|
|
241
244
|
|
|
242
|
-
**Agent skill directory:** Copy skills into the directory your agent discovers (Claude Code: `.claude/skills/`, others: equivalent).
|
|
245
|
+
**Agent skill directory:** Copy skills into the directory your agent discovers (Claude Code: `.claude/skills/`, others: equivalent). Skills then load as context without referencing `skills/` paths. After framework updates, run the `maintenance` skill — Phase B re-syncs the agent directory.
|
|
243
246
|
|
|
244
247
|
Available skills:
|
|
245
248
|
|
|
@@ -256,10 +259,10 @@ Available skills:
|
|
|
256
259
|
| `field-test` | Exercise tools/resources/prompts with real inputs, verify behavior, report issues |
|
|
257
260
|
| `tool-defs-analysis` | Read-only audit of MCP definition language (voice, leaks, recovery hints, structure) |
|
|
258
261
|
| `devcheck` | Lint, format, typecheck, audit |
|
|
259
|
-
| `security-pass` | Audit
|
|
262
|
+
| `security-pass` | Audit server for MCP-flavored security gaps: output injection, scope blast radius, input sinks, tenant isolation |
|
|
260
263
|
| `polish-docs-meta` | Finalize docs, README, metadata, and agent protocol for shipping |
|
|
261
264
|
| `release-and-publish` | Publish to npm, MCP Registry, and GHCR after git wrapup |
|
|
262
|
-
| `maintenance` |
|
|
265
|
+
| `maintenance` | Investigate changelogs, adopt upstream changes, sync skills to agent dirs |
|
|
263
266
|
| `report-issue-framework` | File a bug or feature request against `@cyanheads/mcp-ts-core` via `gh` CLI |
|
|
264
267
|
| `report-issue-local` | File a bug or feature request against this server's own repo via `gh` CLI |
|
|
265
268
|
| `api-auth` | Auth modes, scopes, JWT/OAuth |
|
|
@@ -286,16 +289,55 @@ When you complete a skill's checklist, check the boxes and add a completion time
|
|
|
286
289
|
| `bun run build` | Compile TypeScript |
|
|
287
290
|
| `bun run rebuild` | Clean + build |
|
|
288
291
|
| `bun run clean` | Remove build artifacts |
|
|
289
|
-
| `bun run devcheck` | Lint + format + typecheck + security |
|
|
292
|
+
| `bun run devcheck` | Lint + format + typecheck + security + changelog sync |
|
|
293
|
+
| `bun run audit:refresh` | Delete `bun.lock`, reinstall, and re-run `bun audit`. Use when `devcheck` flags a transitive advisory — Bun's `update` is sticky on transitive resolutions, so the advisory may be a stale-lockfile false positive. If it survives the refresh, it's real. |
|
|
290
294
|
| `bun run tree` | Generate directory structure doc |
|
|
295
|
+
| `bun run list-skills` | Print skill index from `skills/` frontmatter |
|
|
291
296
|
| `bun run format` | Auto-fix formatting |
|
|
292
297
|
| `bun run lint:mcp` | Validate MCP definitions |
|
|
298
|
+
| `bun run lint:packaging` | Validate env var alignment between `manifest.json` and `server.json` |
|
|
299
|
+
| `bun run bundle` | Build and pack as `.mcpb` for one-click Claude Desktop install |
|
|
300
|
+
| `bun run changelog:build` | Regenerate `CHANGELOG.md` from `changelog/*.md` |
|
|
301
|
+
| `bun run changelog:check` | Verify `CHANGELOG.md` is in sync (used by devcheck) |
|
|
293
302
|
| `bun run test` | Run tests |
|
|
294
303
|
| `bun run start:stdio` | Production mode (stdio) |
|
|
295
304
|
| `bun run start:http` | Production mode (HTTP) |
|
|
296
305
|
|
|
297
306
|
---
|
|
298
307
|
|
|
308
|
+
## Bundling
|
|
309
|
+
|
|
310
|
+
`bun run bundle` produces a `.mcpb` extension bundle for one-click install in Claude Desktop. MCPB is stdio-only — HTTP deployments are unaffected. Delete `manifest.json` and `.mcpbignore` to skip; `lint:packaging` skips cleanly when `manifest.json` is absent.
|
|
311
|
+
|
|
312
|
+
**Adding an env var requires both files:** `server.json` (`environmentVariables[]`) and `manifest.json` (`mcp_config.env` + `user_config`). `lint:packaging` (run by `devcheck`) verifies env var names match.
|
|
313
|
+
|
|
314
|
+
**README install badges** — drop these in to give users one-click install paths:
|
|
315
|
+
|
|
316
|
+
| Client | Mechanism |
|
|
317
|
+
|:-------|:----------|
|
|
318
|
+
| Claude Desktop | Browser downloads `.mcpb` from latest GitHub Release; OS file handler routes to Claude Desktop. |
|
|
319
|
+
| Cursor | `https://cursor.com/en/install-mcp` with base64 JSON config. |
|
|
320
|
+
| VS Code | `vscode:mcp/install?...` wrapped in `https://vscode.dev/redirect?url=` (GitHub strips non-HTTP schemes). |
|
|
321
|
+
| Claude Code / Codex | CLI only — no URL scheme. |
|
|
322
|
+
|
|
323
|
+
```markdown
|
|
324
|
+
[](https://github.com/cyanheads/calculator-mcp-server/releases/latest/download/calculator-mcp-server.mcpb)
|
|
325
|
+
[](https://cursor.com/en/install-mcp?name=calculator-mcp-server&config=<BASE64_CONFIG>)
|
|
326
|
+
[](https://vscode.dev/redirect?url=vscode:mcp/install?<URLENCODED_JSON>)
|
|
327
|
+
```
|
|
328
|
+
|
|
329
|
+
Generate encoded configs:
|
|
330
|
+
|
|
331
|
+
```bash
|
|
332
|
+
# Cursor
|
|
333
|
+
echo -n '{"command":"npx -y @cyanheads/calculator-mcp-server"}' | base64
|
|
334
|
+
|
|
335
|
+
# VS Code
|
|
336
|
+
node -p 'encodeURIComponent(JSON.stringify({name:"@cyanheads/calculator-mcp-server",command:"npx",args:["-y","@cyanheads/calculator-mcp-server"]}))'
|
|
337
|
+
```
|
|
338
|
+
|
|
339
|
+
---
|
|
340
|
+
|
|
299
341
|
## Publishing
|
|
300
342
|
|
|
301
343
|
After git wrapup (version bumps, changelog, commit, annotated tag) is complete, run the **`release-and-publish`** skill — it handles the full publish flow with retry-on-transient-failure across every registry.
|
|
@@ -317,7 +359,8 @@ git push && git push --tags
|
|
|
317
359
|
This server publishes to:
|
|
318
360
|
|
|
319
361
|
1. **npm** — `bun publish --access public`
|
|
320
|
-
2. **
|
|
362
|
+
2. **GitHub Release** — `.mcpb` bundle attached via `gh release create --verify-tag --notes-from-tag dist/*.mcpb` (powers the Claude Desktop install badge)
|
|
363
|
+
3. **GHCR** — multi-arch Docker image:
|
|
321
364
|
|
|
322
365
|
```bash
|
|
323
366
|
docker buildx build --platform linux/amd64,linux/arm64 \
|
|
@@ -326,7 +369,7 @@ This server publishes to:
|
|
|
326
369
|
--push .
|
|
327
370
|
```
|
|
328
371
|
|
|
329
|
-
The `release-and-publish` skill drives
|
|
372
|
+
The `release-and-publish` skill drives all three — don't run the commands manually unless the skill halts.
|
|
330
373
|
|
|
331
374
|
---
|
|
332
375
|
|
|
@@ -346,7 +389,7 @@ import { getServerConfig } from '@/config/server-config.js';
|
|
|
346
389
|
|
|
347
390
|
## Checklist
|
|
348
391
|
|
|
349
|
-
- [ ] Zod schemas: all fields have `.describe()`, only JSON-Schema-serializable types (no `z.custom()`, `z.date()`, `z.transform()`,
|
|
392
|
+
- [ ] Zod schemas: all fields have `.describe()`, only JSON-Schema-serializable types (no `z.custom()`, `z.date()`, `z.transform()`, `z.bigint()`, `z.symbol()`, `z.void()`, `z.map()`, `z.set()`, `z.function()`, `z.nan()`)
|
|
350
393
|
- [ ] Optional nested objects: handler guards for empty inner values from form-based clients (`if (input.obj?.field && ...)`, not just `if (input.obj)`). When regex/length constraints matter, use `z.union([z.literal(''), z.string().regex(...).describe(...)])` — literal variants are exempt from `describe-on-fields`.
|
|
351
394
|
- [ ] JSDoc `@fileoverview` + `@module` on every file
|
|
352
395
|
- [ ] `ctx.log` for logging, `ctx.state` for storage
|
package/README.md
CHANGED
|
@@ -1,16 +1,21 @@
|
|
|
1
1
|
<div align="center">
|
|
2
2
|
<h1>@cyanheads/calculator-mcp-server</h1>
|
|
3
|
-
<p><b>
|
|
4
|
-
<
|
|
3
|
+
<p><b>Evaluate, simplify, and differentiate mathematical expressions via MCP. STDIO or Streamable HTTP.</b>
|
|
4
|
+
<div>1 Tool • 1 Resource</div>
|
|
5
|
+
</p>
|
|
5
6
|
</div>
|
|
6
7
|
|
|
7
8
|
<div align="center">
|
|
8
9
|
|
|
9
|
-
[](https://www.npmjs.com/package/@cyanheads/calculator-mcp-server)
|
|
10
|
-
[](https://github.com/users/cyanheads/packages/container/package/calculator-mcp-server)
|
|
11
|
-
[](./CHANGELOG.md) [](https://www.npmjs.com/package/@cyanheads/mcp-ts-core)
|
|
10
|
+
[](./CHANGELOG.md) [](./LICENSE) [](https://github.com/users/cyanheads/packages/container/package/calculator-mcp-server) [](https://modelcontextprotocol.io/) [](https://www.npmjs.com/package/@cyanheads/calculator-mcp-server) [](https://www.typescriptlang.org/) [](https://bun.sh/)
|
|
12
11
|
|
|
13
|
-
|
|
12
|
+
</div>
|
|
13
|
+
|
|
14
|
+
<div align="center">
|
|
15
|
+
|
|
16
|
+
[](https://cursor.com/en/install-mcp?name=calculator-mcp-server&config=eyJjb21tYW5kIjoibnB4IC15IEBjeWFuaGVhZHMvY2FsY3VsYXRvci1tY3Atc2VydmVyIn0=) [](https://vscode.dev/redirect?url=vscode:mcp/install?%7B%22name%22%3A%22calculator-mcp-server%22%2C%22command%22%3A%22npx%22%2C%22args%22%3A%5B%22-y%22%2C%22%40cyanheads%2Fcalculator-mcp-server%22%5D%7D)
|
|
17
|
+
|
|
18
|
+
[](https://www.npmjs.com/package/@cyanheads/mcp-ts-core)
|
|
14
19
|
|
|
15
20
|
</div>
|
|
16
21
|
|
|
@@ -3,11 +3,7 @@
|
|
|
3
3
|
* @module config/server-config
|
|
4
4
|
*/
|
|
5
5
|
import { z } from '@cyanheads/mcp-ts-core';
|
|
6
|
-
declare const ServerConfigSchema:
|
|
7
|
-
maxExpressionLength: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
8
|
-
evaluationTimeoutMs: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
9
|
-
maxResultLength: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
10
|
-
}, z.core.$strip>;
|
|
6
|
+
declare const ServerConfigSchema: any;
|
|
11
7
|
export type ServerConfig = z.infer<typeof ServerConfigSchema>;
|
|
12
8
|
/** Lazy-parsed server config from env vars. */
|
|
13
9
|
export declare function getServerConfig(): ServerConfig;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"server-config.d.ts","sourceRoot":"","sources":["../../src/config/server-config.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,wBAAwB,CAAC;AAG3C,QAAA,MAAM,kBAAkB
|
|
1
|
+
{"version":3,"file":"server-config.d.ts","sourceRoot":"","sources":["../../src/config/server-config.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,wBAAwB,CAAC;AAG3C,QAAA,MAAM,kBAAkB,KAsBtB,CAAC;AAEH,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAI9D,+CAA+C;AAC/C,wBAAgB,eAAe,IAAI,YAAY,CAO9C"}
|
|
@@ -2,7 +2,5 @@
|
|
|
2
2
|
* @fileoverview Help resource — static reference of available functions, operators, and syntax.
|
|
3
3
|
* @module mcp-server/resources/definitions/help.resource
|
|
4
4
|
*/
|
|
5
|
-
export declare const helpResource: import("@cyanheads/mcp-ts-core").ResourceDefinition<
|
|
6
|
-
[k: string]: import("zod/v4/core").$ZodType<unknown, unknown, import("zod/v4/core").$ZodTypeInternals<unknown, unknown>>;
|
|
7
|
-
}>, import("zod/v4/core").$strip>, undefined, undefined>;
|
|
5
|
+
export declare const helpResource: import("@cyanheads/mcp-ts-core").ResourceDefinition<ZodObject<ZodRawShape>, undefined, undefined>;
|
|
8
6
|
//# sourceMappingURL=help.resource.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"help.resource.d.ts","sourceRoot":"","sources":["../../../../src/mcp-server/resources/definitions/help.resource.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAKH,eAAO,MAAM,YAAY
|
|
1
|
+
{"version":3,"file":"help.resource.d.ts","sourceRoot":"","sources":["../../../../src/mcp-server/resources/definitions/help.resource.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAKH,eAAO,MAAM,YAAY,mGAWvB,CAAC"}
|
|
@@ -3,23 +3,8 @@
|
|
|
3
3
|
* Single tool covering 100% of the server's purpose.
|
|
4
4
|
* @module mcp-server/tools/definitions/calculate.tool
|
|
5
5
|
*/
|
|
6
|
-
import { z } from '@cyanheads/mcp-ts-core';
|
|
7
6
|
import { JsonRpcErrorCode } from '@cyanheads/mcp-ts-core/errors';
|
|
8
|
-
export declare const calculateTool: import("@cyanheads/mcp-ts-core").ToolDefinition<
|
|
9
|
-
expression: z.ZodString;
|
|
10
|
-
operation: z.ZodDefault<z.ZodEnum<{
|
|
11
|
-
evaluate: "evaluate";
|
|
12
|
-
simplify: "simplify";
|
|
13
|
-
derivative: "derivative";
|
|
14
|
-
}>>;
|
|
15
|
-
variable: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"">, z.ZodString]>>;
|
|
16
|
-
scope: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
|
|
17
|
-
precision: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"">, z.ZodNumber]>>;
|
|
18
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
19
|
-
result: z.ZodString;
|
|
20
|
-
resultType: z.ZodString;
|
|
21
|
-
expression: z.ZodString;
|
|
22
|
-
}, z.core.$strip>, readonly [{
|
|
7
|
+
export declare const calculateTool: import("@cyanheads/mcp-ts-core").ToolDefinition<any, any, readonly [{
|
|
23
8
|
readonly reason: "empty_expression";
|
|
24
9
|
readonly code: JsonRpcErrorCode.ValidationError;
|
|
25
10
|
readonly when: "Expression is empty or whitespace-only.";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"calculate.tool.d.ts","sourceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/calculate.tool.ts"],"names":[],"mappings":"AAAA;;;;GAIG;
|
|
1
|
+
{"version":3,"file":"calculate.tool.d.ts","sourceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/calculate.tool.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAGjE,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqKxB,CAAC"}
|
|
@@ -133,6 +133,8 @@ export const calculateTool = tool('calculate', {
|
|
|
133
133
|
}
|
|
134
134
|
ctx.log.info('Differentiated expression', { expression, variable });
|
|
135
135
|
return { ...math.differentiateExpression(expression, variable, ctx), expression };
|
|
136
|
+
default:
|
|
137
|
+
throw new Error(`Unhandled operation: ${operation}`);
|
|
136
138
|
}
|
|
137
139
|
},
|
|
138
140
|
format: (output) => [
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"calculate.tool.js","sourceR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AAU,EAAE,QAAQ,EAAE,CAAC,CAAC;gBACpE,OAAO,EAAE,GAAG,IAAI,CAAC,uBAAuB,CAAC,UAAU,EAAE,QAAQ,EAAE,GAAG,CAAC,EAAE,UAAU,EAAE,CAAC;YACpF;gBACE,MAAM,IAAI,KAAK,CAAC,wBAAwB,SAAmB,EAAE,CAAC,CAAC;QACnE,CAAC;IACH,CAAC;IAED,MAAM,EAAE,CAAC,MAAM,EAAE,EAAE,CAAC;QAClB;YACE,IAAI,EAAE,MAAM;YACZ,IAAI,EAAE,qBAAqB,MAAM,CAAC,UAAU,mBAAmB,MAAM,CAAC,MAAM,eAAe,MAAM,CAAC,UAAU,EAAE;SAC/G;KACF;CACF,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cyanheads/calculator-mcp-server",
|
|
3
|
-
"version": "0.1.
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "0.1.23",
|
|
4
|
+
"description": "Evaluate, simplify, and differentiate mathematical expressions via MCP. STDIO or Streamable HTTP.",
|
|
5
5
|
"mcpName": "io.github.cyanheads/calculator-mcp-server",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"main": "dist/index.js",
|
|
@@ -15,9 +15,15 @@
|
|
|
15
15
|
"rebuild": "bun scripts/clean.ts && bun scripts/build.ts",
|
|
16
16
|
"clean": "bun scripts/clean.ts",
|
|
17
17
|
"devcheck": "bun scripts/devcheck.ts",
|
|
18
|
+
"audit:refresh": "rm -f bun.lock && bun install && bun audit",
|
|
18
19
|
"tree": "bun scripts/tree.ts",
|
|
20
|
+
"list-skills": "bun scripts/list-skills.ts",
|
|
19
21
|
"format": "biome check --write --unsafe .",
|
|
20
22
|
"lint:mcp": "bun scripts/lint-mcp.ts",
|
|
23
|
+
"lint:packaging": "bun scripts/lint-packaging.ts",
|
|
24
|
+
"bundle": "bun run build && npx -y @anthropic-ai/mcpb pack . dist/calculator-mcp-server.mcpb",
|
|
25
|
+
"changelog:build": "bun scripts/build-changelog.ts",
|
|
26
|
+
"changelog:check": "bun scripts/build-changelog.ts --check",
|
|
21
27
|
"test": "vitest run",
|
|
22
28
|
"start": "node dist/index.js",
|
|
23
29
|
"start:stdio": "MCP_TRANSPORT_TYPE=stdio node dist/index.js",
|
|
@@ -62,19 +68,23 @@
|
|
|
62
68
|
"publishConfig": {
|
|
63
69
|
"access": "public"
|
|
64
70
|
},
|
|
71
|
+
"overrides": {
|
|
72
|
+
"zod": "^4.4.3"
|
|
73
|
+
},
|
|
65
74
|
"dependencies": {
|
|
66
|
-
"@cyanheads/mcp-ts-core": "^0.9.
|
|
75
|
+
"@cyanheads/mcp-ts-core": "^0.9.4",
|
|
67
76
|
"mathjs": "^15.2.0",
|
|
68
|
-
"pino-pretty": "^13.1.3"
|
|
77
|
+
"pino-pretty": "^13.1.3",
|
|
78
|
+
"zod": "^4.4.3"
|
|
69
79
|
},
|
|
70
80
|
"devDependencies": {
|
|
71
81
|
"@biomejs/biome": "^2.4.15",
|
|
72
|
-
"@types/node": "^25.
|
|
82
|
+
"@types/node": "^25.9.1",
|
|
73
83
|
"depcheck": "^1.4.7",
|
|
74
84
|
"ignore": "^7.0.5",
|
|
75
85
|
"tsc-alias": "^1.8.17",
|
|
76
|
-
"tsx": "^4.22.
|
|
86
|
+
"tsx": "^4.22.3",
|
|
77
87
|
"typescript": "^6.0.3",
|
|
78
|
-
"vitest": "^4.1.
|
|
88
|
+
"vitest": "^4.1.7"
|
|
79
89
|
}
|
|
80
90
|
}
|
package/server.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://static.modelcontextprotocol.io/schemas/2025-12-11/server.schema.json",
|
|
3
3
|
"name": "io.github.cyanheads/calculator-mcp-server",
|
|
4
|
-
"description": "
|
|
4
|
+
"description": "Evaluate, simplify, and differentiate mathematical expressions.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"url": "https://github.com/cyanheads/calculator-mcp-server",
|
|
7
7
|
"source": "github"
|
|
8
8
|
},
|
|
9
|
-
"version": "0.1.
|
|
9
|
+
"version": "0.1.23",
|
|
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.
|
|
22
|
+
"version": "0.1.23",
|
|
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.
|
|
72
|
+
"version": "0.1.23",
|
|
73
73
|
"packageArguments": [
|
|
74
74
|
{
|
|
75
75
|
"type": "positional",
|