@cyanheads/whois-mcp-server 0.1.3 → 0.1.5

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.
Files changed (32) hide show
  1. package/AGENTS.md +85 -47
  2. package/CLAUDE.md +85 -47
  3. package/Dockerfile +16 -7
  4. package/LICENSE +1 -1
  5. package/README.md +48 -58
  6. package/changelog/0.1.x/0.1.4.md +38 -0
  7. package/changelog/0.1.x/0.1.5.md +35 -0
  8. package/changelog/template.md +67 -43
  9. package/dist/app.d.ts +199 -0
  10. package/dist/app.d.ts.map +1 -0
  11. package/dist/app.js +47 -0
  12. package/dist/app.js.map +1 -0
  13. package/dist/index.js +2 -33
  14. package/dist/index.js.map +1 -1
  15. package/dist/mcp-server/tools/definitions/whois-get-dns.tool.d.ts +8 -8
  16. package/dist/mcp-server/tools/definitions/whois-lookup-asn.tool.d.ts +2 -0
  17. package/dist/mcp-server/tools/definitions/whois-lookup-asn.tool.d.ts.map +1 -1
  18. package/dist/mcp-server/tools/definitions/whois-lookup-asn.tool.js +2 -0
  19. package/dist/mcp-server/tools/definitions/whois-lookup-asn.tool.js.map +1 -1
  20. package/dist/mcp-server/tools/definitions/whois-lookup-ip.tool.d.ts +2 -0
  21. package/dist/mcp-server/tools/definitions/whois-lookup-ip.tool.d.ts.map +1 -1
  22. package/dist/mcp-server/tools/definitions/whois-lookup-ip.tool.js +2 -0
  23. package/dist/mcp-server/tools/definitions/whois-lookup-ip.tool.js.map +1 -1
  24. package/dist/services/doh/doh-service.d.ts.map +1 -1
  25. package/dist/services/doh/doh-service.js +2 -3
  26. package/dist/services/doh/doh-service.js.map +1 -1
  27. package/dist/services/rdap/rdap-service.d.ts +0 -1
  28. package/dist/services/rdap/rdap-service.d.ts.map +1 -1
  29. package/dist/services/rdap/rdap-service.js +72 -66
  30. package/dist/services/rdap/rdap-service.js.map +1 -1
  31. package/package.json +14 -12
  32. package/server.json +3 -3
package/Dockerfile CHANGED
@@ -4,15 +4,17 @@
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 AS build
7
+ FROM --platform=$BUILDPLATFORM oven/bun:1.4.0 AS build
8
8
 
9
9
  WORKDIR /usr/src/app
10
10
 
11
11
  # Copy dependency manifests for optimized layer caching
12
12
  COPY package.json bun.lock ./
13
13
 
14
- # Install all dependencies (including dev dependencies for building)
15
- RUN bun install --frozen-lockfile
14
+ # Install all dependencies (including dev dependencies for building).
15
+ # The BuildKit cache mount persists Bun's global package cache across builds.
16
+ RUN --mount=type=cache,target=/root/.bun/install/cache \
17
+ bun install --frozen-lockfile --ignore-scripts
16
18
 
17
19
  # Copy the rest of the source code
18
20
  COPY . .
@@ -28,7 +30,7 @@ RUN bun run build
28
30
  # application. It uses a slim base image and only includes production
29
31
  # dependencies and build artifacts.
30
32
  # ==============================================================================
31
- FROM oven/bun:1.3-slim AS production
33
+ FROM oven/bun:1.4.0-slim AS production
32
34
 
33
35
  WORKDIR /usr/src/app
34
36
 
@@ -49,14 +51,21 @@ COPY package.json bun.lock ./
49
51
 
50
52
  # Install only production dependencies, ignoring any lifecycle scripts (like 'prepare')
51
53
  # that are not needed in the final production image.
52
- RUN bun install --production --frozen-lockfile --ignore-scripts
54
+ # `--omit=peer` drops the framework's optional peer tiers (test runner, service
55
+ # SDKs, parsers) that Bun would otherwise auto-install. Anything this server
56
+ # actually imports belongs in its own `dependencies`, so nothing needed at
57
+ # runtime is lost. The OTEL step below carries the same flag — without it, that
58
+ # install re-resolves the graph and pulls every optional peer back in.
59
+ RUN --mount=type=cache,target=/root/.bun/install/cache \
60
+ bun install --production --omit=peer --frozen-lockfile --ignore-scripts
53
61
 
54
62
  # Conditionally install OpenTelemetry optional peer dependencies (Tier 3).
55
63
  # These are not bundled by default to keep the base image lean. Enable at build time
56
64
  # with: docker build --build-arg OTEL_ENABLED=true
57
65
  ARG OTEL_ENABLED=true
58
- RUN if [ "$OTEL_ENABLED" = "true" ]; then \
59
- bun add @hono/otel \
66
+ RUN --mount=type=cache,target=/root/.bun/install/cache \
67
+ if [ "$OTEL_ENABLED" = "true" ]; then \
68
+ bun add --omit=dev --omit=peer --ignore-scripts @hono/otel \
60
69
  @opentelemetry/instrumentation-http \
61
70
  @opentelemetry/exporter-metrics-otlp-http \
62
71
  @opentelemetry/exporter-trace-otlp-http \
package/LICENSE CHANGED
@@ -186,7 +186,7 @@ Apache License
186
186
  same "printed page" as the copyright notice for easier
187
187
  identification within third-party archives.
188
188
 
189
- Copyright 2025 Casey Hand @cyanheads
189
+ Copyright 2026 Casey Hand @cyanheads
190
190
 
191
191
  Licensed under the Apache License, Version 2.0 (the "License");
192
192
  you may not use this file except in compliance with the License.
package/README.md CHANGED
@@ -7,7 +7,7 @@
7
7
 
8
8
  <div align="center">
9
9
 
10
- [![Version](https://img.shields.io/badge/Version-0.1.3-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/whois-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/whois-mcp-server?style=flat-square&logo=npm&logoColor=white)](https://www.npmjs.com/package/@cyanheads/whois-mcp-server) [![TypeScript](https://img.shields.io/badge/TypeScript-^6.0.3-3178C6.svg?style=flat-square)](https://www.typescriptlang.org/) [![Bun](https://img.shields.io/badge/Bun-v1.3.11-blueviolet.svg?style=flat-square)](https://bun.sh/)
10
+ [![Version](https://img.shields.io/badge/Version-0.1.5-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/whois-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/whois-mcp-server?style=flat-square&logo=npm&logoColor=white)](https://www.npmjs.com/package/@cyanheads/whois-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
 
@@ -21,9 +21,11 @@
21
21
 
22
22
  ---
23
23
 
24
- ## Tools
24
+ ## Overview
25
25
 
26
- Six tools covering domain intelligence, DNS, and IP/ASN resolution:
26
+ Domain and network intelligence via RDAP and DNS-over-HTTPS. Look up domain registrations, check availability, fetch DNS records, and resolve IPs and ASNs to their registries — all via public, keyless data sources. Runs as a stdio process or a local Streamable HTTP server.
27
+
28
+ ### Tools
27
29
 
28
30
  | Tool | Description |
29
31
  |:-----|:------------|
@@ -34,97 +36,84 @@ Six tools covering domain intelligence, DNS, and IP/ASN resolution:
34
36
  | `whois_lookup_asn` | Resolve an ASN to its org name, country, and RIR source |
35
37
  | `whois_get_dossier` | One-call domain triage — registration + DNS in parallel, normalized into a single record with factual signals |
36
38
 
37
- ### `whois_lookup_domain`
39
+ ---
40
+
41
+ ## Capability reference
38
42
 
39
- Look up a domain's full RDAP registration record.
43
+ ### `whois_lookup_domain` <sub>tool</sub>
40
44
 
41
45
  - RDAP-first via IANA auto-bootstrap — automatically selects the correct registry RDAP server per TLD
42
- - Returns registrar, creation/expiry dates, nameservers, EPP status codes, DNSSEC delegation flag
43
- - Surfaces `registrant_redacted: true` explicitly when privacy redaction is in effect (standard post-GDPR for gTLDs)
44
- - Returns `rdap_coverage: false` for TLDs without RDAP coverage rather than silently failing
45
- - Includes `last_update_of_rdap_db` event timestamp for data freshness transparency
46
+ - Returns registrar, creation/expiry dates, nameservers, EPP status codes, and DNSSEC delegation flag
47
+ - Surfaces `registrant_redacted: true` when privacy redaction is in effect (standard post-GDPR for gTLDs)
48
+ - Throws `rdap_no_coverage` when the TLD has no RDAP server in the IANA bootstrap — use `whois_check_availability` instead
49
+ - Throws `domain_not_found` on an RDAP 404 (domain not registered) — use `whois_check_availability` to confirm
46
50
 
47
51
  ---
48
52
 
49
- ### `whois_check_availability`
53
+ ### `whois_check_availability` <sub>tool</sub>
50
54
 
51
- Check whether a domain name is registered or available to register.
52
-
53
- - RDAP 404 = available (`available: true`) — exploits the RDAP spec's intended behavior
54
- - Returns `available: false` with `registrar` and `expiry_date` when registered
55
- - Returns `available: null` with `rdap_coverage: false` for TLDs without RDAP — cannot determine availability
56
- - Optimized for bulk name sweeps — thin response, no unnecessary fields
55
+ - RDAP 404 response maps to `available: true`
56
+ - Registered domains return `available: false` with `registrar` and `expiry_date`
57
+ - `available: null` with `rdap_coverage: false` when the TLD has no RDAP coverage — availability cannot be determined
58
+ - Thin response optimized for bulk name sweeps — no extra fields
57
59
 
58
60
  ---
59
61
 
60
- ### `whois_get_dns`
61
-
62
- Fetch DNS records via DNS-over-HTTPS.
62
+ ### `whois_get_dns` <sub>tool</sub>
63
63
 
64
- - Cloudflare `1.1.1.1` primary, Google `8.8.8.8` fallback (used for CAA records where Cloudflare returns raw hex)
65
- - Supports A, AAAA, MX, TXT, NS, CNAME, SOA, CAA, PTR — multiple types in one call
66
- - Returns records with TTLs and the resolving source (`cloudflare` or `google`)
67
- - `nxdomain: true` in result (not an error) when the domain doesn't exist in DNS
64
+ - Supports A, AAAA, MX, TXT, NS, CNAME, SOA, CAA, PTR; multiple types fetched in parallel; defaults to A, AAAA, MX, TXT, NS when `types` is omitted
65
+ - Cloudflare primary, NextDNS fallback per type (CAA always uses NextDNS — Cloudflare returns raw hex wire format for it)
66
+ - Returns records with TTLs and the resolving `source` (`cloudflare` or `nextdns`)
67
+ - `nxdomain: true` in the result (not an error) when the domain doesn't exist in DNS
68
68
 
69
69
  ---
70
70
 
71
- ### `whois_lookup_ip`
71
+ ### `whois_lookup_ip` <sub>tool</sub>
72
72
 
73
- Look up an IP address or CIDR block via RIR RDAP.
74
-
75
- - Auto-routes to the correct RIR (ARIN, RIPE, APNIC, LACNIC, AFRINIC) via IANA IP bootstrap
73
+ - Accepts an IPv4/IPv6 address or CIDR block; auto-routes to the correct RIR (ARIN, RIPE, APNIC, LACNIC, AFRINIC) via IANA IP bootstrap
76
74
  - Returns netblock CIDR, org name, country, abuse contact email
77
75
  - Fetches PTR (reverse DNS) via DoH as a best-effort step — `ptr: null` on failure, not an error
78
- - Validates and rejects private/reserved ranges (RFC 1918, loopback, link-local) with a clear error
76
+ - Throws `private_range` for RFC 1918, loopback, and link-local addresses — no RIR RDAP record exists for them
77
+ - Throws `ip_not_found` on an RIR RDAP 404
79
78
 
80
79
  ---
81
80
 
82
- ### `whois_lookup_asn`
83
-
84
- Resolve an ASN to its org name, country, and RIR.
81
+ ### `whois_lookup_asn` <sub>tool</sub>
85
82
 
86
83
  - Accepts `AS15169` or bare integer `15169` format
87
84
  - Routes to the correct RIR RDAP endpoint via IANA ASN bootstrap
88
- - Returns `name`, `org`, `country`, `rir`, `start_autnum`, `end_autnum`
85
+ - Returns `name`, `org_name`, `country`, `rir`, `start_autnum`, `end_autnum`
86
+ - Throws `asn_not_found` on an RIR RDAP 404
89
87
 
90
88
  ---
91
89
 
92
- ### `whois_get_dossier`
93
-
94
- One-call domain triage aggregating registration and DNS data in parallel.
90
+ ### `whois_get_dossier` <sub>tool</sub>
95
91
 
96
92
  - Runs RDAP domain lookup and DoH (A, MX, NS, TXT) in parallel via `Promise.allSettled`
97
93
  - Inferred signals: `age_days`, `privacy_redacted`, `registrar`, `ns_provider` (from NS records), `mx_provider` (from MX records)
98
94
  - No synthesized risk scores — factual signals only; the agent decides the verdict
99
- - Partial results surfaced when one leg fails (`source_error` on the failed leg)
100
- - Both-legs-fail throws `ServiceUnavailable`; individual leg failures are data, not errors
95
+ - Partial results surfaced when one leg fails (`rdap_source_error` / `dns_source_error` on the failed leg)
96
+ - Throws `both_legs_failed` only when both RDAP and DNS fail; individual leg failures are data, not errors
101
97
 
102
98
  ---
103
99
 
104
100
  ## Features
105
101
 
106
- Built on [`@cyanheads/mcp-ts-core`](https://www.npmjs.com/package/@cyanheads/mcp-ts-core):
107
-
108
- - Declarative tool definitions — single file per tool, framework handles registration and validation
109
- - Unified error handling — handlers throw, framework catches, classifies, and formats
110
- - Pluggable auth: `none`, `jwt`, `oauth`
111
- - Swappable storage backends: `in-memory`, `filesystem`, `Supabase`, `Cloudflare KV/R2/D1`
112
- - Structured logging with optional OpenTelemetry tracing
113
- - STDIO and Streamable HTTP transports
102
+ Built on [`@cyanheads/mcp-ts-core`](https://github.com/cyanheads/mcp-ts-core): stdio and Streamable HTTP transports, pluggable auth (`none` / `jwt` / `oauth`), swappable storage (`in-memory`, `filesystem`, `Supabase`, `Cloudflare KV/R2/D1`), structured logging with optional OpenTelemetry tracing.
114
103
 
115
- Domain and network intelligence:
104
+ RDAP / DNS-specific:
116
105
 
117
- - RDAP over HTTPS — no port-43 TCP dependency, runs on Node, Bun, and Cloudflare Workers
118
- - IANA bootstrap auto-selection — correct registry RDAP server picked per TLD, RIR, or ASN range; bootstrap JSON cached (TTL 24h) in tenant state
119
- - DNS-over-HTTPS via Cloudflare and Google — resilient dual-provider with per-type routing (Google for CAA; Cloudflare for all others)
120
- - No API keys required — all sources (IANA, registry RDAP endpoints, RIR RDAP, Cloudflare DoH, Google DoH) are public and keyless
106
+ - RDAP over HTTPS — no port-43 TCP dependency
107
+ - IANA bootstrap auto-selection — correct registry RDAP server picked per TLD, RIR, or ASN range; bootstrap JSON cached in-memory for 24h
108
+ - DNS-over-HTTPS via Cloudflare and NextDNS — dual-provider with per-type routing (NextDNS for CAA; Cloudflare for all others) and automatic fallback
109
+ - No API keys required — all sources (IANA, registry RDAP endpoints, RIR RDAP, Cloudflare DoH, NextDNS DoH) are public and keyless
121
110
 
122
111
  Agent-friendly output:
123
112
 
124
- - Explicit coverage signals — `rdap_coverage: false` tells the agent the TLD lacks RDAP rather than returning a confusing error
113
+ - Coverage signaled two ways — `rdap_coverage: false` returned as data by `whois_check_availability` and `whois_get_dossier`, while `whois_lookup_domain` throws `rdap_no_coverage` for the same case
125
114
  - Privacy redaction surfaced as a field — `registrant_redacted: true` rather than silently absent contact data
126
- - Partial failure model — `whois_get_dossier` marks individual legs with `source_error` and continues; only both-legs-fail escalates to an error
127
- - Factual signals, not scores — `age_days`, `privacy_redacted`, `ns_provider`, `mx_provider` are real data; agents chain into threat-intel or risk servers for enrichment
115
+ - Partial failure model — `whois_get_dossier` marks individual legs with a `source_error` field and continues; only both-legs-fail escalates to an error
116
+ - Factual signals, not scores — `age_days`, `privacy_redacted`, `ns_provider`, `mx_provider` are real data, not synthesized risk scores
128
117
 
129
118
  ---
130
119
 
@@ -279,10 +268,11 @@ The Dockerfile defaults to HTTP transport, stateless session mode, and logs to `
279
268
 
280
269
  | Path | Purpose |
281
270
  |:-----|:--------|
282
- | `src/index.ts` | `createApp()` entry point — registers tools and inits services. |
271
+ | `src/index.ts` | Entry point — starts the app. |
272
+ | `src/app.ts` | `createApp()` options — registers tools, inits services, declares the session mode. |
283
273
  | `src/config/` | Server-specific environment variable parsing and validation (Zod). |
284
274
  | `src/services/rdap/` | RDAP client — IANA bootstrap cache, domain/IP/ASN lookup, retry. |
285
- | `src/services/doh/` | DNS-over-HTTPS client — Cloudflare primary, Google fallback. |
275
+ | `src/services/doh/` | DNS-over-HTTPS client — Cloudflare primary, NextDNS fallback. |
286
276
  | `src/mcp-server/tools/` | Tool definitions (`*.tool.ts`). |
287
277
  | `tests/` | Vitest tests mirroring `src/`. |
288
278
  | `docs/` | Design and API reference documents. |
@@ -294,15 +284,15 @@ The Dockerfile defaults to HTTP transport, stateless session mode, and logs to `
294
284
  See [`CLAUDE.md`](./CLAUDE.md) for development guidelines and architectural rules. The short version:
295
285
 
296
286
  - Handlers throw, framework catches — no `try/catch` in tool logic
297
- - Use `ctx.log` for request-scoped logging, `ctx.state` for tenant-scoped storage (IANA bootstrap cache)
298
- - Register new tools via `src/index.ts` tools array
287
+ - Use `ctx.log` for request-scoped logging
288
+ - Register new tools via `src/app.ts`'s `tools` array
299
289
  - Wrap external API calls: validate raw → normalize to domain type → return output schema; never fabricate missing fields
300
290
 
301
291
  ---
302
292
 
303
293
  ## Contributing
304
294
 
305
- Issues and pull requests are welcome. Run checks and tests before submitting:
295
+ Issues are welcome. Run checks and tests before submitting:
306
296
 
307
297
  ```sh
308
298
  bun run devcheck
@@ -0,0 +1,38 @@
1
+ ---
2
+ summary: "Adopt mcp-ts-core 0.12.3 (SDK v2 era) — strict tool inputs, error-envelope output schemas; IP/ASN RDAP 404s now reject as NotFound with recovery hints; supply-chain install guard"
3
+ breaking: false
4
+ security: false
5
+ ---
6
+
7
+ # 0.1.4 — 2026-08-21
8
+
9
+ ## Added
10
+
11
+ - **Supply-chain install guard** — `bunfig.toml` holds freshly published versions for 3 days (`minimumReleaseAge`, framework excluded) and runs the Socket security scanner on every install.
12
+ - **RDAP 404 service tests** — four cases pinning the NotFound conversion and no-retry behavior across domain, availability, IP, and ASN lookups against a mocked RDAP endpoint.
13
+ - **Community health files** — `CONTRIBUTING.md`, `CODE_OF_CONDUCT.md`, and `SECURITY.md` (contact: casey@caseyjhand.com), plus `.gitattributes` line-ending normalization.
14
+
15
+ ## Changed
16
+
17
+ - **Framework `@cyanheads/mcp-ts-core` `^0.10.6` → `^0.12.3`** (SDK v2 era) — tool inputs are strict (an unrecognized argument key is rejected by name), the advertised `outputSchema` declares the error envelope so schema-validating clients stop rejecting error results with -32602, JSON Schema advertises as 2020-12, and HTTP serves protocol revision 2026-07-28 alongside the 2025 revisions.
18
+ - **Framework diagnostics and retry behavior** — input-validation failures read as flat `path: message` sentences instead of a `ZodIssue[]` blob; `ctx.log` lines mirror to the client as `notifications/message`; `withRetry` honors upstream `Retry-After` headers; fetch timeouts classify as `Timeout`, and a stalled response body can no longer hold a request open past its deadline.
19
+ - **Toolchain** — TypeScript `^7.0.2`, Biome `^2.5.9`, Vitest `^4.1.11`, `@types/node` `^26`, Bun `1.4.0` (`packageManager` and both Dockerfile stages).
20
+ - **Docker image hardening** — `BUILDPLATFORM` on the build stage restores multi-arch builds; BuildKit cache mounts for Bun installs; `--ignore-scripts` on the build install; `--omit=peer` on production installs so optional framework peer tiers stay out of the runtime image.
21
+ - **`.mcpb` bundles are portable** — platform-specific native bindings are stripped after pack, so the bundle no longer carries the build host's platform slice.
22
+
23
+ ## Fixed
24
+
25
+ - **IP and ASN lookups returning RDAP 404 now reject as `NotFound`** with `ip_not_found` / `asn_not_found` reasons and recovery hints, matching domain lookup — previously the 404 surfaced as a transient network error and burned retries. 404 responses no longer retry or log at error level.
26
+ - **DoH provider docs corrected** — the fallback is NextDNS, not Google (docs only; CAA records always resolve via NextDNS because Cloudflare returns raw hex wire format for them). The result `source` field reads `cloudflare` | `nextdns`.
27
+ - **Plugin marketplace manifests** carry the bare machine name in identity fields (`name`, server key) with the full npm name on the `npx -y` install arg, and a populated `longDescription`.
28
+
29
+ ## Dependency bumps
30
+
31
+ - `@cyanheads/mcp-ts-core` `^0.10.6` → `^0.12.3`
32
+ - `typescript` `^6.0.3` → `^7.0.2`
33
+ - `@biomejs/biome` `^2.4.16` → `^2.5.9`
34
+ - `@types/node` `25.9.3` → `^26`
35
+ - `vitest` `^4.1.8` → `^4.1.11`
36
+ - `tsc-alias` `^1.8.17` → `^1.9.2`
37
+ - `ignore` `^7.0.5` → `^7.0.6`
38
+ - Added `@socketsecurity/bun-security-scanner` `^1.1.2` (dev)
@@ -0,0 +1,35 @@
1
+ ---
2
+ summary: "Adopt mcp-ts-core 0.13.6 — the server resolves to a stateless session posture however it is launched, and an out-of-schema argument fails as InvalidParams (-32602) with a Recovery line instead of ValidationError (-32007). The Bun floor rises to 1.4.0."
3
+ breaking: true
4
+ security: false
5
+ ---
6
+
7
+ # 0.1.5 — 2026-09-20
8
+
9
+ ## Added
10
+
11
+ - **`.github/FUNDING.yml`** — GitHub Sponsors and Buy Me a Coffee.
12
+ - **`bun run audit:fix`** — `bun audit fix`, the first response to a transitive advisory, ahead of `audit:refresh`.
13
+ - **`devcheck.config.json` `lint` block** — where `lint.truncationAllowlist` now lives, in place of a per-script `MCP_LINT_TRUNCATION_ALLOWLIST` env var.
14
+ - **`tests/app.test.ts`** — asserts the resolved session posture and the registered tool surface against a live `createApp()`.
15
+
16
+ ## Changed
17
+
18
+ - **The session mode is `stateless` however the server is launched** ([#11](https://github.com/cyanheads/whois-mcp-server/issues/11)). `src/app.ts` declares `createApp({ sessionMode: 'stateless' })` and `.env.example` sets the variable actively, so the `Dockerfile` line restates the posture rather than overriding it; previously only the container was stateless and a `bunx`, `npm start`, or from-source run resolved to `stateful`. No tool holds per-session state or calls `ctx.requestInput`.
19
+ - **An out-of-schema argument now fails as `InvalidParams` (`-32602`), not `ValidationError` (`-32007`).** The rejection carries `data.reason: "invalid_arguments"` and its text ends with a `Recovery: …` line naming the field to fix. A client branching on the old code needs updating.
20
+ - **Tool error text closes with `(reason <reason> · not retryable)`** whenever the error carries a `reason` or a boolean `retryable`. `structuredContent` is unchanged.
21
+ - **A caller that disconnects mid-call classifies as `RequestCancelled` (`-32011`)** rather than `InternalError`, and logs at `info`. An upstream 500 on a DNS-over-HTTPS query now retries instead of failing on the first attempt.
22
+ - **Bun engines floor `>=1.3.0` → `>=1.4.0`**, required by the framework.
23
+ - **`whois_lookup_ip` and `whois_lookup_asn` mark their service-thrown contract entries `thrownBy: 'service'`** — `private_range`, `ip_not_found`, `invalid_asn`, `asn_not_found` (lint-only metadata; the advertised error surface is unchanged).
24
+ - **The framework skill tree moved from `skills/` to `framework-skills/`** — Claude Code and Codex auto-load a plugin's root `skills/`, so this server's plugin manifests no longer hand its development skills to every agent that installs it.
25
+ - **`createApp()` options live in `src/app.ts` as `appOptions`**; `src/index.ts` is the entry point that starts them.
26
+
27
+ ## Dependencies
28
+
29
+ - `@cyanheads/mcp-ts-core` `^0.12.3` → `^0.13.6`
30
+ - `zod` `^4.4.3` → `^4.6.5`
31
+ - `vitest` (dev) `^4.1.11` → `^5.0.1`
32
+ - `@biomejs/biome` (dev) `^2.5.9` → `^2.5.14`
33
+ - `@types/node` (dev) `^26` → `^26.6.1`
34
+ - `ignore` (dev) `^7.0.6` → `^7.0.9`
35
+ - `tsc-alias` (dev) `^1.9.2` → `^1.9.5`
@@ -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 one
10
+ # headline the release is about. 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,
@@ -15,16 +16,19 @@ summary: ""
15
16
  # usage. Flagged as `Breaking` in the rollup.
16
17
  breaking: false
17
18
 
18
- # Set `true` if this release contains any security fix. Pairs with the
19
- # `## Security` section below. Flagged as `Security` in the rollup so
20
- # users can triage upgrade urgency at a glance.
19
+ # Set `true` ONLY for a security fix in THIS project's own source code — a
20
+ # vulnerability or hardening in code you ship. A dependency or transitive CVE
21
+ # bump is routine maintenance, NOT a security release: record it under
22
+ # `## Dependencies` (with the advisory ID) and leave this `false`. When true,
23
+ # pairs with the `## Security` section below and flags `Security` in the rollup.
21
24
  security: false
22
25
 
23
26
  # Optional free-form notes for maintenance agents processing this release.
24
27
  # Not rendered in CHANGELOG — consumed by agents running `maintenance` on
25
- # downstream servers. Use for adoption instructions that don't fit the
26
- # human-facing sections: new files to create, fields to populate, one-time
27
- # 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.
28
32
  # agent-notes: |
29
33
  # <instructions for downstream maintenance agents>
30
34
  ---
@@ -39,17 +43,54 @@ security: false
39
43
  each bullet with the symbol or concept name in **bold** so they can skip
40
44
  what's irrelevant and zoom in on what's not.
41
45
 
42
- Tone: terse, fact-dense, not verbose. Default to one sentence per bullet —
43
- name the symbol, state what changed, stop. Use a second sentence only when
44
- it carries weight. If a bullet feels long, it is.
45
-
46
- Cut: mechanism walkthroughs (those belong in JSDoc, CLAUDE.md/AGENTS.md, or the
47
- relevant skill), ceremonial framings ("This release introduces…",
48
- backwards-compat paragraphs), file-by-file test enumerations, internal
49
- 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.
50
89
 
51
90
  Narrative intro: skip by default. Add one short sentence only when the
52
- 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.
53
94
 
54
95
  Sections: Keep a Changelog order — Added, Changed, Deprecated, Removed,
55
96
  Fixed, Security. Include only sections with entries; delete the rest
@@ -76,30 +117,13 @@ security: false
76
117
  in that unrelated item's metadata.
77
118
 
78
119
  TAG ANNOTATIONS — the annotated tag body renders as the GitHub Release body
79
- via `gh release create --notes-from-tag`. The tag is a derivative of this
80
- changelog entry — a condensed, scannable version, not a copy. Format:
81
-
82
- <theme — omit version number, GitHub prepends it>
83
- ← blank line
84
- <1-2 sentence context: what this release does>
85
- ← blank line
86
- Dependency bumps: ← section header
87
- ← blank line
88
- - `@cyanheads/mcp-ts-core` ^0.9.1 → ^0.9.6 ← bullet
89
- ← blank line
90
- Changed: ← only sections with entries
91
- ← blank line
92
- - `format()` output includes `query` in text mode
93
- ← blank line
94
- Added:
95
- ← blank line
96
- - `manifest.json` scaffolded for MCPB bundle support
97
- - Install badges (Claude Desktop, Cursor, VS Code)
98
- ← blank line
99
- <N> tests pass; `bun run devcheck` clean. ← footer
100
-
101
- Never a flat comma-separated string. Always structured markdown with
102
- sections. The tag must scan well as a rendered GitHub Release page.
120
+ via `gh release create --notes-from-tag`. It is a condensed digest of this
121
+ entry, never a copy, and its format is owned by the `release-and-publish`
122
+ skill (step 4, "Create the annotated tag"): a short subject line without the
123
+ version, flat headline bullets — no Keep-a-Changelog section headers, no
124
+ gates line — at most one deps line, issue backlinks, and the changelog link
125
+ last. In release-PR mode the `git-wrapup` skill authors those bullets as the
126
+ PR body's `## Changes` and the tag copies them.
103
127
  -->
104
128
 
105
129
  ## Added