@cyanheads/whois-mcp-server 0.1.2 → 0.1.4
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 +47 -29
- package/CLAUDE.md +47 -29
- package/Dockerfile +21 -7
- package/LICENSE +1 -1
- package/README.md +6 -6
- package/changelog/0.1.x/0.1.3.md +24 -0
- package/changelog/0.1.x/0.1.4.md +38 -0
- package/changelog/template.md +60 -19
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/dist/mcp-server/tools/definitions/whois-check-availability.tool.d.ts +1 -1
- package/dist/mcp-server/tools/definitions/whois-check-availability.tool.js +1 -1
- package/dist/mcp-server/tools/definitions/whois-check-availability.tool.js.map +1 -1
- package/dist/mcp-server/tools/definitions/whois-get-dns.tool.d.ts +9 -9
- package/dist/mcp-server/tools/definitions/whois-get-dns.tool.js +1 -1
- package/dist/mcp-server/tools/definitions/whois-get-dns.tool.js.map +1 -1
- package/dist/mcp-server/tools/definitions/whois-get-dossier.tool.d.ts +1 -1
- package/dist/mcp-server/tools/definitions/whois-get-dossier.tool.js +1 -1
- package/dist/mcp-server/tools/definitions/whois-get-dossier.tool.js.map +1 -1
- package/dist/mcp-server/tools/definitions/whois-lookup-asn.tool.d.ts +1 -1
- package/dist/mcp-server/tools/definitions/whois-lookup-asn.tool.js +1 -1
- package/dist/mcp-server/tools/definitions/whois-lookup-asn.tool.js.map +1 -1
- package/dist/mcp-server/tools/definitions/whois-lookup-domain.tool.d.ts +1 -1
- package/dist/mcp-server/tools/definitions/whois-lookup-domain.tool.js +1 -1
- package/dist/mcp-server/tools/definitions/whois-lookup-domain.tool.js.map +1 -1
- package/dist/mcp-server/tools/definitions/whois-lookup-ip.tool.d.ts +2 -2
- package/dist/mcp-server/tools/definitions/whois-lookup-ip.tool.js +2 -2
- package/dist/mcp-server/tools/definitions/whois-lookup-ip.tool.js.map +1 -1
- package/dist/services/doh/doh-service.d.ts.map +1 -1
- package/dist/services/doh/doh-service.js +2 -3
- package/dist/services/doh/doh-service.js.map +1 -1
- package/dist/services/rdap/rdap-service.d.ts +0 -1
- package/dist/services/rdap/rdap-service.d.ts.map +1 -1
- package/dist/services/rdap/rdap-service.js +72 -66
- package/dist/services/rdap/rdap-service.js.map +1 -1
- package/package.json +12 -11
- package/server.json +3 -3
package/AGENTS.md
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
# Developer Protocol
|
|
2
2
|
|
|
3
3
|
**Server:** whois-mcp-server
|
|
4
|
-
**Version:** 0.1.
|
|
5
|
-
**Framework:** [@cyanheads/mcp-ts-core](https://www.npmjs.com/package/@cyanheads/mcp-ts-core) `^0.
|
|
4
|
+
**Version:** 0.1.4
|
|
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/
|
|
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
|
-
- **
|
|
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
|
|
|
@@ -107,9 +107,19 @@ export function getServerConfig() {
|
|
|
107
107
|
|
|
108
108
|
`parseEnvConfig` maps Zod schema paths → env var names so errors name the variable (`RDAP_TIMEOUT_MS`) not the path (`rdapTimeoutMs`). Throws `ConfigurationError`, which the framework prints as a clean startup banner.
|
|
109
109
|
|
|
110
|
-
### Server instructions
|
|
110
|
+
### Server identity and instructions
|
|
111
111
|
|
|
112
|
-
`createApp(
|
|
112
|
+
`createApp()` accepts optional identity fields forwarded to the SDK's `initialize` response and the server manifest (`/.well-known/mcp.json`):
|
|
113
|
+
|
|
114
|
+
```ts
|
|
115
|
+
await createApp({
|
|
116
|
+
name: 'whois-mcp-server',
|
|
117
|
+
title: 'whois-mcp-server',
|
|
118
|
+
instructions: 'Use shortcut alpha for the most common case.',
|
|
119
|
+
});
|
|
120
|
+
```
|
|
121
|
+
|
|
122
|
+
`instructions` is optional server-level orientation, sent on every `initialize` as session-level context. Use it for deployment guidance (connection aliases, regional notes, scope hints) instead of repeating the same context across tool descriptions. Client adoption is uneven, but there's no downside when set.
|
|
113
123
|
|
|
114
124
|
---
|
|
115
125
|
|
|
@@ -119,11 +129,15 @@ Handlers receive a unified `ctx` object. Key properties:
|
|
|
119
129
|
|
|
120
130
|
| Property | Description |
|
|
121
131
|
|:---------|:------------|
|
|
122
|
-
| `ctx.log` | Request-scoped logger — `.debug()`, `.info()`, `.notice()`, `.warning()`, `.error()`. Auto-correlates requestId, traceId, tenantId. |
|
|
123
|
-
| `ctx.state` | Tenant-scoped KV — `.get(key)`, `.set(key, value, { ttl? })`, `.delete(key)`, `.list(prefix, { cursor, limit })`.
|
|
132
|
+
| `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. |
|
|
133
|
+
| `ctx.state` | Tenant-scoped KV — `.get(key)`, `.set(key, value, { ttl? })`, `.delete(key)`, `.getMany(keys)`, `.list(prefix, { cursor, limit })`. Accepts any serializable value. |
|
|
134
|
+
| `ctx.requestInput` | Suspend and ask the caller for more input — `return ctx.requestInput(...)`. Never returns; the handler is re-entered with the answers. Always present. |
|
|
135
|
+
| `ctx.inputs` | Reader over a retried request's responses — `.accepted(key, schema)`, `.view(key)`, `.state()`, `.dropped`. Empty on the first round. |
|
|
136
|
+
| `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). |
|
|
137
|
+
| `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`. |
|
|
124
138
|
| `ctx.signal` | `AbortSignal` for cancellation. |
|
|
125
139
|
| `ctx.requestId` | Unique request ID. |
|
|
126
|
-
| `ctx.tenantId` | Tenant ID from JWT
|
|
140
|
+
| `ctx.tenantId` | Tenant ID from JWT; `'default'` for stdio or HTTP with auth off. |
|
|
127
141
|
|
|
128
142
|
---
|
|
129
143
|
|
|
@@ -131,7 +145,7 @@ Handlers receive a unified `ctx` object. Key properties:
|
|
|
131
145
|
|
|
132
146
|
Handlers throw — the framework catches, classifies, and formats.
|
|
133
147
|
|
|
134
|
-
**Recommended: typed error contract.** Declare `errors: [{ reason, code, when, recovery, retryable? }]` on `tool()` / `resource()` to receive `ctx.fail(reason, …)` typed against the reason union. TypeScript catches typos at compile time, `data.reason` is auto-populated for observability, linter enforces conformance against the handler body. `recovery` is required
|
|
148
|
+
**Recommended: typed error contract.** Declare `errors: [{ reason, code, when, recovery, retryable? }]` on `tool()` / `resource()` to receive `ctx.fail(reason, …)` typed against the reason union. TypeScript catches typos at compile time, `data.reason` is auto-populated for observability, linter enforces conformance against the handler body. `recovery` is required (≥ 5 words, lint-validated) — the single source of truth for the agent's next move. Pass `ctx.recoveryFor('reason')` as the throw's data to put it on the wire (`data.recovery.hint`, mirrored into `content[]` text); override with an explicit `{ recovery: { hint: '...' } }` when dynamic runtime context matters. Baseline codes (`InternalError`, `ServiceUnavailable`, `Timeout`, `ValidationError`, `SerializationError`) bubble freely and don't need declaring.
|
|
135
149
|
|
|
136
150
|
```ts
|
|
137
151
|
import { JsonRpcErrorCode } from '@cyanheads/mcp-ts-core/errors';
|
|
@@ -183,7 +197,7 @@ src/
|
|
|
183
197
|
rdap-service.ts # RDAP client — IANA bootstrap + domain/IP/ASN lookup
|
|
184
198
|
types.ts # RDAP domain/IP/ASN normalized types
|
|
185
199
|
doh/
|
|
186
|
-
doh-service.ts # DNS-over-HTTPS client — Cloudflare primary,
|
|
200
|
+
doh-service.ts # DNS-over-HTTPS client — Cloudflare primary, NextDNS fallback
|
|
187
201
|
types.ts # DoH record types
|
|
188
202
|
mcp-server/
|
|
189
203
|
tools/definitions/
|
|
@@ -242,7 +256,7 @@ Available skills:
|
|
|
242
256
|
| `api-auth` | Auth modes, scopes, JWT/OAuth |
|
|
243
257
|
| `api-canvas` | DataCanvas: register tabular data, run SQL, export, plus the `spillover()` helper for big result sets — Tier 3 opt-in |
|
|
244
258
|
| `api-config` | AppConfig, parseConfig, env vars |
|
|
245
|
-
| `api-context` | Context interface, logger, state,
|
|
259
|
+
| `api-context` | Context interface, RequestContext, logger, state, multi-round-trip input |
|
|
246
260
|
| `api-errors` | McpError, JsonRpcErrorCode, error patterns |
|
|
247
261
|
| `api-linter` | Definition linter rule catalog — invoked by `bun run lint:mcp` and `devcheck` |
|
|
248
262
|
| `api-services` | LLM, Speech, Graph services |
|
|
@@ -250,6 +264,7 @@ Available skills:
|
|
|
250
264
|
| `api-utils` | Formatting, parsing, security, pagination, scheduling, telemetry helpers |
|
|
251
265
|
| `api-telemetry` | OTel catalog: spans, metrics, completion logs, env config, cardinality rules |
|
|
252
266
|
| `api-workers` | Cloudflare Workers runtime |
|
|
267
|
+
| `techniques` | Reusable response/data-shaping patterns — outline-on-overflow, spillover, capped-list disclosure |
|
|
253
268
|
|
|
254
269
|
**Chaining skills into pipelines.** When the user wants a multi-phase effort — build this server out, QA-and-fix the surface, update-and-ship — *and you can spawn sub-agents*, `skills/orchestrations/SKILL.md` sequences the task skills above into a gated pipeline with verification at each step. Read it to drive the run. Optional: skip it if you can't orchestrate sub-agents, and ignore it entirely if you were *spawned* as one — you've already been scoped to a single phase.
|
|
255
270
|
|
|
@@ -259,30 +274,33 @@ When you complete a skill's checklist, check the boxes and add a completion time
|
|
|
259
274
|
|
|
260
275
|
## Commands
|
|
261
276
|
|
|
262
|
-
**Runtime:** Scripts use
|
|
277
|
+
**Runtime:** Scripts use Bun's native TypeScript execution — `bun run <cmd>` is the standard invocation. `npm run <cmd>` also works (npm delegates to bun).
|
|
263
278
|
|
|
264
279
|
| Command | Purpose |
|
|
265
280
|
|:--------|:--------|
|
|
266
|
-
| `
|
|
267
|
-
| `
|
|
268
|
-
| `
|
|
269
|
-
| `
|
|
281
|
+
| `bun run build` | Compile TypeScript |
|
|
282
|
+
| `bun run rebuild` | Clean + build |
|
|
283
|
+
| `bun run clean` | Remove build artifacts |
|
|
284
|
+
| `bun run devcheck` | Lint + format + typecheck + security + changelog sync |
|
|
270
285
|
| `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. |
|
|
271
|
-
| `
|
|
272
|
-
| `
|
|
273
|
-
| `
|
|
274
|
-
| `
|
|
275
|
-
| `
|
|
276
|
-
| `
|
|
277
|
-
| `
|
|
278
|
-
| `
|
|
279
|
-
| `
|
|
286
|
+
| `bun run lint:mcp` | Run the MCP definition linter standalone (rule catalog: `api-linter` skill) |
|
|
287
|
+
| `bun run lint:packaging` | Packaging surface checks — `server.json`/`manifest.json` env-var parity (run by devcheck) |
|
|
288
|
+
| `bun run list-skills` | Print the skill registry |
|
|
289
|
+
| `bun run tree` | Generate directory structure doc |
|
|
290
|
+
| `bun run format` | Auto-fix formatting (safe fixes only) |
|
|
291
|
+
| `bun run format:unsafe` | Also apply Biome's unsafe autofixes — review the diff; they can change behavior |
|
|
292
|
+
| `bun run test` | Run tests (Vitest — use `bun run test`, not `bun test`) |
|
|
293
|
+
| `bun run start:stdio` | Production mode (stdio) |
|
|
294
|
+
| `bun run start:http` | Production mode (HTTP) |
|
|
295
|
+
| `bun run changelog:build` | Regenerate `CHANGELOG.md` from `changelog/*.md` |
|
|
296
|
+
| `bun run changelog:check` | Verify `CHANGELOG.md` is in sync (used by devcheck) |
|
|
297
|
+
| `bun run bundle` | Build, pack, and clean a `.mcpb` for one-click Claude Desktop install |
|
|
280
298
|
|
|
281
299
|
---
|
|
282
300
|
|
|
283
301
|
## Bundling
|
|
284
302
|
|
|
285
|
-
`npm run bundle` produces a `.mcpb` extension bundle for one-click install in Claude Desktop. MCPB is stdio-only — HTTP and Cloudflare Workers deployments are unaffected. Consumers who don't need it can delete `manifest.json` and `.mcpbignore`; `lint:packaging` skips cleanly.
|
|
303
|
+
`npm run bundle` produces a `.mcpb` extension bundle for one-click install in Claude Desktop. The pack step is followed by `scripts/clean-mcpb.ts`, which prunes dev dependencies (`mcpb clean`) and strips two classes of `node_modules/**` content that root-anchored `.mcpbignore` patterns cannot reach: dependency-shipped agent docs (`skills/`, `.claude/`, `.agents/`, `SKILL.md`) and platform-specific native bindings, which would otherwise lock the bundle to the platform it was packed on. MCPB is stdio-only — HTTP and Cloudflare Workers deployments are unaffected. Consumers who don't need it can delete `manifest.json` and `.mcpbignore`; `lint:packaging` skips cleanly.
|
|
286
304
|
|
|
287
305
|
**Adding an env var requires both files:** `server.json` (registry discovery, `environmentVariables[]`) and `manifest.json` (bundle install UX, `mcp_config.env` + `user_config`). `lint:packaging` (run by `devcheck`) verifies the env var names match.
|
|
288
306
|
|
|
@@ -300,14 +318,14 @@ Each per-version file opens with YAML frontmatter:
|
|
|
300
318
|
---
|
|
301
319
|
summary: "One-line headline, ≤350 chars" # required — powers the rollup index
|
|
302
320
|
breaking: false # optional — true flags breaking changes
|
|
303
|
-
security: false # optional — true
|
|
321
|
+
security: false # optional — true ONLY for a source-code security fix, never a dependency CVE bump
|
|
304
322
|
---
|
|
305
323
|
|
|
306
324
|
# 0.1.0 — YYYY-MM-DD
|
|
307
325
|
...
|
|
308
326
|
```
|
|
309
327
|
|
|
310
|
-
`breaking: true` renders a `· ⚠️ Breaking` badge — use it when consumers must update code on upgrade (signature changes, removed APIs, config renames). `security: true` renders a `· 🛡️ Security` badge and pairs with a `## Security` body section. When both are set, badges render `· ⚠️ Breaking · 🛡️ Security`.
|
|
328
|
+
`breaking: true` renders a `· ⚠️ Breaking` badge — use it when consumers must update code on upgrade (signature changes, removed APIs, config renames). `security: true` renders a `· 🛡️ Security` badge and pairs with a `## Security` body section — set it only for a security fix in this server's *own source code*, never for a routine dependency or transitive CVE bump (record those under `## Dependencies`). When both are set, badges render `· ⚠️ Breaking · 🛡️ Security`.
|
|
311
329
|
|
|
312
330
|
`agent-notes` is an optional free-form field for maintenance agents processing the release downstream. Content here won't appear in the rendered CHANGELOG — it's consumed by agents running the `maintenance` skill. Use it for adoption instructions that don't fit the human-facing sections: new files to create, fields to populate, one-time migration steps. Omit entirely when there's nothing to say.
|
|
313
331
|
|
package/CLAUDE.md
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
# Developer Protocol
|
|
2
2
|
|
|
3
3
|
**Server:** whois-mcp-server
|
|
4
|
-
**Version:** 0.1.
|
|
5
|
-
**Framework:** [@cyanheads/mcp-ts-core](https://www.npmjs.com/package/@cyanheads/mcp-ts-core) `^0.
|
|
4
|
+
**Version:** 0.1.4
|
|
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/
|
|
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
|
-
- **
|
|
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
|
|
|
@@ -107,9 +107,19 @@ export function getServerConfig() {
|
|
|
107
107
|
|
|
108
108
|
`parseEnvConfig` maps Zod schema paths → env var names so errors name the variable (`RDAP_TIMEOUT_MS`) not the path (`rdapTimeoutMs`). Throws `ConfigurationError`, which the framework prints as a clean startup banner.
|
|
109
109
|
|
|
110
|
-
### Server instructions
|
|
110
|
+
### Server identity and instructions
|
|
111
111
|
|
|
112
|
-
`createApp(
|
|
112
|
+
`createApp()` accepts optional identity fields forwarded to the SDK's `initialize` response and the server manifest (`/.well-known/mcp.json`):
|
|
113
|
+
|
|
114
|
+
```ts
|
|
115
|
+
await createApp({
|
|
116
|
+
name: 'whois-mcp-server',
|
|
117
|
+
title: 'whois-mcp-server',
|
|
118
|
+
instructions: 'Use shortcut alpha for the most common case.',
|
|
119
|
+
});
|
|
120
|
+
```
|
|
121
|
+
|
|
122
|
+
`instructions` is optional server-level orientation, sent on every `initialize` as session-level context. Use it for deployment guidance (connection aliases, regional notes, scope hints) instead of repeating the same context across tool descriptions. Client adoption is uneven, but there's no downside when set.
|
|
113
123
|
|
|
114
124
|
---
|
|
115
125
|
|
|
@@ -119,11 +129,15 @@ Handlers receive a unified `ctx` object. Key properties:
|
|
|
119
129
|
|
|
120
130
|
| Property | Description |
|
|
121
131
|
|:---------|:------------|
|
|
122
|
-
| `ctx.log` | Request-scoped logger — `.debug()`, `.info()`, `.notice()`, `.warning()`, `.error()`. Auto-correlates requestId, traceId, tenantId. |
|
|
123
|
-
| `ctx.state` | Tenant-scoped KV — `.get(key)`, `.set(key, value, { ttl? })`, `.delete(key)`, `.list(prefix, { cursor, limit })`.
|
|
132
|
+
| `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. |
|
|
133
|
+
| `ctx.state` | Tenant-scoped KV — `.get(key)`, `.set(key, value, { ttl? })`, `.delete(key)`, `.getMany(keys)`, `.list(prefix, { cursor, limit })`. Accepts any serializable value. |
|
|
134
|
+
| `ctx.requestInput` | Suspend and ask the caller for more input — `return ctx.requestInput(...)`. Never returns; the handler is re-entered with the answers. Always present. |
|
|
135
|
+
| `ctx.inputs` | Reader over a retried request's responses — `.accepted(key, schema)`, `.view(key)`, `.state()`, `.dropped`. Empty on the first round. |
|
|
136
|
+
| `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). |
|
|
137
|
+
| `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`. |
|
|
124
138
|
| `ctx.signal` | `AbortSignal` for cancellation. |
|
|
125
139
|
| `ctx.requestId` | Unique request ID. |
|
|
126
|
-
| `ctx.tenantId` | Tenant ID from JWT
|
|
140
|
+
| `ctx.tenantId` | Tenant ID from JWT; `'default'` for stdio or HTTP with auth off. |
|
|
127
141
|
|
|
128
142
|
---
|
|
129
143
|
|
|
@@ -131,7 +145,7 @@ Handlers receive a unified `ctx` object. Key properties:
|
|
|
131
145
|
|
|
132
146
|
Handlers throw — the framework catches, classifies, and formats.
|
|
133
147
|
|
|
134
|
-
**Recommended: typed error contract.** Declare `errors: [{ reason, code, when, recovery, retryable? }]` on `tool()` / `resource()` to receive `ctx.fail(reason, …)` typed against the reason union. TypeScript catches typos at compile time, `data.reason` is auto-populated for observability, linter enforces conformance against the handler body. `recovery` is required
|
|
148
|
+
**Recommended: typed error contract.** Declare `errors: [{ reason, code, when, recovery, retryable? }]` on `tool()` / `resource()` to receive `ctx.fail(reason, …)` typed against the reason union. TypeScript catches typos at compile time, `data.reason` is auto-populated for observability, linter enforces conformance against the handler body. `recovery` is required (≥ 5 words, lint-validated) — the single source of truth for the agent's next move. Pass `ctx.recoveryFor('reason')` as the throw's data to put it on the wire (`data.recovery.hint`, mirrored into `content[]` text); override with an explicit `{ recovery: { hint: '...' } }` when dynamic runtime context matters. Baseline codes (`InternalError`, `ServiceUnavailable`, `Timeout`, `ValidationError`, `SerializationError`) bubble freely and don't need declaring.
|
|
135
149
|
|
|
136
150
|
```ts
|
|
137
151
|
import { JsonRpcErrorCode } from '@cyanheads/mcp-ts-core/errors';
|
|
@@ -183,7 +197,7 @@ src/
|
|
|
183
197
|
rdap-service.ts # RDAP client — IANA bootstrap + domain/IP/ASN lookup
|
|
184
198
|
types.ts # RDAP domain/IP/ASN normalized types
|
|
185
199
|
doh/
|
|
186
|
-
doh-service.ts # DNS-over-HTTPS client — Cloudflare primary,
|
|
200
|
+
doh-service.ts # DNS-over-HTTPS client — Cloudflare primary, NextDNS fallback
|
|
187
201
|
types.ts # DoH record types
|
|
188
202
|
mcp-server/
|
|
189
203
|
tools/definitions/
|
|
@@ -242,7 +256,7 @@ Available skills:
|
|
|
242
256
|
| `api-auth` | Auth modes, scopes, JWT/OAuth |
|
|
243
257
|
| `api-canvas` | DataCanvas: register tabular data, run SQL, export, plus the `spillover()` helper for big result sets — Tier 3 opt-in |
|
|
244
258
|
| `api-config` | AppConfig, parseConfig, env vars |
|
|
245
|
-
| `api-context` | Context interface, logger, state,
|
|
259
|
+
| `api-context` | Context interface, RequestContext, logger, state, multi-round-trip input |
|
|
246
260
|
| `api-errors` | McpError, JsonRpcErrorCode, error patterns |
|
|
247
261
|
| `api-linter` | Definition linter rule catalog — invoked by `bun run lint:mcp` and `devcheck` |
|
|
248
262
|
| `api-services` | LLM, Speech, Graph services |
|
|
@@ -250,6 +264,7 @@ Available skills:
|
|
|
250
264
|
| `api-utils` | Formatting, parsing, security, pagination, scheduling, telemetry helpers |
|
|
251
265
|
| `api-telemetry` | OTel catalog: spans, metrics, completion logs, env config, cardinality rules |
|
|
252
266
|
| `api-workers` | Cloudflare Workers runtime |
|
|
267
|
+
| `techniques` | Reusable response/data-shaping patterns — outline-on-overflow, spillover, capped-list disclosure |
|
|
253
268
|
|
|
254
269
|
**Chaining skills into pipelines.** When the user wants a multi-phase effort — build this server out, QA-and-fix the surface, update-and-ship — *and you can spawn sub-agents*, `skills/orchestrations/SKILL.md` sequences the task skills above into a gated pipeline with verification at each step. Read it to drive the run. Optional: skip it if you can't orchestrate sub-agents, and ignore it entirely if you were *spawned* as one — you've already been scoped to a single phase.
|
|
255
270
|
|
|
@@ -259,30 +274,33 @@ When you complete a skill's checklist, check the boxes and add a completion time
|
|
|
259
274
|
|
|
260
275
|
## Commands
|
|
261
276
|
|
|
262
|
-
**Runtime:** Scripts use
|
|
277
|
+
**Runtime:** Scripts use Bun's native TypeScript execution — `bun run <cmd>` is the standard invocation. `npm run <cmd>` also works (npm delegates to bun).
|
|
263
278
|
|
|
264
279
|
| Command | Purpose |
|
|
265
280
|
|:--------|:--------|
|
|
266
|
-
| `
|
|
267
|
-
| `
|
|
268
|
-
| `
|
|
269
|
-
| `
|
|
281
|
+
| `bun run build` | Compile TypeScript |
|
|
282
|
+
| `bun run rebuild` | Clean + build |
|
|
283
|
+
| `bun run clean` | Remove build artifacts |
|
|
284
|
+
| `bun run devcheck` | Lint + format + typecheck + security + changelog sync |
|
|
270
285
|
| `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. |
|
|
271
|
-
| `
|
|
272
|
-
| `
|
|
273
|
-
| `
|
|
274
|
-
| `
|
|
275
|
-
| `
|
|
276
|
-
| `
|
|
277
|
-
| `
|
|
278
|
-
| `
|
|
279
|
-
| `
|
|
286
|
+
| `bun run lint:mcp` | Run the MCP definition linter standalone (rule catalog: `api-linter` skill) |
|
|
287
|
+
| `bun run lint:packaging` | Packaging surface checks — `server.json`/`manifest.json` env-var parity (run by devcheck) |
|
|
288
|
+
| `bun run list-skills` | Print the skill registry |
|
|
289
|
+
| `bun run tree` | Generate directory structure doc |
|
|
290
|
+
| `bun run format` | Auto-fix formatting (safe fixes only) |
|
|
291
|
+
| `bun run format:unsafe` | Also apply Biome's unsafe autofixes — review the diff; they can change behavior |
|
|
292
|
+
| `bun run test` | Run tests (Vitest — use `bun run test`, not `bun test`) |
|
|
293
|
+
| `bun run start:stdio` | Production mode (stdio) |
|
|
294
|
+
| `bun run start:http` | Production mode (HTTP) |
|
|
295
|
+
| `bun run changelog:build` | Regenerate `CHANGELOG.md` from `changelog/*.md` |
|
|
296
|
+
| `bun run changelog:check` | Verify `CHANGELOG.md` is in sync (used by devcheck) |
|
|
297
|
+
| `bun run bundle` | Build, pack, and clean a `.mcpb` for one-click Claude Desktop install |
|
|
280
298
|
|
|
281
299
|
---
|
|
282
300
|
|
|
283
301
|
## Bundling
|
|
284
302
|
|
|
285
|
-
`npm run bundle` produces a `.mcpb` extension bundle for one-click install in Claude Desktop. MCPB is stdio-only — HTTP and Cloudflare Workers deployments are unaffected. Consumers who don't need it can delete `manifest.json` and `.mcpbignore`; `lint:packaging` skips cleanly.
|
|
303
|
+
`npm run bundle` produces a `.mcpb` extension bundle for one-click install in Claude Desktop. The pack step is followed by `scripts/clean-mcpb.ts`, which prunes dev dependencies (`mcpb clean`) and strips two classes of `node_modules/**` content that root-anchored `.mcpbignore` patterns cannot reach: dependency-shipped agent docs (`skills/`, `.claude/`, `.agents/`, `SKILL.md`) and platform-specific native bindings, which would otherwise lock the bundle to the platform it was packed on. MCPB is stdio-only — HTTP and Cloudflare Workers deployments are unaffected. Consumers who don't need it can delete `manifest.json` and `.mcpbignore`; `lint:packaging` skips cleanly.
|
|
286
304
|
|
|
287
305
|
**Adding an env var requires both files:** `server.json` (registry discovery, `environmentVariables[]`) and `manifest.json` (bundle install UX, `mcp_config.env` + `user_config`). `lint:packaging` (run by `devcheck`) verifies the env var names match.
|
|
288
306
|
|
|
@@ -300,14 +318,14 @@ Each per-version file opens with YAML frontmatter:
|
|
|
300
318
|
---
|
|
301
319
|
summary: "One-line headline, ≤350 chars" # required — powers the rollup index
|
|
302
320
|
breaking: false # optional — true flags breaking changes
|
|
303
|
-
security: false # optional — true
|
|
321
|
+
security: false # optional — true ONLY for a source-code security fix, never a dependency CVE bump
|
|
304
322
|
---
|
|
305
323
|
|
|
306
324
|
# 0.1.0 — YYYY-MM-DD
|
|
307
325
|
...
|
|
308
326
|
```
|
|
309
327
|
|
|
310
|
-
`breaking: true` renders a `· ⚠️ Breaking` badge — use it when consumers must update code on upgrade (signature changes, removed APIs, config renames). `security: true` renders a `· 🛡️ Security` badge and pairs with a `## Security` body section. When both are set, badges render `· ⚠️ Breaking · 🛡️ Security`.
|
|
328
|
+
`breaking: true` renders a `· ⚠️ Breaking` badge — use it when consumers must update code on upgrade (signature changes, removed APIs, config renames). `security: true` renders a `· 🛡️ Security` badge and pairs with a `## Security` body section — set it only for a security fix in this server's *own source code*, never for a routine dependency or transitive CVE bump (record those under `## Dependencies`). When both are set, badges render `· ⚠️ Breaking · 🛡️ Security`.
|
|
311
329
|
|
|
312
330
|
`agent-notes` is an optional free-form field for maintenance agents processing the release downstream. Content here won't appear in the rendered CHANGELOG — it's consumed by agents running the `maintenance` skill. Use it for adoption instructions that don't fit the human-facing sections: new files to create, fields to populate, one-time migration steps. Omit entirely when there's nothing to say.
|
|
313
331
|
|
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.
|
|
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
|
-
|
|
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.
|
|
33
|
+
FROM oven/bun:1.4.0-slim AS production
|
|
32
34
|
|
|
33
35
|
WORKDIR /usr/src/app
|
|
34
36
|
|
|
@@ -37,24 +39,33 @@ WORKDIR /usr/src/app
|
|
|
37
39
|
ENV NODE_ENV=production
|
|
38
40
|
|
|
39
41
|
# OCI image metadata (https://github.com/opencontainers/image-spec/blob/main/annotations.md)
|
|
42
|
+
ARG APP_VERSION
|
|
40
43
|
LABEL org.opencontainers.image.title="whois-mcp-server"
|
|
41
44
|
LABEL org.opencontainers.image.description="Look up domain registration, check availability, fetch DNS records, and resolve IPs and ASNs via RDAP and DNS-over-HTTPS via MCP. STDIO or Streamable HTTP."
|
|
42
45
|
LABEL org.opencontainers.image.source="https://github.com/cyanheads/whois-mcp-server"
|
|
43
46
|
LABEL org.opencontainers.image.licenses="Apache-2.0"
|
|
47
|
+
LABEL org.opencontainers.image.version="${APP_VERSION}"
|
|
44
48
|
|
|
45
49
|
# Copy dependency manifests
|
|
46
50
|
COPY package.json bun.lock ./
|
|
47
51
|
|
|
48
52
|
# Install only production dependencies, ignoring any lifecycle scripts (like 'prepare')
|
|
49
53
|
# that are not needed in the final production image.
|
|
50
|
-
|
|
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
|
|
51
61
|
|
|
52
62
|
# Conditionally install OpenTelemetry optional peer dependencies (Tier 3).
|
|
53
63
|
# These are not bundled by default to keep the base image lean. Enable at build time
|
|
54
64
|
# with: docker build --build-arg OTEL_ENABLED=true
|
|
55
65
|
ARG OTEL_ENABLED=true
|
|
56
|
-
RUN
|
|
57
|
-
|
|
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 \
|
|
58
69
|
@opentelemetry/instrumentation-http \
|
|
59
70
|
@opentelemetry/exporter-metrics-otlp-http \
|
|
60
71
|
@opentelemetry/exporter-trace-otlp-http \
|
|
@@ -95,5 +106,8 @@ ENV MCP_FORCE_CONSOLE_LOGGING="true"
|
|
|
95
106
|
# Expose the port the server listens on
|
|
96
107
|
EXPOSE ${MCP_HTTP_PORT}
|
|
97
108
|
|
|
109
|
+
HEALTHCHECK --interval=30s --timeout=5s --start-period=10s --retries=3 \
|
|
110
|
+
CMD bun -e "fetch('http://localhost:' + (process.env.MCP_HTTP_PORT || 3010) + '/healthz').then(r => process.exit(r.ok ? 0 : 1)).catch(() => process.exit(1))"
|
|
111
|
+
|
|
98
112
|
# The command to start the server
|
|
99
113
|
CMD ["bun", "run", "dist/index.js"]
|
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
|
|
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
|
-
[](./CHANGELOG.md) [](./LICENSE) [](https://github.com/users/cyanheads/packages/container/package/whois-mcp-server) [](https://modelcontextprotocol.io/) [](https://www.npmjs.com/package/@cyanheads/whois-mcp-server) [](https://www.typescriptlang.org/) [](https://bun.sh/)
|
|
11
11
|
|
|
12
12
|
</div>
|
|
13
13
|
|
|
@@ -61,9 +61,9 @@ Check whether a domain name is registered or available to register.
|
|
|
61
61
|
|
|
62
62
|
Fetch DNS records via DNS-over-HTTPS.
|
|
63
63
|
|
|
64
|
-
- Cloudflare
|
|
64
|
+
- Cloudflare primary, NextDNS fallback (CAA records always use NextDNS — Cloudflare returns raw hex wire format for them)
|
|
65
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 `
|
|
66
|
+
- Returns records with TTLs and the resolving source (`cloudflare` or `nextdns`)
|
|
67
67
|
- `nxdomain: true` in result (not an error) when the domain doesn't exist in DNS
|
|
68
68
|
|
|
69
69
|
---
|
|
@@ -116,8 +116,8 @@ Domain and network intelligence:
|
|
|
116
116
|
|
|
117
117
|
- RDAP over HTTPS — no port-43 TCP dependency, runs on Node, Bun, and Cloudflare Workers
|
|
118
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
|
|
120
|
-
- No API keys required — all sources (IANA, registry RDAP endpoints, RIR RDAP, Cloudflare DoH,
|
|
119
|
+
- DNS-over-HTTPS via Cloudflare and NextDNS — resilient dual-provider with per-type routing (NextDNS for CAA; Cloudflare for all others)
|
|
120
|
+
- No API keys required — all sources (IANA, registry RDAP endpoints, RIR RDAP, Cloudflare DoH, NextDNS DoH) are public and keyless
|
|
121
121
|
|
|
122
122
|
Agent-friendly output:
|
|
123
123
|
|
|
@@ -282,7 +282,7 @@ The Dockerfile defaults to HTTP transport, stateless session mode, and logs to `
|
|
|
282
282
|
| `src/index.ts` | `createApp()` entry point — registers tools and inits services. |
|
|
283
283
|
| `src/config/` | Server-specific environment variable parsing and validation (Zod). |
|
|
284
284
|
| `src/services/rdap/` | RDAP client — IANA bootstrap cache, domain/IP/ASN lookup, retry. |
|
|
285
|
-
| `src/services/doh/` | DNS-over-HTTPS client — Cloudflare primary,
|
|
285
|
+
| `src/services/doh/` | DNS-over-HTTPS client — Cloudflare primary, NextDNS fallback. |
|
|
286
286
|
| `src/mcp-server/tools/` | Tool definitions (`*.tool.ts`). |
|
|
287
287
|
| `tests/` | Vitest tests mirroring `src/`. |
|
|
288
288
|
| `docs/` | Design and API reference documents. |
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
---
|
|
2
|
+
summary: "Adopt mcp-ts-core 0.10.6 — server identity fields, Docker healthcheck; input-validation errors reclassified to ValidationError"
|
|
3
|
+
breaking: false
|
|
4
|
+
security: false
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# 0.1.3 — 2026-06-12
|
|
8
|
+
|
|
9
|
+
## Added
|
|
10
|
+
|
|
11
|
+
- **Server identity** — `createApp()` now sets `name` and `title` to `whois-mcp-server`, forwarded to the SDK `initialize` response and the `/.well-known/mcp.json` manifest.
|
|
12
|
+
- **Docker `HEALTHCHECK`** polling `/healthz`, plus an `APP_VERSION` build arg wired to the `org.opencontainers.image.version` OCI label.
|
|
13
|
+
|
|
14
|
+
## Changed
|
|
15
|
+
|
|
16
|
+
- **Input-validation errors reclassified** from JSON-RPC `InvalidParams` (-32602) to `ValidationError`. Covers `invalid_domain`, `invalid_asn`, `invalid_ip`, and `private_range` across all six tool contracts.
|
|
17
|
+
- **`.codex-plugin` `interface.displayName`** unscoped to `whois-mcp-server` (was `@cyanheads/whois-mcp-server`).
|
|
18
|
+
- **`bundle` script** runs `scripts/clean-mcpb.ts` after `mcpb pack` — `mcpb clean` dev-dependency prune plus an exact-name strip of dependency-shipped agent docs (`skills/`, `.claude/`, `.agents/`, `SKILL.md`) nested under `node_modules/` that root-anchored `.mcpbignore` patterns cannot reach.
|
|
19
|
+
- **`.mcpbignore` patterns** root-anchored (`/.claude/`, `/skills/`, `/Dockerfile`, …) so they match only top-level entries.
|
|
20
|
+
|
|
21
|
+
## Dependency bumps
|
|
22
|
+
|
|
23
|
+
- `@cyanheads/mcp-ts-core` `^0.9.21` → `^0.10.6`
|
|
24
|
+
- `@types/node` `25.9.2` → `25.9.3`
|
|
@@ -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)
|