@cyanheads/exchange-rates-mcp-server 0.2.1 → 0.3.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.
package/AGENTS.md CHANGED
@@ -1,10 +1,10 @@
1
1
  # Developer Protocol
2
2
 
3
3
  **Server:** exchange-rates-mcp-server
4
- **Version:** 0.2.1
5
- **Framework:** [@cyanheads/mcp-ts-core](https://www.npmjs.com/package/@cyanheads/mcp-ts-core) `^0.11.0`
4
+ **Version:** 0.3.0
5
+ **Framework:** [@cyanheads/mcp-ts-core](https://www.npmjs.com/package/@cyanheads/mcp-ts-core) `0.12.3`
6
6
  **Engines:** Bun ≥1.3.0, Node ≥24.0.0
7
- **MCP SDK:** `@modelcontextprotocol/sdk` ^1.29.0
7
+ **MCP SDK:** `@modelcontextprotocol/server` ^2.0.0
8
8
  **Zod:** ^4.4.3
9
9
 
10
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.
@@ -35,7 +35,7 @@ Tailor suggestions to what's actually missing or stale — don't recite the full
35
35
  - **Logic throws, framework catches.** Tool/resource handlers are pure — throw on failure, no `try/catch`. Plain `Error` is fine; the framework catches, classifies, and formats. Use error factories (`notFound()`, `validationError()`, etc.) when the error code matters.
36
36
  - **Use `ctx.log`** for request-scoped logging. No `console` calls.
37
37
  - **Use `ctx.state`** for tenant-scoped storage. Never access persistence directly.
38
- - **Check `ctx.elicit`** for presence before calling.
38
+ - **Need input the caller didn't supply?** `return ctx.requestInput(...)` and read `ctx.inputs` when the handler is re-entered. Never `await` for user input mid-handler.
39
39
  - **Secrets in env vars only** — never hardcoded.
40
40
  - **Close the loop on issues.** When implementing work tracked by a GitHub issue, comment on the issue with what landed and close it. Do both — a comment without a close leaves stale issues open; a close without a comment leaves no record of what shipped. The comment is for future readers — state the concrete changes, not the conversation that produced them.
41
41
 
@@ -170,13 +170,13 @@ Handlers receive a unified `ctx` object. Key properties:
170
170
 
171
171
  | Property | Description |
172
172
  |:---------|:------------|
173
- | `ctx.log` | Request-scoped logger — `.debug()`, `.info()`, `.notice()`, `.warning()`, `.error()`. Auto-correlates requestId, traceId, tenantId. |
173
+ | `ctx.log` | Request-scoped logger — `.debug()`, `.info()`, `.notice()`, `.warning()`, `.error()`. Auto-correlates requestId, traceId, tenantId. Dual-sink: Pino **and** `notifications/message` to the client, so treat it as client-visible. |
174
174
  | `ctx.state` | Tenant-scoped KV — `.get(key)`, `.set(key, value, { ttl? })`, `.delete(key)`, `.getMany(keys)`, `.list(prefix, { cursor, limit })`. Accepts any serializable value. |
175
- | `ctx.elicit` | Ask user for structured input — form call `(message, schema)` or `.url(message, url)` for an external link. **Check for presence first:** `if (ctx.elicit) { ... }` |
175
+ | `ctx.requestInput` | Suspend and ask the caller for more input — `return ctx.requestInput({ inputRequests: { key: inputRequired.elicit({ message, requestedSchema }) } })`. Never returns; the handler is re-entered with the answers. Always present. |
176
+ | `ctx.inputs` | Reader over a retried request's responses — `.accepted(key, schema)`, `.view(key)`, `.state()`, `.dropped`. Empty on the first round. |
176
177
  | `ctx.enrich` | Success-path agent context (empty-result notices, query echo, pagination totals) — `ctx.enrich(...)` or `.notice()` / `.total()` / `.echo()` / `.truncated()`. Reaches `structuredContent` and `content[]`; lands only when the definition declares an `enrichment` block (no-op otherwise). |
177
178
  | `ctx.content` | Non-text content blocks — `.image(data, mimeType)`, `.audio(data, mimeType)`, or `ctx.content(block)` for a raw block. Prepended to `content[]` after `format()`; never enters `structuredContent`. |
178
179
  | `ctx.signal` | `AbortSignal` for cancellation. |
179
- | `ctx.progress` | Task progress (present when `task: true`) — `.setTotal(n)`, `.increment()`, `.update(message)`. |
180
180
  | `ctx.requestId` | Unique request ID. |
181
181
  | `ctx.tenantId` | Tenant ID from JWT; `'default'` for stdio or HTTP with auth off. |
182
182
 
@@ -232,7 +232,7 @@ See framework CLAUDE.md and the `api-errors` skill for the full auto-classificat
232
232
  src/
233
233
  index.ts # createApp() entry point — registers all tools, resources, services
234
234
  config/
235
- server-config.ts # FRANKFURTER_BASE_URL, FX_TIMESERIES_CANVAS_THRESHOLD_DAYS
235
+ server-config.ts # FRANKFURTER_BASE_URL, FX_TIMESERIES_CANVAS_THRESHOLD_DAYS, FX_ENABLE_CANVAS_DROP
236
236
  services/
237
237
  canvas/
238
238
  canvas-accessor.ts # Module-level DataCanvas accessor (set via createApp setup())
@@ -249,6 +249,7 @@ src/
249
249
  fx-list-currencies.tool.ts # All supported ISO 4217 currencies
250
250
  fx-dataframe-describe.tool.ts # List DataCanvas tables from a prior timeseries call
251
251
  fx-dataframe-query.tool.ts # SQL SELECT against DataCanvas tables
252
+ fx-dataframe-drop.tool.ts # Remove one staged table; opt-in via FX_ENABLE_CANVAS_DROP
252
253
  resources/definitions/
253
254
  fx-currencies.resource.ts # fx://currencies — stable currencies reference document
254
255
  fx-rates-latest.resource.ts # fx://rates/latest/{base} — latest rates snapshot
@@ -300,7 +301,7 @@ Available skills:
300
301
  | `api-auth` | Auth modes, scopes, JWT/OAuth |
301
302
  | `api-canvas` | DataCanvas: register tabular data, run SQL, export, plus the `spillover()` helper for big result sets — Tier 3 opt-in |
302
303
  | `api-config` | AppConfig, parseConfig, env vars |
303
- | `api-context` | Context interface, logger, state, progress |
304
+ | `api-context` | Context interface, RequestContext, logger, state, multi-round-trip input |
304
305
  | `api-errors` | McpError, JsonRpcErrorCode, error patterns |
305
306
  | `api-linter` | Definition linter rule catalog — invoked by `bun run lint:mcp` and `devcheck` |
306
307
  | `api-mirror` | MirrorService: persistent self-refreshing local mirror (embedded SQLite + FTS5) of a bulk upstream dataset — Tier 3 opt-in |
package/CLAUDE.md CHANGED
@@ -1,10 +1,10 @@
1
1
  # Developer Protocol
2
2
 
3
3
  **Server:** exchange-rates-mcp-server
4
- **Version:** 0.2.1
5
- **Framework:** [@cyanheads/mcp-ts-core](https://www.npmjs.com/package/@cyanheads/mcp-ts-core) `^0.11.0`
4
+ **Version:** 0.3.0
5
+ **Framework:** [@cyanheads/mcp-ts-core](https://www.npmjs.com/package/@cyanheads/mcp-ts-core) `0.12.3`
6
6
  **Engines:** Bun ≥1.3.0, Node ≥24.0.0
7
- **MCP SDK:** `@modelcontextprotocol/sdk` ^1.29.0
7
+ **MCP SDK:** `@modelcontextprotocol/server` ^2.0.0
8
8
  **Zod:** ^4.4.3
9
9
 
10
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.
@@ -35,7 +35,7 @@ Tailor suggestions to what's actually missing or stale — don't recite the full
35
35
  - **Logic throws, framework catches.** Tool/resource handlers are pure — throw on failure, no `try/catch`. Plain `Error` is fine; the framework catches, classifies, and formats. Use error factories (`notFound()`, `validationError()`, etc.) when the error code matters.
36
36
  - **Use `ctx.log`** for request-scoped logging. No `console` calls.
37
37
  - **Use `ctx.state`** for tenant-scoped storage. Never access persistence directly.
38
- - **Check `ctx.elicit`** for presence before calling.
38
+ - **Need input the caller didn't supply?** `return ctx.requestInput(...)` and read `ctx.inputs` when the handler is re-entered. Never `await` for user input mid-handler.
39
39
  - **Secrets in env vars only** — never hardcoded.
40
40
  - **Close the loop on issues.** When implementing work tracked by a GitHub issue, comment on the issue with what landed and close it. Do both — a comment without a close leaves stale issues open; a close without a comment leaves no record of what shipped. The comment is for future readers — state the concrete changes, not the conversation that produced them.
41
41
 
@@ -170,13 +170,13 @@ Handlers receive a unified `ctx` object. Key properties:
170
170
 
171
171
  | Property | Description |
172
172
  |:---------|:------------|
173
- | `ctx.log` | Request-scoped logger — `.debug()`, `.info()`, `.notice()`, `.warning()`, `.error()`. Auto-correlates requestId, traceId, tenantId. |
173
+ | `ctx.log` | Request-scoped logger — `.debug()`, `.info()`, `.notice()`, `.warning()`, `.error()`. Auto-correlates requestId, traceId, tenantId. Dual-sink: Pino **and** `notifications/message` to the client, so treat it as client-visible. |
174
174
  | `ctx.state` | Tenant-scoped KV — `.get(key)`, `.set(key, value, { ttl? })`, `.delete(key)`, `.getMany(keys)`, `.list(prefix, { cursor, limit })`. Accepts any serializable value. |
175
- | `ctx.elicit` | Ask user for structured input — form call `(message, schema)` or `.url(message, url)` for an external link. **Check for presence first:** `if (ctx.elicit) { ... }` |
175
+ | `ctx.requestInput` | Suspend and ask the caller for more input — `return ctx.requestInput({ inputRequests: { key: inputRequired.elicit({ message, requestedSchema }) } })`. Never returns; the handler is re-entered with the answers. Always present. |
176
+ | `ctx.inputs` | Reader over a retried request's responses — `.accepted(key, schema)`, `.view(key)`, `.state()`, `.dropped`. Empty on the first round. |
176
177
  | `ctx.enrich` | Success-path agent context (empty-result notices, query echo, pagination totals) — `ctx.enrich(...)` or `.notice()` / `.total()` / `.echo()` / `.truncated()`. Reaches `structuredContent` and `content[]`; lands only when the definition declares an `enrichment` block (no-op otherwise). |
177
178
  | `ctx.content` | Non-text content blocks — `.image(data, mimeType)`, `.audio(data, mimeType)`, or `ctx.content(block)` for a raw block. Prepended to `content[]` after `format()`; never enters `structuredContent`. |
178
179
  | `ctx.signal` | `AbortSignal` for cancellation. |
179
- | `ctx.progress` | Task progress (present when `task: true`) — `.setTotal(n)`, `.increment()`, `.update(message)`. |
180
180
  | `ctx.requestId` | Unique request ID. |
181
181
  | `ctx.tenantId` | Tenant ID from JWT; `'default'` for stdio or HTTP with auth off. |
182
182
 
@@ -232,7 +232,7 @@ See framework CLAUDE.md and the `api-errors` skill for the full auto-classificat
232
232
  src/
233
233
  index.ts # createApp() entry point — registers all tools, resources, services
234
234
  config/
235
- server-config.ts # FRANKFURTER_BASE_URL, FX_TIMESERIES_CANVAS_THRESHOLD_DAYS
235
+ server-config.ts # FRANKFURTER_BASE_URL, FX_TIMESERIES_CANVAS_THRESHOLD_DAYS, FX_ENABLE_CANVAS_DROP
236
236
  services/
237
237
  canvas/
238
238
  canvas-accessor.ts # Module-level DataCanvas accessor (set via createApp setup())
@@ -249,6 +249,7 @@ src/
249
249
  fx-list-currencies.tool.ts # All supported ISO 4217 currencies
250
250
  fx-dataframe-describe.tool.ts # List DataCanvas tables from a prior timeseries call
251
251
  fx-dataframe-query.tool.ts # SQL SELECT against DataCanvas tables
252
+ fx-dataframe-drop.tool.ts # Remove one staged table; opt-in via FX_ENABLE_CANVAS_DROP
252
253
  resources/definitions/
253
254
  fx-currencies.resource.ts # fx://currencies — stable currencies reference document
254
255
  fx-rates-latest.resource.ts # fx://rates/latest/{base} — latest rates snapshot
@@ -300,7 +301,7 @@ Available skills:
300
301
  | `api-auth` | Auth modes, scopes, JWT/OAuth |
301
302
  | `api-canvas` | DataCanvas: register tabular data, run SQL, export, plus the `spillover()` helper for big result sets — Tier 3 opt-in |
302
303
  | `api-config` | AppConfig, parseConfig, env vars |
303
- | `api-context` | Context interface, logger, state, progress |
304
+ | `api-context` | Context interface, RequestContext, logger, state, multi-round-trip input |
304
305
  | `api-errors` | McpError, JsonRpcErrorCode, error patterns |
305
306
  | `api-linter` | Definition linter rule catalog — invoked by `bun run lint:mcp` and `devcheck` |
306
307
  | `api-mirror` | MirrorService: persistent self-refreshing local mirror (embedded SQLite + FTS5) of a bulk upstream dataset — Tier 3 opt-in |
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.3.14 AS build
7
+ FROM oven/bun:1.4.0 AS build
8
8
 
9
9
  WORKDIR /usr/src/app
10
10
 
@@ -30,7 +30,7 @@ RUN bun run build
30
30
  # application. It uses a slim base image and only includes production
31
31
  # dependencies and build artifacts.
32
32
  # ==============================================================================
33
- FROM oven/bun:1.3.14-slim AS production
33
+ FROM oven/bun:1.4.0-slim AS production
34
34
 
35
35
  WORKDIR /usr/src/app
36
36
 
package/README.md CHANGED
@@ -1,13 +1,13 @@
1
1
  <div align="center">
2
2
  <h1>@cyanheads/exchange-rates-mcp-server</h1>
3
3
  <p><b>Convert currencies, get FX rates, and query historical ECB exchange rate data via MCP. STDIO or Streamable HTTP.</b>
4
- <div>7 Tools • 2 Resources</div>
4
+ <div>7 Tools • 1 Opt-in Tool • 2 Resources</div>
5
5
  </p>
6
6
  </div>
7
7
 
8
8
  <div align="center">
9
9
 
10
- [![Version](https://img.shields.io/badge/Version-0.2.1-blue.svg?style=flat-square)](./CHANGELOG.md) [![License](https://img.shields.io/badge/License-Apache%202.0-orange.svg?style=flat-square)](./LICENSE) [![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/exchange-rates-mcp-server) [![MCP SDK](https://img.shields.io/badge/MCP%20SDK-^1.29.0-green.svg?style=flat-square)](https://modelcontextprotocol.io/) [![npm](https://img.shields.io/npm/v/@cyanheads/exchange-rates-mcp-server?style=flat-square&logo=npm&logoColor=white)](https://www.npmjs.com/package/@cyanheads/exchange-rates-mcp-server) [![TypeScript](https://img.shields.io/badge/TypeScript-^7.0.2-3178C6.svg?style=flat-square)](https://www.typescriptlang.org/) [![Bun](https://img.shields.io/badge/Bun-v1.3.14-blueviolet.svg?style=flat-square)](https://bun.sh/)
10
+ [![Version](https://img.shields.io/badge/Version-0.3.0-blue.svg?style=flat-square)](./CHANGELOG.md) [![License](https://img.shields.io/badge/License-Apache%202.0-orange.svg?style=flat-square)](./LICENSE) [![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/exchange-rates-mcp-server) [![MCP SDK](https://img.shields.io/badge/MCP%20SDK-^2.0.0-green.svg?style=flat-square)](https://modelcontextprotocol.io/) [![npm](https://img.shields.io/npm/v/@cyanheads/exchange-rates-mcp-server?style=flat-square&logo=npm&logoColor=white)](https://www.npmjs.com/package/@cyanheads/exchange-rates-mcp-server) [![TypeScript](https://img.shields.io/badge/TypeScript-^7.0.2-3178C6.svg?style=flat-square)](https://www.typescriptlang.org/) [![Bun](https://img.shields.io/badge/Bun-v1.4.0-blueviolet.svg?style=flat-square)](https://bun.sh/)
11
11
 
12
12
  </div>
13
13
 
@@ -29,9 +29,9 @@
29
29
 
30
30
  ## Tools
31
31
 
32
- Seven tools for working with ECB FX rate data — currency lookup and disambiguation, point-in-time rates and conversions, historical time-series retrieval, and SQL analytics over the DataCanvas workspace that long time-series calls produce.
32
+ Eight tools for working with ECB FX rate data — currency lookup and disambiguation, point-in-time rates and conversions, historical time-series retrieval, and SQL analytics over the DataCanvas workspace that long time-series calls produce. Five are advertised by default; the three `fx_dataframe_*` tools need `CANVAS_PROVIDER_TYPE=duckdb`, and the destructive one among them additionally needs `FX_ENABLE_CANVAS_DROP=true`.
33
33
 
34
- The two `fx_dataframe_*` tools require DataCanvas. With `CANVAS_PROVIDER_TYPE` unset (the default) they are not advertised in `tools/list` at all, so a client never sees a tool it cannot call; the HTTP landing page still lists them as disabled cards hinting `CANVAS_PROVIDER_TYPE=duckdb`, so operators can tell they exist. In that mode `fx_get_timeseries` returns every range inline:
34
+ The three `fx_dataframe_*` tools require DataCanvas. With `CANVAS_PROVIDER_TYPE` unset (the default) they are not advertised in `tools/list` at all, so a client never sees a tool it cannot call; the HTTP landing page still lists them as disabled cards hinting `CANVAS_PROVIDER_TYPE=duckdb`, so operators can tell they exist. In that mode `fx_get_timeseries` returns every range inline:
35
35
 
36
36
  | Tool | Description |
37
37
  |:-----|:------------|
@@ -42,6 +42,7 @@ The two `fx_dataframe_*` tools require DataCanvas. With `CANVAS_PROVIDER_TYPE` u
42
42
  | `fx_get_timeseries` | Historical daily rates for a currency pair over a date range, never including a date outside it. Short ranges (≤90 days) are returned inline; when DataCanvas is enabled, long ranges spill to it with a `canvas_id` for SQL follow-up. |
43
43
  | `fx_dataframe_describe` | List DataCanvas tables and their columns from a prior `fx_get_timeseries` call. Required first step before `fx_dataframe_query`. Needs `CANVAS_PROVIDER_TYPE=duckdb`. |
44
44
  | `fx_dataframe_query` | Run a read-only SQL SELECT against a DataCanvas table produced by `fx_get_timeseries`. Supports aggregations, GROUP BY, window functions, and JOINs across multiple registered tables. Needs `CANVAS_PROVIDER_TYPE=duckdb`. |
45
+ | `fx_dataframe_drop` | Permanently remove one staged table or view from a DataCanvas. Deletes staged analytical data only — ECB rate data is untouched and the series can be re-staged. Needs `CANVAS_PROVIDER_TYPE=duckdb` and `FX_ENABLE_CANVAS_DROP=true`; disabled otherwise. |
45
46
 
46
47
  ### `fx_list_currencies`
47
48
 
@@ -286,9 +287,11 @@ All configuration is validated at startup via Zod schemas. Environment variables
286
287
  |:---------|:------------|:--------|
287
288
  | `FRANKFURTER_BASE_URL` | Frankfurter API base URL. Override for local testing or a self-hosted instance. | `https://api.frankfurter.dev/v1` |
288
289
  | `FX_TIMESERIES_CANVAS_THRESHOLD_DAYS` | Day range above which `fx_get_timeseries` spills to DataCanvas, when one is configured. | `90` |
289
- | `CANVAS_PROVIDER_TYPE` | Canvas engine. Set to `duckdb` to enable DataCanvas for `fx_get_timeseries` long-range spillover and to register the two `fx_dataframe_*` tools. At `none` they are skipped from `tools/list`. | `none` |
290
+ | `FX_ENABLE_CANVAS_DROP` | Enable the destructive `fx_dataframe_drop` tool. Off by default: the tool stays listed with its enable hint but is uncallable. | `false` |
291
+ | `CANVAS_PROVIDER_TYPE` | Canvas engine. Set to `duckdb` to enable DataCanvas for `fx_get_timeseries` long-range spillover and to register the three `fx_dataframe_*` tools. At `none` they are skipped from `tools/list`. | `none` |
290
292
  | `MCP_TRANSPORT_TYPE` | Transport: `stdio` or `http`. | `stdio` |
291
293
  | `MCP_HTTP_PORT` | Port for HTTP server. | `3010` |
294
+ | `MCP_SESSION_MODE` | HTTP session mode: `auto`, `stateful`, or `stateless`. `.env.example` and the Dockerfile both set `stateless` — no handler here asks the client for input mid-call, so nothing needs a session to resume. | `auto` (resolves to `stateful`) |
292
295
  | `MCP_AUTH_MODE` | Auth mode: `none`, `jwt`, or `oauth`. | `none` |
293
296
  | `MCP_LOG_LEVEL` | Log level (RFC 5424: `debug`, `info`, `notice`, `warning`, `error`). | `info` |
294
297
  | `OTEL_ENABLED` | Enable [OpenTelemetry instrumentation](https://github.com/cyanheads/mcp-ts-core/tree/main/docs/telemetry). | `false` |
@@ -0,0 +1,41 @@
1
+ ---
2
+ summary: "Adds the opt-in fx_dataframe_drop tool and moves to @cyanheads/mcp-ts-core 0.12.3, whose SDK v2 wire tightening rejects an undeclared tool argument by name instead of silently stripping it."
3
+ breaking: true
4
+ security: false
5
+ ---
6
+
7
+ # 0.3.0 — 2026-08-24
8
+
9
+ ## Added
10
+
11
+ - **`fx_dataframe_drop`** removes one table or view staged on a DataCanvas by `fx_get_timeseries`. Staged analytical data only — ECB rate data is untouched and the series can be re-staged. Needs `CANVAS_PROVIDER_TYPE=duckdb` and `FX_ENABLE_CANVAS_DROP=true`; with the flag off the tool stays listed and answers uncallable, carrying its enable hint.
12
+ - **`FX_ENABLE_CANVAS_DROP`** (default `false`) — the opt-in for the one destructive verb on the canvas surface. Declared in `.env.example` and in both `server.json` package entries.
13
+ - **`.github/CONTRIBUTING.md` and `.github/CODE_OF_CONDUCT.md`** — issue-first contribution guidance, including how to tell a bug in this server from one in `@cyanheads/mcp-ts-core`.
14
+
15
+ ## Changed
16
+
17
+ The five wire-level changes below arrive with `@cyanheads/mcp-ts-core` 0.12.3 and its MCP SDK v2 adoption. They are visible to any client already talking to this server.
18
+
19
+ - **An undeclared root-level argument key is rejected by name** instead of being stripped: a call carrying `bogus_key` now fails with `Unrecognized key: "bogus_key"`, and every tool's advertised `inputSchema` says so with `additionalProperties: false`. A caller that was sending stray keys must stop. Root level only — nested objects still strip.
20
+ - **Advertised JSON Schema is the 2020-12 dialect**, not draft-07.
21
+ - **The advertised `outputSchema` declares the error envelope** as an `anyOf` success/error union, so a client that validates `structuredContent` without first checking `isError` stops rejecting error results.
22
+ - **Tool input-validation failures read as flat `path: message` sentences**, not a serialized Zod issue blob.
23
+ - **MCP protocol revision `2026-07-28` is served on the HTTP endpoints** alongside the 2025-era revisions.
24
+ - **`MCP_SESSION_MODE=stateless` is what ships.** `.env.example` now agrees with the Dockerfile, which already set it — no handler here asks the caller for input mid-call, so nothing needs a session to resume. The file also documents the schema default (`auto`, resolving to `stateful`) and the stateful-only `MCP_HTTP_RESUMABILITY*` knobs.
25
+ - **Bun 1.4.0** in both `Dockerfile` stages and `packageManager`.
26
+ - **`tsconfig.json` typechecks `tests/`** for the first time; emit settings moved to `tsconfig.build.json`.
27
+
28
+ ## Fixed
29
+
30
+ - **The outbound Frankfurter `User-Agent` reports the running version.** It was the literal `exchange-rates-mcp-server/0.1.5`, four releases stale; it now reads `config.mcpServerVersion`.
31
+ - **`docs/design.md`'s error-contract table matches the code.** Every row declaring `InvalidParams` is `ValidationError` as built, and the `invalid_date_format`, `upstream_no_data`, and `missing_table` reasons the tools already throw were absent from the table.
32
+ - **`bun run tree` no longer lists ignored directories.** A directory-only ignore pattern matches only a path carrying the trailing slash, so `.agents/` and `.claude/` were surviving the filter.
33
+
34
+ ## Dependencies
35
+
36
+ - `@cyanheads/mcp-ts-core` ^0.11.0 → 0.12.3 (exact pin — 0.12.0 is the breaking SDK v2 migration)
37
+ - `@duckdb/node-api` ^1.5.5-r.1 → ^1.5.5-r.4
38
+ - `@biomejs/biome` 2.5.5 → 2.5.10
39
+ - `@types/node` 26.1.1 → 26.2.0
40
+ - `tsc-alias` ^1.9.1 → ^1.9.2
41
+ - `vitest` ^4.1.10 → ^4.1.11
@@ -4,10 +4,11 @@
4
4
  # to author a new release. Set that file's H1 to `# <version> — YYYY-MM-DD`
5
5
  # with a concrete date.
6
6
 
7
- # Required. One-line GitHub Release-style headline. 350 character cap.
8
- # Default short and scannable. Don't pad, don't stitch unrelated changes with
9
- # semicolons pick the headline. Quotes required: unquoted YAML treats `: `
10
- # inside the value as a key separator and fails GitHub's strict parser.
7
+ # Required. One-line GitHub Release-style headline. 350 character cap — a
8
+ # ceiling, not a target. Default short and scannable. Don't pad, don't stitch
9
+ # unrelated changes with commas/semicolons into an inventory pick the
10
+ # headline, like a tag's theme line. Quotes required: unquoted YAML treats
11
+ # `: ` inside the value as a key separator and fails GitHub's strict parser.
11
12
  summary: ""
12
13
 
13
14
  # Set `true` when consumers must change code to upgrade: API removals,
@@ -24,9 +25,10 @@ security: false
24
25
 
25
26
  # Optional free-form notes for maintenance agents processing this release.
26
27
  # Not rendered in CHANGELOG — consumed by agents running `maintenance` on
27
- # downstream servers. Use for adoption instructions that don't fit the
28
- # human-facing sections: new files to create, fields to populate, one-time
29
- # migration steps. Omit the field entirely when there's nothing to say.
28
+ # downstream servers. ADOPTION STEPS ONLY new files to create, fields to
29
+ # populate, one-time migration steps. Never a second rendering of the body:
30
+ # if a body bullet already says it, name the bullet's symbol instead of
31
+ # re-explaining. Omit the field entirely when there's nothing to say.
30
32
  # agent-notes: |
31
33
  # <instructions for downstream maintenance agents>
32
34
  ---
@@ -41,17 +43,54 @@ security: false
41
43
  each bullet with the symbol or concept name in **bold** so they can skip
42
44
  what's irrelevant and zoom in on what's not.
43
45
 
44
- Tone: terse, fact-dense, not verbose. Default to one sentence per bullet —
45
- name the symbol, state what changed, stop. Use a second sentence only when
46
- it carries weight. If a bullet feels long, it is.
47
-
48
- Cut: mechanism walkthroughs (those belong in JSDoc, CLAUDE.md/AGENTS.md, or the
49
- relevant skill), ceremonial framings ("This release introduces…",
50
- backwards-compat paragraphs), file-by-file test enumerations, internal
51
- implementation notes. Prefer code/symbol names over English re-explanations.
46
+ Tone: terse, fact-dense, not verbose. Bullet shape: **symbol** + what
47
+ changed + at most one consumer-facing caveat. One sentence by default, two
48
+ when the second carries weight a bullet past ~40 words or three sentences
49
+ is wrong. The depth lives one hop away: the linked issue carries the why,
50
+ the commit diff carries the how. The changelog names what changed and what
51
+ a consumer does about it; a reader who wants mechanism opens the link.
52
+
53
+ Model length on THIS guide, never on the previous entry — entries modeled
54
+ on entries compound.
55
+
56
+ Cut (each has shipped as a wall of text; these are the cruft):
57
+ - History/justification narration — how the bug worked, why the old
58
+ behavior was wrong. One short clause at most; the issue carries the story.
59
+ - Design-rationale defense — "chosen over Y because…", "guarding the
60
+ getter is not enough…". That is the author arguing with a reviewer;
61
+ reviewers read the PR, not the changelog.
62
+ - Defensive unchanged-clauses — "X is unchanged", "byte-identical to
63
+ <prev>". Keep one only where its absence would cause a real misread,
64
+ as a short parenthetical.
65
+ - Edge-case inventories — marker lists, not-flagged lists, escape tables.
66
+ Tests and the issue carry those.
67
+ - Mechanism walkthroughs (JSDoc, CLAUDE.md/AGENTS.md, or the relevant
68
+ skill own those), ceremonial framings ("This release introduces…"),
69
+ backwards-compat paragraphs, file-by-file test enumerations. Prefer
70
+ code/symbol names over English re-explanations.
71
+
72
+ Verified ≠ included: the every-claim-verified-from-the-diff rule bounds
73
+ the TRUTH of what you write, never the AMOUNT.
74
+
75
+ Example — same fact, right size:
76
+
77
+ TOO LONG: **`fetchWithTimeout`'s `timeoutMs` bounds the whole exchange**
78
+ (#341). `fetch` resolves once headers arrive and the deadline was
79
+ cleared as the helper returned, so a peer that answered promptly and
80
+ then stalled the stream held the request open indefinitely. A 2xx
81
+ carrying a body now comes back as a passthrough wrapper that disarms
82
+ the deadline when the body closes, errors, or is cancelled; …
83
+ [+90 more words of mechanism and edge cases]
84
+
85
+ RIGHT: **`fetchWithTimeout`'s `timeoutMs` now bounds the whole
86
+ exchange, not just the headers** (#341). A stalled body aborts with
87
+ the same `Timeout` error; the returned `Response` is a wrapper, so
88
+ identity assertions (`toBe(response)`) no longer hold.
52
89
 
53
90
  Narrative intro: skip by default. Add one short sentence only when the
54
- release theme genuinely needs framing the bullets can't carry.
91
+ release theme genuinely needs framing the bullets can't carry. When many
92
+ bullets share one upgrade consequence, state it ONCE — intro line or
93
+ agent-notes — never per bullet.
55
94
 
56
95
  Sections: Keep a Changelog order — Added, Changed, Deprecated, Removed,
57
96
  Fixed, Security. Include only sections with entries; delete the rest
@@ -6,6 +6,7 @@ import { z } from '@cyanheads/mcp-ts-core';
6
6
  declare const ServerConfigSchema: z.ZodObject<{
7
7
  frankfurterBaseUrl: z.ZodDefault<z.ZodString>;
8
8
  timeseriesCanvasThresholdDays: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
9
+ enableCanvasDrop: z.ZodDefault<z.ZodCodec<z.ZodString, z.ZodBoolean>>;
9
10
  }, z.core.$strip>;
10
11
  /** Return the parsed, validated server config (lazy-init on first call). */
11
12
  export declare function getServerConfig(): z.infer<typeof ServerConfigSchema>;
@@ -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;;;iBAYtB,CAAC;AAIH,4EAA4E;AAC5E,wBAAgB,eAAe,IAAI,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAMpE"}
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;;;;iBAgBtB,CAAC;AAIH,4EAA4E;AAC5E,wBAAgB,eAAe,IAAI,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAOpE"}
@@ -14,6 +14,10 @@ const ServerConfigSchema = z.object({
14
14
  .number()
15
15
  .default(90)
16
16
  .describe('Day count above which fx_get_timeseries spills the result to DataCanvas instead of inlining.'),
17
+ enableCanvasDrop: z
18
+ .stringbool()
19
+ .default(false)
20
+ .describe('Enable fx_dataframe_drop, which destructively removes a staged DataCanvas table.'),
17
21
  });
18
22
  let _config;
19
23
  /** Return the parsed, validated server config (lazy-init on first call). */
@@ -21,6 +25,7 @@ export function getServerConfig() {
21
25
  _config ??= parseEnvConfig(ServerConfigSchema, {
22
26
  frankfurterBaseUrl: 'FRANKFURTER_BASE_URL',
23
27
  timeseriesCanvasThresholdDays: 'FX_TIMESERIES_CANVAS_THRESHOLD_DAYS',
28
+ enableCanvasDrop: 'FX_ENABLE_CANVAS_DROP',
24
29
  });
25
30
  return _config;
26
31
  }
@@ -1 +1 @@
1
- {"version":3,"file":"server-config.js","sourceRoot":"","sources":["../../src/config/server-config.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,wBAAwB,CAAC;AAC3C,OAAO,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAC;AAE/D,MAAM,kBAAkB,GAAG,CAAC,CAAC,MAAM,CAAC;IAClC,kBAAkB,EAAE,CAAC;SAClB,MAAM,EAAE;SACR,GAAG,EAAE;SACL,OAAO,CAAC,gCAAgC,CAAC;SACzC,QAAQ,CAAC,gFAAgF,CAAC;IAC7F,6BAA6B,EAAE,CAAC,CAAC,MAAM;SACpC,MAAM,EAAE;SACR,OAAO,CAAC,EAAE,CAAC;SACX,QAAQ,CACP,8FAA8F,CAC/F;CACJ,CAAC,CAAC;AAEH,IAAI,OAAuD,CAAC;AAE5D,4EAA4E;AAC5E,MAAM,UAAU,eAAe;IAC7B,OAAO,KAAK,cAAc,CAAC,kBAAkB,EAAE;QAC7C,kBAAkB,EAAE,sBAAsB;QAC1C,6BAA6B,EAAE,qCAAqC;KACrE,CAAC,CAAC;IACH,OAAO,OAAO,CAAC;AACjB,CAAC"}
1
+ {"version":3,"file":"server-config.js","sourceRoot":"","sources":["../../src/config/server-config.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,wBAAwB,CAAC;AAC3C,OAAO,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAC;AAE/D,MAAM,kBAAkB,GAAG,CAAC,CAAC,MAAM,CAAC;IAClC,kBAAkB,EAAE,CAAC;SAClB,MAAM,EAAE;SACR,GAAG,EAAE;SACL,OAAO,CAAC,gCAAgC,CAAC;SACzC,QAAQ,CAAC,gFAAgF,CAAC;IAC7F,6BAA6B,EAAE,CAAC,CAAC,MAAM;SACpC,MAAM,EAAE;SACR,OAAO,CAAC,EAAE,CAAC;SACX,QAAQ,CACP,8FAA8F,CAC/F;IACH,gBAAgB,EAAE,CAAC;SAChB,UAAU,EAAE;SACZ,OAAO,CAAC,KAAK,CAAC;SACd,QAAQ,CAAC,kFAAkF,CAAC;CAChG,CAAC,CAAC;AAEH,IAAI,OAAuD,CAAC;AAE5D,4EAA4E;AAC5E,MAAM,UAAU,eAAe;IAC7B,OAAO,KAAK,cAAc,CAAC,kBAAkB,EAAE;QAC7C,kBAAkB,EAAE,sBAAsB;QAC1C,6BAA6B,EAAE,qCAAqC;QACpE,gBAAgB,EAAE,uBAAuB;KAC1C,CAAC,CAAC;IACH,OAAO,OAAO,CAAC;AACjB,CAAC"}
package/dist/index.js CHANGED
@@ -6,7 +6,7 @@
6
6
  import { createApp, disabledTool } from '@cyanheads/mcp-ts-core';
7
7
  import { config } from '@cyanheads/mcp-ts-core/config';
8
8
  import { fxCurrenciesResource, fxRatesLatestResource, } from './mcp-server/resources/definitions/index.js';
9
- import { fxConvertCurrency, fxDataframeDescribe, fxDataframeQuery, fxGetRate, fxGetRates, fxGetTimeseries, fxListCurrencies, } from './mcp-server/tools/definitions/index.js';
9
+ import { fxConvertCurrency, fxDataframeDescribe, fxDataframeDrop, fxDataframeQuery, fxGetRate, fxGetRates, fxGetTimeseries, fxListCurrencies, } from './mcp-server/tools/definitions/index.js';
10
10
  import { setCanvas } from './services/canvas/canvas-accessor.js';
11
11
  /**
12
12
  * The dataframe tools are useless without a canvas to read — every call fails
@@ -31,6 +31,7 @@ await createApp({
31
31
  fxGetTimeseries,
32
32
  canvasEnabled ? fxDataframeDescribe : disabledTool(fxDataframeDescribe, canvasGate),
33
33
  canvasEnabled ? fxDataframeQuery : disabledTool(fxDataframeQuery, canvasGate),
34
+ canvasEnabled ? fxDataframeDrop : disabledTool(fxDataframeDrop, canvasGate),
34
35
  ],
35
36
  resources: [fxCurrenciesResource, fxRatesLatestResource],
36
37
  prompts: [],
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,YAAY,EAAE,MAAM,wBAAwB,CAAC;AACjE,OAAO,EAAE,MAAM,EAAE,MAAM,+BAA+B,CAAC;AACvD,OAAO,EACL,oBAAoB,EACpB,qBAAqB,GACtB,MAAM,6CAA6C,CAAC;AACrD,OAAO,EACL,iBAAiB,EACjB,mBAAmB,EACnB,gBAAgB,EAChB,SAAS,EACT,UAAU,EACV,eAAe,EACf,gBAAgB,GACjB,MAAM,yCAAyC,CAAC;AACjD,OAAO,EAAE,SAAS,EAAE,MAAM,sCAAsC,CAAC;AAEjE;;;;;;GAMG;AACH,MAAM,aAAa,GAAG,MAAM,CAAC,MAAM,CAAC,YAAY,KAAK,MAAM,CAAC;AAC5D,MAAM,UAAU,GAAG;IACjB,IAAI,EAAE,6BAA6B;IACnC,MAAM,EAAE,wFAAwF;CACxF,CAAC;AAEX,MAAM,SAAS,CAAC;IACd,IAAI,EAAE,2BAA2B;IACjC,KAAK,EAAE,2BAA2B;IAClC,KAAK,EAAE;QACL,gBAAgB;QAChB,UAAU;QACV,SAAS;QACT,iBAAiB;QACjB,eAAe;QACf,aAAa,CAAC,CAAC,CAAC,mBAAmB,CAAC,CAAC,CAAC,YAAY,CAAC,mBAAmB,EAAE,UAAU,CAAC;QACnF,aAAa,CAAC,CAAC,CAAC,gBAAgB,CAAC,CAAC,CAAC,YAAY,CAAC,gBAAgB,EAAE,UAAU,CAAC;KAC9E;IACD,SAAS,EAAE,CAAC,oBAAoB,EAAE,qBAAqB,CAAC;IACxD,OAAO,EAAE,EAAE;IAEX,YAAY,EACV,4FAA4F;QAC5F,uEAAuE;QACvE,mFAAmF;QACnF,4EAA4E;QAC5E,uGAAuG;QACvG,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xD,OAAO,EAAE,EAAE;IAEX,YAAY,EACV,4FAA4F;QAC5F,uEAAuE;QACvE,mFAAmF;QACnF,4EAA4E;QAC5E,uGAAuG;QACvG,iHAAiH;IAEnH,KAAK,CAAC,IAAI;QACR,SAAS,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;IACzB,CAAC;CACF,CAAC,CAAC"}
@@ -0,0 +1,31 @@
1
+ /**
2
+ * @fileoverview fx_dataframe_drop — remove one staged table or view from a DataCanvas.
3
+ * @module mcp-server/tools/definitions/fx-dataframe-drop.tool
4
+ */
5
+ import { z } from '@cyanheads/mcp-ts-core';
6
+ import { JsonRpcErrorCode } from '@cyanheads/mcp-ts-core/errors';
7
+ /**
8
+ * Deletion is the one destructive verb on the canvas surface, so it ships
9
+ * disabled: the tool stays visible in the manifest carrying its enable hint,
10
+ * and answers uncallable until an operator opts in.
11
+ */
12
+ export declare const fxDataframeDrop: import("@cyanheads/mcp-ts-core").ToolDefinition<z.ZodObject<{
13
+ canvas_id: z.ZodString;
14
+ table_name: z.ZodString;
15
+ }, z.core.$strip>, z.ZodObject<{
16
+ canvas_id: z.ZodString;
17
+ table_name: z.ZodString;
18
+ dropped: z.ZodBoolean;
19
+ }, z.core.$strip>, readonly [{
20
+ readonly reason: "canvas_not_found";
21
+ readonly code: JsonRpcErrorCode.NotFound;
22
+ readonly when: "canvas_id does not exist or has been evicted.";
23
+ readonly recovery: "Re-run fx_get_timeseries to obtain a fresh canvas_id.";
24
+ }, {
25
+ readonly reason: "canvas_unavailable";
26
+ readonly code: JsonRpcErrorCode.ServiceUnavailable;
27
+ readonly retryable: false;
28
+ readonly when: "DataCanvas is not configured on this deployment.";
29
+ readonly recovery: "Self-hosted operators can enable DataCanvas by setting CANVAS_PROVIDER_TYPE=duckdb.";
30
+ }], undefined>;
31
+ //# sourceMappingURL=fx-dataframe-drop.tool.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fx-dataframe-drop.tool.d.ts","sourceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/fx-dataframe-drop.tool.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAsB,CAAC,EAAE,MAAM,wBAAwB,CAAC;AAC/D,OAAO,EAAE,gBAAgB,EAAY,MAAM,+BAA+B,CAAC;AAoG3E;;;;GAIG;AACH,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;cAKtB,CAAC"}
@@ -0,0 +1,97 @@
1
+ /**
2
+ * @fileoverview fx_dataframe_drop — remove one staged table or view from a DataCanvas.
3
+ * @module mcp-server/tools/definitions/fx-dataframe-drop.tool
4
+ */
5
+ import { disabledTool, tool, z } from '@cyanheads/mcp-ts-core';
6
+ import { JsonRpcErrorCode, McpError } from '@cyanheads/mcp-ts-core/errors';
7
+ import { getServerConfig } from '../../../config/server-config.js';
8
+ import { getCanvas } from '../../../services/canvas/canvas-accessor.js';
9
+ const fxDataframeDropDefinition = tool('fx_dataframe_drop', {
10
+ description: 'Permanently remove one table or view staged on a DataCanvas by fx_get_timeseries. ' +
11
+ 'This deletes staged analytical data only; ECB rate data is never affected and the same ' +
12
+ 'series can be re-staged by re-running fx_get_timeseries. ' +
13
+ 'Call fx_dataframe_describe first to get the exact table name. ' +
14
+ 'Disabled unless the deployment sets FX_ENABLE_CANVAS_DROP=true.',
15
+ annotations: {
16
+ readOnlyHint: false,
17
+ destructiveHint: true,
18
+ idempotentHint: true,
19
+ openWorldHint: false,
20
+ },
21
+ input: z.object({
22
+ canvas_id: z
23
+ .string()
24
+ .describe('Canvas ID returned by fx_get_timeseries. ' +
25
+ 'Re-run fx_get_timeseries to obtain a fresh canvas_id if this one has expired.'),
26
+ table_name: z
27
+ .string()
28
+ .describe('Exact table or view name as returned by fx_dataframe_describe.'),
29
+ }),
30
+ output: z.object({
31
+ canvas_id: z.string().describe('The canvas ID the table or view was removed from.'),
32
+ table_name: z.string().describe('The requested table or view name.'),
33
+ dropped: z
34
+ .boolean()
35
+ .describe('True when the table or view existed and was removed; false when it was absent.'),
36
+ }),
37
+ errors: [
38
+ {
39
+ reason: 'canvas_not_found',
40
+ code: JsonRpcErrorCode.NotFound,
41
+ when: 'canvas_id does not exist or has been evicted.',
42
+ recovery: 'Re-run fx_get_timeseries to obtain a fresh canvas_id.',
43
+ },
44
+ {
45
+ reason: 'canvas_unavailable',
46
+ code: JsonRpcErrorCode.ServiceUnavailable,
47
+ retryable: false,
48
+ when: 'DataCanvas is not configured on this deployment.',
49
+ recovery: 'Self-hosted operators can enable DataCanvas by setting CANVAS_PROVIDER_TYPE=duckdb.',
50
+ },
51
+ ],
52
+ async handler(input, ctx) {
53
+ const canvas = getCanvas();
54
+ if (!canvas) {
55
+ throw ctx.fail('canvas_unavailable', 'DataCanvas is not enabled. Set CANVAS_PROVIDER_TYPE=duckdb to use fx_dataframe_drop.', { ...ctx.recoveryFor('canvas_unavailable') });
56
+ }
57
+ let dropped;
58
+ try {
59
+ const instance = await canvas.acquire(input.canvas_id, ctx);
60
+ dropped = await instance.drop(input.table_name);
61
+ }
62
+ catch (err) {
63
+ /** The canvas layer stamps a contract `reason` on its own throws — read that, don't match prose. */
64
+ const reason = err instanceof McpError ? err.data?.reason : undefined;
65
+ if (reason === 'canvas_not_found') {
66
+ throw ctx.fail('canvas_not_found', `Canvas "${input.canvas_id}" not found or has expired.`, { ...ctx.recoveryFor('canvas_not_found') });
67
+ }
68
+ throw err;
69
+ }
70
+ ctx.log.info('Dropped canvas table', {
71
+ canvasId: input.canvas_id,
72
+ tableName: input.table_name,
73
+ dropped,
74
+ });
75
+ return { canvas_id: input.canvas_id, table_name: input.table_name, dropped };
76
+ },
77
+ format: (result) => [
78
+ {
79
+ type: 'text',
80
+ text: result.dropped
81
+ ? `Dropped \`${result.table_name}\` from canvas \`${result.canvas_id}\`.`
82
+ : `No table or view named \`${result.table_name}\` exists on canvas \`${result.canvas_id}\` — nothing to drop.`,
83
+ },
84
+ ],
85
+ });
86
+ /**
87
+ * Deletion is the one destructive verb on the canvas surface, so it ships
88
+ * disabled: the tool stays visible in the manifest carrying its enable hint,
89
+ * and answers uncallable until an operator opts in.
90
+ */
91
+ export const fxDataframeDrop = getServerConfig().enableCanvasDrop
92
+ ? fxDataframeDropDefinition
93
+ : disabledTool(fxDataframeDropDefinition, {
94
+ reason: 'DataCanvas table deletion is disabled on this deployment.',
95
+ hint: 'FX_ENABLE_CANVAS_DROP=true',
96
+ });
97
+ //# sourceMappingURL=fx-dataframe-drop.tool.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fx-dataframe-drop.tool.js","sourceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/fx-dataframe-drop.tool.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,YAAY,EAAE,IAAI,EAAE,CAAC,EAAE,MAAM,wBAAwB,CAAC;AAC/D,OAAO,EAAE,gBAAgB,EAAE,QAAQ,EAAE,MAAM,+BAA+B,CAAC;AAC3E,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAC5D,OAAO,EAAE,SAAS,EAAE,MAAM,sCAAsC,CAAC;AAEjE,MAAM,yBAAyB,GAAG,IAAI,CAAC,mBAAmB,EAAE;IAC1D,WAAW,EACT,oFAAoF;QACpF,yFAAyF;QACzF,2DAA2D;QAC3D,gEAAgE;QAChE,iEAAiE;IACnE,WAAW,EAAE;QACX,YAAY,EAAE,KAAK;QACnB,eAAe,EAAE,IAAI;QACrB,cAAc,EAAE,IAAI;QACpB,aAAa,EAAE,KAAK;KACrB;IACD,KAAK,EAAE,CAAC,CAAC,MAAM,CAAC;QACd,SAAS,EAAE,CAAC;aACT,MAAM,EAAE;aACR,QAAQ,CACP,2CAA2C;YACzC,+EAA+E,CAClF;QACH,UAAU,EAAE,CAAC;aACV,MAAM,EAAE;aACR,QAAQ,CAAC,gEAAgE,CAAC;KAC9E,CAAC;IACF,MAAM,EAAE,CAAC,CAAC,MAAM,CAAC;QACf,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,C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IAAI,CACZ,kBAAkB,EAClB,WAAW,KAAK,CAAC,SAAS,6BAA6B,EACvD,EAAE,GAAG,GAAG,CAAC,WAAW,CAAC,kBAAkB,CAAC,EAAE,CAC3C,CAAC;YACJ,CAAC;YACD,MAAM,GAAG,CAAC;QACZ,CAAC;QAED,GAAG,CAAC,GAAG,CAAC,IAAI,CAAC,sBAAsB,EAAE;YACnC,QAAQ,EAAE,KAAK,CAAC,SAAS;YACzB,SAAS,EAAE,KAAK,CAAC,UAAU;YAC3B,OAAO;SACR,CAAC,CAAC;QAEH,OAAO,EAAE,SAAS,EAAE,KAAK,CAAC,SAAS,EAAE,UAAU,EAAE,KAAK,CAAC,UAAU,EAAE,OAAO,EAAE,CAAC;IAC/E,CAAC;IAED,MAAM,EAAE,CAAC,MAAM,EAAE,EAAE,CAAC;QAClB;YACE,IAAI,EAAE,MAAM;YACZ,IAAI,EAAE,MAAM,CAAC,OAAO;gBAClB,CAAC,CAAC,aAAa,MAAM,CAAC,UAAU,oBAAoB,MAAM,CAAC,SAAS,KAAK;gBACzE,CAAC,CAAC,4BAA4B,MAAM,CAAC,UAAU,yBAAyB,MAAM,CAAC,SAAS,uBAAuB;SAClH;KACF;CACF,CAAC,CAAC;AAEH;;;;GAIG;AACH,MAAM,CAAC,MAAM,eAAe,GAAG,eAAe,EAAE,CAAC,gBAAgB;IAC/D,CAAC,CAAC,yBAAyB;IAC3B,CAAC,CAAC,YAAY,CAAC,yBAAyB,EAAE;QACtC,MAAM,EAAE,2DAA2D;QACnE,IAAI,EAAE,4BAA4B;KACnC,CAAC,CAAC"}
@@ -4,6 +4,7 @@
4
4
  */
5
5
  export { fxConvertCurrency } from './fx-convert-currency.tool.js';
6
6
  export { fxDataframeDescribe } from './fx-dataframe-describe.tool.js';
7
+ export { fxDataframeDrop } from './fx-dataframe-drop.tool.js';
7
8
  export { fxDataframeQuery } from './fx-dataframe-query.tool.js';
8
9
  export { fxGetRate } from './fx-get-rate.tool.js';
9
10
  export { fxGetRates } from './fx-get-rates.tool.js';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAClE,OAAO,EAAE,mBAAmB,EAAE,MAAM,iCAAiC,CAAC;AACtE,OAAO,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAChE,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAClD,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AACpD,OAAO,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAC;AAC9D,OAAO,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAClE,OAAO,EAAE,mBAAmB,EAAE,MAAM,iCAAiC,CAAC;AACtE,OAAO,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAC;AAC9D,OAAO,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAChE,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAClD,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AACpD,OAAO,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAC;AAC9D,OAAO,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC"}
@@ -4,6 +4,7 @@
4
4
  */
5
5
  export { fxConvertCurrency } from './fx-convert-currency.tool.js';
6
6
  export { fxDataframeDescribe } from './fx-dataframe-describe.tool.js';
7
+ export { fxDataframeDrop } from './fx-dataframe-drop.tool.js';
7
8
  export { fxDataframeQuery } from './fx-dataframe-query.tool.js';
8
9
  export { fxGetRate } from './fx-get-rate.tool.js';
9
10
  export { fxGetRates } from './fx-get-rates.tool.js';
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAClE,OAAO,EAAE,mBAAmB,EAAE,MAAM,iCAAiC,CAAC;AACtE,OAAO,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAChE,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAClD,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AACpD,OAAO,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAC;AAC9D,OAAO,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAClE,OAAO,EAAE,mBAAmB,EAAE,MAAM,iCAAiC,CAAC;AACtE,OAAO,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAC;AAC9D,OAAO,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAChE,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAClD,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AACpD,OAAO,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAC;AAC9D,OAAO,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC"}
@@ -16,6 +16,12 @@ export declare function getFrankfurterService(): FrankfurterService;
16
16
  export declare function resetFrankfurterService(): void;
17
17
  declare class FrankfurterService {
18
18
  private readonly baseUrl;
19
+ /**
20
+ * Polite identifier sent on every Frankfurter request. The version comes from the
21
+ * framework's resolved config — sourced from package.json — so it cannot drift from
22
+ * the released version the way a hardcoded string does.
23
+ */
24
+ private readonly userAgent;
19
25
  private currencyCache?;
20
26
  constructor();
21
27
  /** Fetch all supported currencies as a sorted array. Served from the day-long cache. */
@@ -1 +1 @@
1
- {"version":3,"file":"frankfurter-service.d.ts","sourceRoot":"","sources":["../../../src/services/frankfurter/frankfurter-service.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAMH,OAAO,KAAK,EACV,QAAQ,EAER,uBAAuB,EAEvB,YAAY,EAEZ,gBAAgB,EACjB,MAAM,YAAY,CAAC;AAEpB,6EAA6E;AAC7E,QAAA,MAAM,cAAc,eAAe,CAAC;AAQpC;;;GAGG;AACH,wBAAgB,SAAS,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAIhD;AAkBD,6DAA6D;AAC7D,wBAAgB,qBAAqB,IAAI,kBAAkB,CAG1D;AAED,2CAA2C;AAC3C,wBAAgB,uBAAuB,IAAI,IAAI,CAE9C;AAED,cAAM,kBAAkB;IACtB,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAS;IACjC,OAAO,CAAC,aAAa,CAAC,CAA8D;IAEpF,cAEC;IAID,wFAAwF;IAClF,cAAc,IAAI,OAAO,CAAC,QAAQ,EAAE,CAAC,CAE1C;IAED,kFAAkF;YACpE,UAAU;IAaxB;;;;OAIG;YACW,yBAAyB;IAQvC;;;;;;;;;;;;;;;;;;OAkBG;IACG,OAAO,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,YAAY,CAAC,CAgC9E;IAID;;;;;;;OAOG;IACG,QAAQ,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,uBAAuB,CAAC,CA0B/F;IAID;;;;;;;;;;;;;;;OAeG;IACG,aAAa,CACjB,IAAI,EAAE,MAAM,EACZ,KAAK,EAAE,MAAM,EACb,SAAS,EAAE,MAAM,EACjB,OAAO,EAAE,MAAM,GACd,OAAO,CAAC,gBAAgB,CAAC,CAyC3B;IAID,OAAO,CAAC,SAAS;CAsClB;AAED,OAAO,EAAE,cAAc,EAAE,CAAC"}
1
+ {"version":3,"file":"frankfurter-service.d.ts","sourceRoot":"","sources":["../../../src/services/frankfurter/frankfurter-service.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAOH,OAAO,KAAK,EACV,QAAQ,EAER,uBAAuB,EAEvB,YAAY,EAEZ,gBAAgB,EACjB,MAAM,YAAY,CAAC;AAEpB,6EAA6E;AAC7E,QAAA,MAAM,cAAc,eAAe,CAAC;AAQpC;;;GAGG;AACH,wBAAgB,SAAS,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAIhD;AAkBD,6DAA6D;AAC7D,wBAAgB,qBAAqB,IAAI,kBAAkB,CAG1D;AAED,2CAA2C;AAC3C,wBAAgB,uBAAuB,IAAI,IAAI,CAE9C;AAED,cAAM,kBAAkB;IACtB,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAS;IACjC;;;;OAIG;IACH,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAS;IACnC,OAAO,CAAC,aAAa,CAAC,CAA8D;IAEpF,cAGC;IAID,wFAAwF;IAClF,cAAc,IAAI,OAAO,CAAC,QAAQ,EAAE,CAAC,CAE1C;IAED,kFAAkF;YACpE,UAAU;IAaxB;;;;OAIG;YACW,yBAAyB;IAQvC;;;;;;;;;;;;;;;;;;OAkBG;IACG,OAAO,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,YAAY,CAAC,CAgC9E;IAID;;;;;;;OAOG;IACG,QAAQ,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,uBAAuB,CAAC,CA0B/F;IAID;;;;;;;;;;;;;;;OAeG;IACG,aAAa,CACjB,IAAI,EAAE,MAAM,EACZ,KAAK,EAAE,MAAM,EACb,SAAS,EAAE,MAAM,EACjB,OAAO,EAAE,MAAM,GACd,OAAO,CAAC,gBAAgB,CAAC,CAyC3B;IAID,OAAO,CAAC,SAAS;CAsClB;AAED,OAAO,EAAE,cAAc,EAAE,CAAC"}
@@ -2,6 +2,7 @@
2
2
  * @fileoverview Frankfurter API service — wraps ECB rate data from api.frankfurter.dev.
3
3
  * @module services/frankfurter/frankfurter-service
4
4
  */
5
+ import { config } from '@cyanheads/mcp-ts-core/config';
5
6
  import { serviceUnavailable } from '@cyanheads/mcp-ts-core/errors';
6
7
  import { httpErrorFromResponse, withRetry } from '@cyanheads/mcp-ts-core/utils';
7
8
  import { getServerConfig } from '../../config/server-config.js';
@@ -47,9 +48,16 @@ export function resetFrankfurterService() {
47
48
  }
48
49
  class FrankfurterService {
49
50
  baseUrl;
51
+ /**
52
+ * Polite identifier sent on every Frankfurter request. The version comes from the
53
+ * framework's resolved config — sourced from package.json — so it cannot drift from
54
+ * the released version the way a hardcoded string does.
55
+ */
56
+ userAgent;
50
57
  currencyCache;
51
58
  constructor() {
52
59
  this.baseUrl = getServerConfig().frankfurterBaseUrl;
60
+ this.userAgent = `exchange-rates-mcp-server/${config.mcpServerVersion}`;
53
61
  }
54
62
  // ── Currencies ──────────────────────────────────────────────────────────────
55
63
  /** Fetch all supported currencies as a sorted array. Served from the day-long cache. */
@@ -232,7 +240,7 @@ class FrankfurterService {
232
240
  response = await fetch(url, {
233
241
  headers: {
234
242
  Accept: 'application/json',
235
- 'User-Agent': 'exchange-rates-mcp-server/0.1.5',
243
+ 'User-Agent': this.userAgent,
236
244
  },
237
245
  signal: AbortSignal.timeout(10_000),
238
246
  });
@@ -1 +1 @@
1
- {"version":3,"file":"frankfurter-service.js","sourceRoot":"","sources":["../../../src/services/frankfurter/frankfurter-service.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,kBAAkB,EAA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;YAAC,OAAO,GAAG,EAAE,CAAC;gBACb,MAAM,kBAAkB,CACtB,gCAAiC,GAAa,CAAC,OAAO,EAAE,EACxD,EAAE,GAAG,EAAE,EACP,EAAE,KAAK,EAAE,GAAY,EAAE,CACxB,CAAC;YACJ,CAAC;YAED,IAAI,CAAC,QAAQ,CAAC,EAAE,EAAE,CAAC;gBACjB;;;;;;mBAMG;gBACH,IAAI,QAAQ,CAAC,MAAM,KAAK,GAAG;oBAAE,MAAM,cAAc,CAAC,GAAG,CAAC,CAAC;gBACvD,MAAM,MAAM,qBAAqB,CAAC,QAAQ,EAAE,EAAE,IAAI,EAAE,EAAE,GAAG,EAAE,EAAE,OAAO,EAAE,aAAa,EAAE,CAAC,CAAC;YACzF,CAAC;YAED,OAAO,QAAQ,CAAC,IAAI,EAAgB,CAAC;QACvC,CAAC,EACD,EAAE,UAAU,EAAE,CAAC,EAAE,WAAW,EAAE,GAAG,EAAE,CACpC,CAAC;IACJ,CAAC;CACF;AAED,OAAO,EAAE,cAAc,EAAE,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cyanheads/exchange-rates-mcp-server",
3
- "version": "0.2.1",
3
+ "version": "0.3.0",
4
4
  "mcpName": "io.github.cyanheads/exchange-rates-mcp-server",
5
5
  "description": "Convert currencies, get FX rates, and query historical ECB exchange rate data via MCP. STDIO or Streamable HTTP.",
6
6
  "type": "module",
@@ -78,7 +78,7 @@
78
78
  }
79
79
  ],
80
80
  "license": "Apache-2.0",
81
- "packageManager": "bun@1.3.14",
81
+ "packageManager": "bun@1.4.0",
82
82
  "engines": {
83
83
  "bun": ">=1.3.0",
84
84
  "node": ">=24.0.0"
@@ -87,19 +87,19 @@
87
87
  "access": "public"
88
88
  },
89
89
  "dependencies": {
90
- "@cyanheads/mcp-ts-core": "^0.11.0",
91
- "@duckdb/node-api": "^1.5.5-r.1",
90
+ "@cyanheads/mcp-ts-core": "0.12.3",
91
+ "@duckdb/node-api": "^1.5.5-r.4",
92
92
  "pino-pretty": "^13.1.3",
93
93
  "zod": "^4.4.3"
94
94
  },
95
95
  "devDependencies": {
96
- "@biomejs/biome": "2.5.5",
96
+ "@biomejs/biome": "2.5.10",
97
97
  "@socketsecurity/bun-security-scanner": "^1.1.2",
98
- "@types/node": "26.1.1",
98
+ "@types/node": "26.2.0",
99
99
  "depcheck": "^1.4.7",
100
100
  "ignore": "^7.0.6",
101
- "tsc-alias": "^1.9.1",
101
+ "tsc-alias": "^1.9.2",
102
102
  "typescript": "^7.0.2",
103
- "vitest": "^4.1.10"
103
+ "vitest": "^4.1.11"
104
104
  }
105
105
  }
package/server.json CHANGED
@@ -6,7 +6,7 @@
6
6
  "url": "https://github.com/cyanheads/exchange-rates-mcp-server",
7
7
  "source": "github"
8
8
  },
9
- "version": "0.2.1",
9
+ "version": "0.3.0",
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/exchange-rates-mcp-server",
21
21
  "runtimeHint": "bun",
22
- "version": "0.2.1",
22
+ "version": "0.3.0",
23
23
  "packageArguments": [
24
24
  {
25
25
  "type": "positional",
@@ -45,6 +45,13 @@
45
45
  "isRequired": false,
46
46
  "default": "90"
47
47
  },
48
+ {
49
+ "name": "FX_ENABLE_CANVAS_DROP",
50
+ "description": "Enable fx_dataframe_drop, which permanently removes one staged table or view from a DataCanvas. Disabled by default; the tool stays listed but uncallable until set to true.",
51
+ "format": "string",
52
+ "isRequired": false,
53
+ "default": "false"
54
+ },
48
55
  {
49
56
  "name": "MCP_LOG_LEVEL",
50
57
  "description": "Sets the minimum log level for output (e.g., 'debug', 'info', 'warn').",
@@ -62,7 +69,7 @@
62
69
  "registryBaseUrl": "https://registry.npmjs.org",
63
70
  "identifier": "@cyanheads/exchange-rates-mcp-server",
64
71
  "runtimeHint": "bun",
65
- "version": "0.2.1",
72
+ "version": "0.3.0",
66
73
  "packageArguments": [
67
74
  {
68
75
  "type": "positional",
@@ -88,6 +95,13 @@
88
95
  "isRequired": false,
89
96
  "default": "90"
90
97
  },
98
+ {
99
+ "name": "FX_ENABLE_CANVAS_DROP",
100
+ "description": "Enable fx_dataframe_drop, which permanently removes one staged table or view from a DataCanvas. Disabled by default; the tool stays listed but uncallable until set to true.",
101
+ "format": "string",
102
+ "isRequired": false,
103
+ "default": "false"
104
+ },
91
105
  {
92
106
  "name": "MCP_HTTP_HOST",
93
107
  "description": "The hostname for the HTTP server.",