@cyanheads/browser-compat-mcp-server 0.1.5 → 0.2.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.
Files changed (56) hide show
  1. package/AGENTS.md +7 -6
  2. package/CLAUDE.md +7 -6
  3. package/Dockerfile +67 -50
  4. package/README.md +16 -10
  5. package/THIRD_PARTY_NOTICES.md +1 -1
  6. package/changelog/0.2.x/0.2.0.md +40 -0
  7. package/dist/index.js +1 -1
  8. package/dist/index.js.map +1 -1
  9. package/dist/mcp-server/tools/definitions/browsercompat-check-baseline.tool.d.ts.map +1 -1
  10. package/dist/mcp-server/tools/definitions/browsercompat-check-baseline.tool.js +21 -16
  11. package/dist/mcp-server/tools/definitions/browsercompat-check-baseline.tool.js.map +1 -1
  12. package/dist/mcp-server/tools/definitions/browsercompat-compare-support.tool.d.ts +33 -2
  13. package/dist/mcp-server/tools/definitions/browsercompat-compare-support.tool.d.ts.map +1 -1
  14. package/dist/mcp-server/tools/definitions/browsercompat-compare-support.tool.js +264 -89
  15. package/dist/mcp-server/tools/definitions/browsercompat-compare-support.tool.js.map +1 -1
  16. package/dist/mcp-server/tools/definitions/browsercompat-get-feature.tool.d.ts +11 -0
  17. package/dist/mcp-server/tools/definitions/browsercompat-get-feature.tool.d.ts.map +1 -1
  18. package/dist/mcp-server/tools/definitions/browsercompat-get-feature.tool.js +66 -21
  19. package/dist/mcp-server/tools/definitions/browsercompat-get-feature.tool.js.map +1 -1
  20. package/dist/mcp-server/tools/definitions/browsercompat-list-reference.tool.d.ts.map +1 -1
  21. package/dist/mcp-server/tools/definitions/browsercompat-list-reference.tool.js +7 -6
  22. package/dist/mcp-server/tools/definitions/browsercompat-list-reference.tool.js.map +1 -1
  23. package/dist/mcp-server/tools/definitions/browsercompat-search-features.tool.d.ts.map +1 -1
  24. package/dist/mcp-server/tools/definitions/browsercompat-search-features.tool.js +25 -18
  25. package/dist/mcp-server/tools/definitions/browsercompat-search-features.tool.js.map +1 -1
  26. package/dist/mcp-server/tools/definitions/compat-shapes.d.ts +1 -1
  27. package/dist/mcp-server/tools/definitions/compat-shapes.d.ts.map +1 -1
  28. package/dist/mcp-server/tools/definitions/compat-shapes.js +16 -13
  29. package/dist/mcp-server/tools/definitions/compat-shapes.js.map +1 -1
  30. package/dist/services/bcd/bcd-service.d.ts +4 -1
  31. package/dist/services/bcd/bcd-service.d.ts.map +1 -1
  32. package/dist/services/bcd/bcd-service.js +56 -14
  33. package/dist/services/bcd/bcd-service.js.map +1 -1
  34. package/dist/services/bcd/bcd-text.d.ts +11 -0
  35. package/dist/services/bcd/bcd-text.d.ts.map +1 -0
  36. package/dist/services/bcd/bcd-text.js +127 -0
  37. package/dist/services/bcd/bcd-text.js.map +1 -0
  38. package/dist/services/data-version/data-version-service.d.ts.map +1 -1
  39. package/dist/services/data-version/data-version-service.js +4 -3
  40. package/dist/services/data-version/data-version-service.js.map +1 -1
  41. package/dist/services/search/search-service.d.ts +2 -6
  42. package/dist/services/search/search-service.d.ts.map +1 -1
  43. package/dist/services/search/search-service.js +3 -23
  44. package/dist/services/search/search-service.js.map +1 -1
  45. package/dist/services/targets/targets-service.d.ts +11 -6
  46. package/dist/services/targets/targets-service.d.ts.map +1 -1
  47. package/dist/services/targets/targets-service.js +12 -7
  48. package/dist/services/targets/targets-service.js.map +1 -1
  49. package/dist/services/targets/types.d.ts +7 -2
  50. package/dist/services/targets/types.d.ts.map +1 -1
  51. package/dist/utils/markdown-text.d.ts +11 -0
  52. package/dist/utils/markdown-text.d.ts.map +1 -0
  53. package/dist/utils/markdown-text.js +57 -0
  54. package/dist/utils/markdown-text.js.map +1 -0
  55. package/package.json +9 -9
  56. package/server.json +3 -3
package/AGENTS.md CHANGED
@@ -1,8 +1,8 @@
1
1
  # Developer Protocol
2
2
 
3
3
  **Server:** browser-compat-mcp-server
4
- **Version:** 0.1.5
5
- **Framework:** [@cyanheads/mcp-ts-core](https://www.npmjs.com/package/@cyanheads/mcp-ts-core) `^0.13.9`
4
+ **Version:** 0.2.0
5
+ **Framework:** [@cyanheads/mcp-ts-core](https://www.npmjs.com/package/@cyanheads/mcp-ts-core) `^0.13.10`
6
6
  **Engines:** Bun ≥1.4.0, Node ≥24.0.0
7
7
  **MCP SDK:** `@modelcontextprotocol/server` ^2.1.0
8
8
  **Zod:** ^4.6.5
@@ -208,11 +208,12 @@ Handlers receive a unified `ctx` object. Key properties:
208
208
  | `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. |
209
209
  | `ctx.state` | Tenant-scoped KV — `.get(key)`, `.set(key, value, { ttl? })`, `.delete(key)`, `.getMany(keys)`, `.list(prefix, { cursor, limit })`. Accepts any JSON-serializable value; reads return its JSON form (a `Date` comes back as an ISO string). |
210
210
  | `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. |
211
- | `ctx.inputs` | Reader over a retried request's responses — `.accepted(key, schema)`, `.view(key)`, `.state()`, `.dropped`. Empty on the first round. |
211
+ | `ctx.inputs` | The request's responses — `.accepted(key, schema)`, `.view(key)`, `.state()`, `.dropped` — limited to what the client declared (`elicitation` and its form/url modes, `sampling`, `roots`). Client-supplied: a consent gate trusts only a `ctx.state` record it stored when it asked, bound to the operation, caller, and target (see the `api-context` skill). |
212
+ | `ctx.clientCapabilities` | What the client declared for this request, `undefined` when no view exists. Decides whether to ask for optional context (e.g. roots); never a reason to skip a consent prompt. |
212
213
  | `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). |
213
214
  | `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`. |
214
215
  | `ctx.signal` | `AbortSignal` for cancellation. |
215
- | `ctx.requestId` | Unique request ID. |
216
+ | `ctx.requestId` | Request ID — the one every log record of the call carries and its error envelope returns as `data.requestId`. |
216
217
  | `ctx.tenantId` | Tenant ID from JWT; `'default'` for stdio or HTTP with auth off. |
217
218
 
218
219
  ---
@@ -221,7 +222,7 @@ Handlers receive a unified `ctx` object. Key properties:
221
222
 
222
223
  Handlers throw — the framework catches, classifies, and formats.
223
224
 
224
- **Recommended: typed error contract.** Declare `errors: [{ reason, code, when, recovery, retryable?, severity?, thrownBy? }]` 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 unless the message already contains it verbatim); override with an explicit `{ recovery: { hint: '...' } }` when dynamic runtime context matters. Forwarding it is lint-enforced per throw site (`error-contract-recovery-unforwarded`). Mark an entry the service layer throws with `thrownBy: 'service'` so `error-contract-unthrown` skips it — lint-only metadata, nothing at runtime reads it. Baseline codes (`InternalError`, `ServiceUnavailable`, `Timeout`, `ValidationError`, `SerializationError`, `RequestCancelled`) bubble freely and don't need declaring.
225
+ **Recommended: typed error contract.** Declare `errors: [{ reason, code, when, recovery, retryable?, severity?, thrownBy? }]` 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. The framework puts it on the wire whenever a failure carrying that `reason` arrives without a hint — a bare `ctx.fail('reason')` or a service throw with `data: { reason }` — as `data.recovery.hint`, mirrored into `content[]` text unless the message already contains it verbatim; override with an explicit `{ recovery: { hint: '...' } }` when dynamic runtime context matters. Every error envelope also carries `data.requestId`, the id the server's log records for that call carry, and `content[]` closes with `(reason … · request <id>)`. Mark an entry the service layer throws with `thrownBy: 'service'` so `error-contract-unthrown` skips it — lint-only metadata, nothing at runtime reads it. Baseline codes (`InternalError`, `ServiceUnavailable`, `Timeout`, `ValidationError`, `SerializationError`, `RequestCancelled`) bubble freely and don't need declaring.
225
226
 
226
227
  ```ts
227
228
  import { JsonRpcErrorCode } from '@cyanheads/mcp-ts-core/errors';
@@ -233,7 +234,7 @@ errors: [
233
234
  ],
234
235
  async handler(input, ctx) {
235
236
  const item = await db.find(input.id);
236
- if (!item) throw ctx.fail('no_match', `No item ${input.id}`, ctx.recoveryFor('no_match'));
237
+ if (!item) throw ctx.fail('no_match', `No item ${input.id}`);
237
238
  return item;
238
239
  }
239
240
  ```
package/CLAUDE.md CHANGED
@@ -1,8 +1,8 @@
1
1
  # Developer Protocol
2
2
 
3
3
  **Server:** browser-compat-mcp-server
4
- **Version:** 0.1.5
5
- **Framework:** [@cyanheads/mcp-ts-core](https://www.npmjs.com/package/@cyanheads/mcp-ts-core) `^0.13.9`
4
+ **Version:** 0.2.0
5
+ **Framework:** [@cyanheads/mcp-ts-core](https://www.npmjs.com/package/@cyanheads/mcp-ts-core) `^0.13.10`
6
6
  **Engines:** Bun ≥1.4.0, Node ≥24.0.0
7
7
  **MCP SDK:** `@modelcontextprotocol/server` ^2.1.0
8
8
  **Zod:** ^4.6.5
@@ -208,11 +208,12 @@ Handlers receive a unified `ctx` object. Key properties:
208
208
  | `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. |
209
209
  | `ctx.state` | Tenant-scoped KV — `.get(key)`, `.set(key, value, { ttl? })`, `.delete(key)`, `.getMany(keys)`, `.list(prefix, { cursor, limit })`. Accepts any JSON-serializable value; reads return its JSON form (a `Date` comes back as an ISO string). |
210
210
  | `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. |
211
- | `ctx.inputs` | Reader over a retried request's responses — `.accepted(key, schema)`, `.view(key)`, `.state()`, `.dropped`. Empty on the first round. |
211
+ | `ctx.inputs` | The request's responses — `.accepted(key, schema)`, `.view(key)`, `.state()`, `.dropped` — limited to what the client declared (`elicitation` and its form/url modes, `sampling`, `roots`). Client-supplied: a consent gate trusts only a `ctx.state` record it stored when it asked, bound to the operation, caller, and target (see the `api-context` skill). |
212
+ | `ctx.clientCapabilities` | What the client declared for this request, `undefined` when no view exists. Decides whether to ask for optional context (e.g. roots); never a reason to skip a consent prompt. |
212
213
  | `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). |
213
214
  | `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`. |
214
215
  | `ctx.signal` | `AbortSignal` for cancellation. |
215
- | `ctx.requestId` | Unique request ID. |
216
+ | `ctx.requestId` | Request ID — the one every log record of the call carries and its error envelope returns as `data.requestId`. |
216
217
  | `ctx.tenantId` | Tenant ID from JWT; `'default'` for stdio or HTTP with auth off. |
217
218
 
218
219
  ---
@@ -221,7 +222,7 @@ Handlers receive a unified `ctx` object. Key properties:
221
222
 
222
223
  Handlers throw — the framework catches, classifies, and formats.
223
224
 
224
- **Recommended: typed error contract.** Declare `errors: [{ reason, code, when, recovery, retryable?, severity?, thrownBy? }]` 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 unless the message already contains it verbatim); override with an explicit `{ recovery: { hint: '...' } }` when dynamic runtime context matters. Forwarding it is lint-enforced per throw site (`error-contract-recovery-unforwarded`). Mark an entry the service layer throws with `thrownBy: 'service'` so `error-contract-unthrown` skips it — lint-only metadata, nothing at runtime reads it. Baseline codes (`InternalError`, `ServiceUnavailable`, `Timeout`, `ValidationError`, `SerializationError`, `RequestCancelled`) bubble freely and don't need declaring.
225
+ **Recommended: typed error contract.** Declare `errors: [{ reason, code, when, recovery, retryable?, severity?, thrownBy? }]` 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. The framework puts it on the wire whenever a failure carrying that `reason` arrives without a hint — a bare `ctx.fail('reason')` or a service throw with `data: { reason }` — as `data.recovery.hint`, mirrored into `content[]` text unless the message already contains it verbatim; override with an explicit `{ recovery: { hint: '...' } }` when dynamic runtime context matters. Every error envelope also carries `data.requestId`, the id the server's log records for that call carry, and `content[]` closes with `(reason … · request <id>)`. Mark an entry the service layer throws with `thrownBy: 'service'` so `error-contract-unthrown` skips it — lint-only metadata, nothing at runtime reads it. Baseline codes (`InternalError`, `ServiceUnavailable`, `Timeout`, `ValidationError`, `SerializationError`, `RequestCancelled`) bubble freely and don't need declaring.
225
226
 
226
227
  ```ts
227
228
  import { JsonRpcErrorCode } from '@cyanheads/mcp-ts-core/errors';
@@ -233,7 +234,7 @@ errors: [
233
234
  ],
234
235
  async handler(input, ctx) {
235
236
  const item = await db.find(input.id);
236
- if (!item) throw ctx.fail('no_match', `No item ${input.id}`, ctx.recoveryFor('no_match'));
237
+ if (!item) throw ctx.fail('no_match', `No item ${input.id}`);
237
238
  return item;
238
239
  }
239
240
  ```
package/Dockerfile CHANGED
@@ -5,10 +5,10 @@
5
5
  # source code into JavaScript, and prepares the production assets.
6
6
  #
7
7
  # Pinned to $BUILDPLATFORM rather than the target platform: `bun run build` emits
8
- # JavaScript, and only `dist/` crosses into the production stage, which runs its
9
- # own target-arch install. Built for the target instead, the non-native leg of a
10
- # `--platform linux/amd64,linux/arm64` build runs under QEMU, where bun >= 1.4
11
- # aborts with a JavaScriptCore allocator assertion and fails the multi-arch push.
8
+ # JavaScript, and only `dist/` crosses into the production stage. Built for the
9
+ # target instead, the non-native leg of a `--platform linux/amd64,linux/arm64`
10
+ # build runs under QEMU, where bun >= 1.4 aborts with a JavaScriptCore allocator
11
+ # assertion and fails the multi-arch push.
12
12
  #
13
13
  # The constraint this assumes: the build stage produces platform-independent
14
14
  # output. A stage that compiles a native addon needs the target-arch toolchain
@@ -34,80 +34,97 @@ RUN bun run build
34
34
 
35
35
 
36
36
  # ==============================================================================
37
- # Production Stage
37
+ # Production Dependencies Stage
38
38
  #
39
- # This stage creates a minimal, optimized, and secure image for running the
40
- # application. It uses a slim base image and only includes production
41
- # dependencies and build artifacts.
39
+ # Installs the production dependency tree for the target platform. Every step
40
+ # here can run JavaScript — bunfig.toml's security scanner runs as a Bun
41
+ # program, and so does the OTel script — so the stage runs on $BUILDPLATFORM
42
+ # and cross-installs with `--os`/`--cpu`, which pick each platform-specific
43
+ # optional dependency (native bindings such as DuckDB's) for the target. Only
44
+ # `node_modules` leaves this stage.
45
+ #
46
+ # A clean image rather than `FROM build`: the build stage's node_modules holds
47
+ # devDependencies.
42
48
  # ==============================================================================
43
- FROM oven/bun:1.4.2-slim AS production
49
+ FROM --platform=$BUILDPLATFORM oven/bun:1.4.2 AS deps
44
50
 
45
51
  WORKDIR /usr/src/app
46
52
 
47
- # Set the environment to production for performance and to ensure only
48
- # production dependencies are installed.
49
- ENV NODE_ENV=production
50
-
51
- # OCI image metadata (https://github.com/opencontainers/image-spec/blob/main/annotations.md)
52
- ARG APP_VERSION
53
- LABEL org.opencontainers.image.title="browser-compat-mcp-server"
54
- LABEL org.opencontainers.image.description="Browser compatibility and Baseline status for any web feature — offline, from MDN's browser-compat-data, web-features, and caniuse."
55
- LABEL org.opencontainers.image.licenses="Apache-2.0"
56
- LABEL org.opencontainers.image.version="${APP_VERSION}"
57
- LABEL org.opencontainers.image.source="https://github.com/cyanheads/browser-compat-mcp-server"
58
-
59
53
  # Copy dependency manifests. `bunfig.toml` rides along so every install below
60
54
  # passes its release-age gate and security scanner, as a local install does.
61
55
  COPY package.json bun.lock bunfig.toml ./
62
56
 
63
57
  # The scanner bunfig.toml names is a devDependency, and Bun installs a missing
64
58
  # scanner through the same production-filtered install, which omits it and
65
- # aborts. Seed it from the build stage's full install instead. Remove this line
66
- # together with the scanner if bunfig.toml stops naming one.
59
+ # aborts. Seed it from the build stage's full install instead. Remove this line,
60
+ # and the `rm` at the end of this stage, if bunfig.toml stops naming a scanner.
67
61
  COPY --from=build /usr/src/app/node_modules/@socketsecurity/bun-security-scanner ./node_modules/@socketsecurity/bun-security-scanner
68
62
 
63
+ # Docker names the target architecture `amd64`/`arm64`; Bun's `--cpu` takes
64
+ # `x64`/`arm64`. Mapped once here, read by both installs below. `oven/bun`
65
+ # publishes only these two architectures, so any other target fails here.
66
+ ARG TARGETOS
67
+ ARG TARGETARCH
68
+ RUN case "$TARGETARCH" in \
69
+ amd64) echo x64 ;; \
70
+ arm64) echo arm64 ;; \
71
+ *) echo "Unsupported TARGETARCH '$TARGETARCH': expected amd64 or arm64" >&2; exit 1 ;; \
72
+ esac > .bun-cpu
73
+
69
74
  # Install only production dependencies, ignoring any lifecycle scripts (like 'prepare')
70
75
  # that are not needed in the final production image.
71
76
  # `--omit=peer` drops the framework's optional peer tiers (test runner, service
72
77
  # SDKs, parsers) that Bun would otherwise auto-install. Anything this server
73
78
  # actually imports belongs in its own `dependencies`, so nothing needed at
74
- # runtime is lost. The OTEL step below carries the same flag — without it, that
75
- # install re-resolves the graph and pulls every optional peer back in.
79
+ # runtime is lost.
76
80
  RUN --mount=type=cache,target=/root/.bun/install/cache \
77
- bun install --production --omit=peer --frozen-lockfile --ignore-scripts
81
+ bun install --production --omit=peer --frozen-lockfile --ignore-scripts \
82
+ --os="$TARGETOS" --cpu="$(cat .bun-cpu)"
78
83
 
79
84
  # Conditionally install OpenTelemetry optional peer dependencies (Tier 3).
80
85
  # Installed by default. Omit them for a leaner image at build time
81
86
  # with: docker build --build-arg OTEL_ENABLED=false
82
- # Each package is requested at the range the installed framework declares in
83
- # `peerDependencies`, so the resolution stays inside the framework's tested
84
- # peer range; a name with no declared range fails the build.
87
+ # The script reads the list and each range from the installed framework's
88
+ # `peerDependencies` and passes the target flags on to its `bun install`.
89
+ COPY scripts/install-otel.ts ./scripts/
85
90
  ARG OTEL_ENABLED=true
86
91
  RUN --mount=type=cache,target=/root/.bun/install/cache \
87
92
  if [ "$OTEL_ENABLED" = "true" ]; then \
88
- specs=$(bun -e ' \
89
- const { peerDependencies: peers } = await Bun.file("node_modules/@cyanheads/mcp-ts-core/package.json").json(); \
90
- const names = process.argv.slice(1); \
91
- const missing = names.filter((name) => !peers?.[name]); \
92
- if (missing.length > 0) throw new Error(`no peerDependencies range for ${missing.join(", ")}`); \
93
- console.log(names.map((name) => `${name}@${peers[name]}`).join(" ")); \
94
- ' \
95
- @hono/otel \
96
- @opentelemetry/api-logs \
97
- @opentelemetry/exporter-logs-otlp-http \
98
- @opentelemetry/exporter-metrics-otlp-http \
99
- @opentelemetry/exporter-trace-otlp-http \
100
- @opentelemetry/instrumentation-http \
101
- @opentelemetry/instrumentation-pino \
102
- @opentelemetry/resources \
103
- @opentelemetry/sdk-logs \
104
- @opentelemetry/sdk-metrics \
105
- @opentelemetry/sdk-node \
106
- @opentelemetry/sdk-trace-node \
107
- @opentelemetry/semantic-conventions) \
108
- && bun add --omit=dev --omit=peer --ignore-scripts $specs; \
93
+ bun scripts/install-otel.ts --os="$TARGETOS" --cpu="$(cat .bun-cpu)"; \
109
94
  fi
110
95
 
96
+ # The seeded scanner served only the installs above; keep it out of the image.
97
+ RUN rm -rf node_modules/@socketsecurity/bun-security-scanner
98
+
99
+
100
+ # ==============================================================================
101
+ # Production Stage
102
+ #
103
+ # This stage creates a minimal, optimized, and secure image for running the
104
+ # application. It uses a slim base image and only includes production
105
+ # dependencies and build artifacts. Its only Bun invocations are HEALTHCHECK
106
+ # and CMD, which run on the real target at container start.
107
+ # ==============================================================================
108
+ FROM oven/bun:1.4.2-slim AS production
109
+
110
+ WORKDIR /usr/src/app
111
+
112
+ # Set the environment to production for performance.
113
+ ENV NODE_ENV=production
114
+
115
+ # OCI image metadata (https://github.com/opencontainers/image-spec/blob/main/annotations.md)
116
+ ARG APP_VERSION
117
+ LABEL org.opencontainers.image.title="browser-compat-mcp-server"
118
+ LABEL org.opencontainers.image.description="Browser compatibility and Baseline status for any web feature — offline, from MDN's browser-compat-data, web-features, and caniuse."
119
+ LABEL org.opencontainers.image.licenses="Apache-2.0"
120
+ LABEL org.opencontainers.image.version="${APP_VERSION}"
121
+ LABEL org.opencontainers.image.source="https://github.com/cyanheads/browser-compat-mcp-server"
122
+
123
+ # The manifest comes from the build context: the deps stage's copy was rewritten
124
+ # by the OTel install, and the runtime reads only its name, version, and type.
125
+ COPY package.json ./
126
+ COPY --from=deps /usr/src/app/node_modules ./node_modules
127
+
111
128
  # Copy the compiled application code from the build stage
112
129
  COPY --from=build /usr/src/app/dist ./dist
113
130
 
package/README.md CHANGED
@@ -39,7 +39,7 @@ Web platform compatibility for frontend work: per-browser support from MDN's `@m
39
39
  | `browsercompat_get_feature` | Full compatibility record for one feature: Baseline state, standards status, per-browser versions with flags and prefixes, MDN and specification links. |
40
40
  | `browsercompat_check_baseline` | Ship-or-not across up to 20 features: Baseline state and date, the limiting browser, deprecation flags, and the traffic share requiring it would exclude. |
41
41
  | `browsercompat_search_features` | Find features by plain name, keyword, or code notation when the canonical key is unknown, ranked with the field that matched, filterable by group or ECMAScript snapshot, and pageable. |
42
- | `browsercompat_compare_support` | Check features against an explicit browserslist target query, reporting the failing target per feature and every target that could not be evaluated. |
42
+ | `browsercompat_compare_support` | Check features against an explicit browserslist target query: a whole-query verdict and evaluated coverage per feature, with the failing and unevaluated target rows paged ten query targets at a time. |
43
43
 
44
44
  ---
45
45
 
@@ -57,13 +57,16 @@ Web platform compatibility for frontend work: per-browser support from MDN's `@m
57
57
  - One `feature`, 1–200 characters: a BCD key (`css.selectors.has`) or web-features id (`has`). `resolve: true` accepts a name or notation only when the best exact matches name one feature: one key resolves directly, several keys of one feature return `compat_keys`, and two features are a miss. Off by default.
58
58
  - `outcome` is `found`, `no_compat_data`, or `miss`; `resolved_as` records the match. A miss returns `found: false` with `guidance`. A multi-key id omits `support`, `status`, `limiting_browser`, `mdn_url`, and `spec_urls`; use `compat_keys` for a specific call. Whitespace-only input returns `invalid_feature_input`.
59
59
  - `include_runtimes: true` adds `bun`, `deno`, `nodejs`, and `oculus` support to the 13 desktop and mobile browser rows.
60
+ - Feature-level `discouraged` is independent of BCD `status`; `status.discouraged` remains a compatibility alias when status exists. Unsupported and preview-only rows retain their available notes and tracking links.
61
+ - `limiting_browser` appears only when every Baseline core browser has full, unprefixed, unflagged support at a resolvable added release.
62
+ - A key with direct callable children returns `subkeys: { total, keys, truncated, next_offset? }`, at most 100 at a time. Continue with `subkeys_offset` (integer ≥0, default 0). Call one child with this tool or up to 20 with `browsercompat_check_baseline`; grandchildren and structural nodes are excluded.
60
63
 
61
64
  ---
62
65
 
63
66
  ### `browsercompat_check_baseline` <sub>tool</sub>
64
67
 
65
68
  - Up to 20 BCD keys or web-features ids, 1–200 characters each, with one result per entry in input order. A whitespace-only entry returns `invalid_feature_input`.
66
- - Results carry Baseline state and dates, `limiting_browser`, `deprecated`, `experimental`, `discouraged`, and `usage_percent_excluded` with its `usage_source`. Usage is absent, never zero, when no caniuse id exists.
69
+ - Results carry Baseline state and dates, `limiting_browser` under the full-support condition above, `deprecated`, `experimental`, and `discouraged`. `usage_percent_excluded` and `usage_source` describe the caniuse feature: a BCD key receives them only when it is the feature's sole declared compat key. Usage is absent when the scope differs or caniuse data is missing, never a fabricated zero.
67
70
  - `all_widely_available` requires every entry to resolve at `widely`; one miss makes it false, and it does not assess deprecation.
68
71
 
69
72
  ---
@@ -79,8 +82,10 @@ Web platform compatibility for frontend work: per-browser support from MDN's `@m
79
82
  ### `browsercompat_compare_support` <sub>tool</sub>
80
83
 
81
84
  - Up to 20 features against a required `targets` browserslist query, such as `defaults` or `> 0.5%, last 2 versions`; local browserslist config is never used. Typed failures: `invalid_target_query`, `no_targets_resolved`, `invalid_feature_input`.
82
- - Each `verdict` is `clears`, `fails`, `inconclusive`, `miss`, or `ambiguous`. `failing_targets` names targets with `partial`, `prefixed`, `flagged`, `removed`, `unsupported`, or `preview_only` support.
83
- - `unchecked_targets` carries `no_bcd_browser`, `unknown_version`, or `no_bcd_data`; `all_clear` requires it to be empty. The response also includes caniuse-derived `target_coverage_percent` and `unchecked_coverage_percent`.
85
+ - Every call evaluates the whole query. Each `verdict` is `clears`, `fails`, `inconclusive`, `miss`, or `ambiguous`: `fails` when any evaluated target lacks support, `clears` only when every target in the query was evaluated and supports the feature, `inconclusive` otherwise. A query that includes a browser with no compatibility data, as `defaults` does, never clears. `all_clear` is true only when every feature clears.
86
+ - A target counts as evaluated only where compatibility data was read for it. Each compared result carries `failing_total`, `evaluated_total`, `evaluated_coverage_percent`, `unchecked_total`, and `unchecked_coverage_percent`. The top level carries `comparable_features`, `targets_resolved_total`, `evaluated_targets_total`, `unchecked_targets_total`, and the caniuse-derived `target_coverage_percent` and `unchecked_coverage_percent`: the share covered by the targets evaluated for every compared feature, and by the rest of the query.
87
+ - Target rows are paged with `target_offset` (integer ≥0, default 0) and `target_limit` (1–10, default 10). `targets_resolved` (the mapping inventory, each row flagged `evaluated`), `unchecked_targets`, and each result's `failing_targets` and `unchecked_targets` cover only the query targets on the page; verdicts, coverage, and totals are identical on every page. `totalCount` counts the targets in the query and `nextOffset` appears while more remain; an offset past the end returns the summaries with no rows and a notice.
88
+ - `failing_targets` names targets with `partial`, `prefixed`, `flagged`, `removed`, `unsupported`, or `preview_only` support. `unchecked_targets` carries `no_bcd_browser`, `unknown_version`, `no_bcd_data`, or `no_comparable_feature` — the last when every entry was a miss or ambiguous, so nothing was compared.
84
89
 
85
90
  ---
86
91
 
@@ -88,12 +93,12 @@ Web platform compatibility for frontend work: per-browser support from MDN's `@m
88
93
 
89
94
  | Package | Version | License | Supplies |
90
95
  |:---|:---|:---|:---|
91
- | [`@mdn/browser-compat-data`](https://github.com/mdn/browser-compat-data) | `^8.1.2` | CC0-1.0 | Per-browser support, standards status, MDN and specification links |
92
- | [`web-features`](https://github.com/web-platform-dx/web-features) | `^3.39.0` | Apache-2.0 | Baseline state and dates, discouraged flags, groups, ECMAScript snapshots |
93
- | [`caniuse-lite`](https://github.com/browserslist/caniuse-lite) | `^1.0.30001810` | CC-BY-4.0 | Usage weighting, plus feature titles for the search index |
94
- | [`browserslist`](https://github.com/browserslist/browserslist) | `^4.29.0` | MIT | Target query resolution and coverage figures |
96
+ | [`@mdn/browser-compat-data`](https://github.com/mdn/browser-compat-data) | `^8.1.3` | CC0-1.0 | Per-browser support, standards status, MDN and specification links |
97
+ | [`web-features`](https://github.com/web-platform-dx/web-features) | `^3.40.0` | Apache-2.0 | Baseline state and dates, discouraged flags, groups, ECMAScript snapshots |
98
+ | [`caniuse-lite`](https://github.com/browserslist/caniuse-lite) | `^1.0.30001812` | CC-BY-4.0 | Usage weighting, plus feature titles for the search index |
99
+ | [`browserslist`](https://github.com/browserslist/browserslist) | `^4.29.1` | MIT | Target query resolution and coverage figures |
95
100
 
96
- CC BY 4.0 requires attribution wherever the caniuse data travels, so every response carrying a usage figure carries this string: `Usage data from caniuse.com, © Can I Use contributors, CC BY 4.0. Figures are a share of the ~96.7% of global traffic caniuse tracks.` Full license texts and notices are in [`THIRD_PARTY_NOTICES.md`](./THIRD_PARTY_NOTICES.md).
101
+ CC BY 4.0 requires attribution wherever the caniuse data travels, so every response carrying a usage figure carries this string: `Usage data from caniuse.com, © Can I Use contributors, CC BY 4.0. Figures are a share of the ~97.3% of global traffic caniuse tracks.` Full license texts and notices are in [`THIRD_PARTY_NOTICES.md`](./THIRD_PARTY_NOTICES.md).
97
102
 
98
103
  ---
99
104
 
@@ -111,9 +116,10 @@ Browser-compat-specific:
111
116
  Agent-friendly output:
112
117
 
113
118
  - Every response echoes `data_version` — the version of each bundled dataset behind the answer, since a pinned snapshot goes stale on exactly the newest features
114
- - A verdict is never claimed for a browser that was not evaluated: unknown support moves the target into `unchecked_targets` and the feature to `inconclusive`
119
+ - A pass is never claimed for a browser that was not evaluated: a feature clears a target query only when compatibility data was read for every target in it, and a target without data is reported in `unchecked_targets` and makes the verdict `inconclusive`
115
120
  - Misses are results, not failures — `found: false` with `guidance` naming the next call, and typed error reasons carrying recovery hints for the input a caller has to fix
116
121
  - Usage figures state the population they are a share of, and carry the caniuse attribution on every response that reports one
122
+ - BCD markup becomes plain text with anchor labels and URLs preserved. Markdown renders literal names such as `<dialog>` visibly; structured text keeps the original plain-text element names.
117
123
 
118
124
  ---
119
125
 
@@ -247,7 +247,7 @@ data is conveyed, so alongside this file every tool response that quotes a usage
247
247
  carries this string verbatim in its `attribution` field:
248
248
 
249
249
  > Usage data from caniuse.com, © Can I Use contributors, CC BY 4.0. Figures are a share of
250
- > the ~96.7% of global traffic caniuse tracks.
250
+ > the ~97.3% of global traffic caniuse tracks.
251
251
 
252
252
  Full license: https://creativecommons.org/licenses/by/4.0/legalcode
253
253
 
@@ -0,0 +1,40 @@
1
+ ---
2
+ summary: "browsercompat_compare_support pages its target rows ten query targets at a time and counts a target as evaluated only where compatibility data was read, so a feature clears only when every target in the query was evaluated. Support notes and descriptions are plain text, and browsercompat_get_feature lists direct subkeys."
3
+ breaking: true
4
+ security: false
5
+ ---
6
+
7
+ # 0.2.0 — 2026-09-30
8
+
9
+ ## Added
10
+
11
+ - **`browsercompat_get_feature` returns `subkeys`** — the direct child keys of the resolved BCD key as `{ total, keys, truncated, next_offset? }`, at most 100 per response, continued with the new `subkeys_offset` input ([#16](https://github.com/cyanheads/browser-compat-mcp-server/issues/16)).
12
+ - **`notes` and `impl_url` on `unsupported` and `preview_only` support rows**, merged from the matching BCD statements in declaration order ([#11](https://github.com/cyanheads/browser-compat-mcp-server/issues/11)).
13
+ - **`browsercompat_compare_support` reports evaluation per feature**: `failing_total`, `evaluated_total`, `evaluated_coverage_percent`, `unchecked_total`, `unchecked_coverage_percent`, and `unchecked_targets` on each compared result, with top-level `comparable_features`, `targets_resolved_total`, `evaluated_targets_total`, and `unchecked_targets_total`. Each `targets_resolved` row carries `evaluated`.
14
+
15
+ ## Changed
16
+
17
+ - **`browsercompat_compare_support` pages its target rows** with `target_offset` (default 0) and `target_limit` (1–10, default 10). A query with more than 10 targets returns the first page of rows where it returned all of them; verdicts, coverage, and totals describe the whole query on every page ([#6](https://github.com/cyanheads/browser-compat-mcp-server/issues/6)).
18
+ - **`totalCount` on `browsercompat_compare_support` counts the targets in the query**, not the features. `shown`, `cap`, and `truncated` are always present, `nextOffset` continues while targets remain, and an offset past the end returns the summaries with an `offsetNotice`. `unchecked_targets` follow query order.
19
+ - **A feature clears only when every target in the query was evaluated and supports it.** With no failing target but any target not evaluated, the verdict is `inconclusive` where it read `clears`, so `defaults` no longer returns `clears` ([#7](https://github.com/cyanheads/browser-compat-mcp-server/issues/7)).
20
+ - **`target_coverage_percent` counts only targets whose compatibility data was read** for every compared feature. When no feature is comparable it is 0, and the mapped targets move to `unchecked_targets` with the new reason `no_comparable_feature`.
21
+ - **`support[].notes` and `description` are plain text** where they carried HTML: BCD markup is removed, entities are decoded once, and each link reads `label (url)` ([#9](https://github.com/cyanheads/browser-compat-mcp-server/issues/9)).
22
+ - **The Markdown text of all five tools escapes literal text**, so a name such as `<dialog>` renders visibly and URLs render as `<https://…>` autolinks. An underscore between two letters or digits is left unescaped, so `and_chr` and tool names stay copyable.
23
+ - **The caniuse attribution reads `~97.3%`** (was `~96.7%`) in `attribution`, `usage_source`, and `THIRD_PARTY_NOTICES.md`. The figure is a constant the tests check against the bundled data.
24
+ - **Docker image**: production dependencies install in a build-platform `deps` stage, with `scripts/install-otel.ts` adding the OpenTelemetry peers, so no target-platform stage runs JavaScript during a multi-arch build. `lint:packaging` enforces it.
25
+
26
+ ## Fixed
27
+
28
+ - **`browsercompat_get_feature` returns a top-level `discouraged`** for a discouraged feature whether or not the result carries a BCD `status`, including ids that span several keys. `status.discouraged` stays where it was populated ([#8](https://github.com/cyanheads/browser-compat-mcp-server/issues/8)).
29
+ - **`browsercompat_check_baseline` reports `usage_percent_excluded` and `usage_source` for a BCD key only when it is the feature's sole declared compat key.** Other keys omit both instead of borrowing the parent feature's figure ([#13](https://github.com/cyanheads/browser-compat-mcp-server/issues/13)).
30
+ - **`limiting_browser` requires full support in every Baseline core browser.** It is omitted when any core browser's support is partial, prefixed, flagged, or preview-only, in both `browsercompat_get_feature` and `browsercompat_check_baseline` ([#14](https://github.com/cyanheads/browser-compat-mcp-server/issues/14)).
31
+
32
+ ## Dependencies
33
+
34
+ - `@cyanheads/mcp-ts-core` ^0.13.9 → ^0.13.10 (the framework forwards each contract's recovery hint, so the explicit `ctx.recoveryFor()` calls are gone; 16 framework skills and `scripts/lint-packaging.ts` resynced)
35
+ - `@mdn/browser-compat-data` ^8.1.2 → ^8.1.3
36
+ - `web-features` ^3.39.0 → ^3.40.0 (the feature is now named `Container queries (size)`; the `resolve: true` examples follow)
37
+ - `caniuse-lite` ^1.0.30001810 → ^1.0.30001812
38
+ - `browserslist` ^4.29.0 → ^4.29.1
39
+ - `vitest` ^5.0.1 → ^5.0.2, `@vitest/coverage-istanbul` 5.0.1 → 5.0.2
40
+ - `@types/node` 26.6.2 → 26.6.3
package/dist/index.js CHANGED
@@ -30,7 +30,7 @@ await createApp({
30
30
  ],
31
31
  resources: [],
32
32
  prompts: [],
33
- instructions: 'Browser support and Baseline status for web platform features, served from bundled MDN browser-compat-data, web-features, and caniuse data — offline, no API key, no rate limit. Start at browsercompat_search_features when the feature key is unknown; browsercompat_get_feature returns the per-feature record and browsercompat_check_baseline answers ship-or-not across up to 20 features at once. Every tool takes one feature string that is either a BCD key (css.selectors.has) or a web-features id (has), and echoes resolved_as saying which namespace it matched; an unresolved feature comes back as found: false with guidance, never an error. browsercompat_compare_support requires an explicit browserslist query and reports unchecked_targets for target browsers with no compatibility data — a pass is never claimed for a browser that was not evaluated. browsercompat_list_reference enumerates the namespaces, browser ids, browserslist agents, Baseline states, groups, and snapshots the other tools expect. Every response echoes data_version; the data is a package snapshot, so a feature that shipped in the last few weeks may lag.',
33
+ instructions: 'Browser support and Baseline status for web platform features, served from bundled MDN browser-compat-data, web-features, and caniuse data — offline, no API key, no rate limit. Start at browsercompat_search_features when the feature key is unknown; browsercompat_get_feature returns the per-feature record and browsercompat_check_baseline answers ship-or-not across up to 20 features at once. Every tool takes one feature string that is either a BCD key (css.selectors.has) or a web-features id (has), and echoes resolved_as saying which namespace it matched; an unresolved feature comes back as found: false with guidance, never an error. browsercompat_compare_support requires an explicit browserslist query and evaluates all of it on every call: verdicts, coverage, and totals describe the whole query, while the target rows cover at most 10 query targets per call — pass nextOffset as target_offset for the next page. A feature clears only when every target in the query was evaluated and supports it; a target with no compatibility data is counted as unchecked and makes the verdict inconclusive, so a pass is never claimed for a browser that was not evaluated. browsercompat_list_reference enumerates the namespaces, browser ids, browserslist agents, Baseline states, groups, and snapshots the other tools expect. Every response echoes data_version; the data is a package snapshot, so a feature that shipped in the last few weeks may lag.',
34
34
  // Keyless public reference data — serve the full inventory without an auth gate.
35
35
  landing: { requireAuth: false },
36
36
  setup(core) {
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AACA;;;GAGG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AACnD,OAAO,EAAE,0BAA0B,EAAE,MAAM,qEAAqE,CAAC;AACjH,OAAO,EAAE,2BAA2B,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ACX,YAAY,EACV,s6CAAs6C;IACx6C,iFAAiF;IACjF,OAAO,EAAE,EAAE,WAAW,EAAE,KAAK,EAAE;IAE/B,KAAK,CAAC,IAAI;QACR,wEAAwE;QACxE,4EAA4E;QAC5E,qBAAqB;QACrB,OAAO,CAAC,GAAG,CAAC;YACV,aAAa,EAAE;YACf,kBAAkB,EAAE;YACpB,iBAAiB,EAAE;YACnB,gBAAgB,EAAE;YAClB,cAAc,EAAE;SACjB,CAAC,CAAC,KAAK,CAAC,CAAC,KAAc,EAAE,EAAE;YAC1B,IAAI,CAAC,MAAM,CAAC,KAAK,CACf,wBAAwB,EACxB,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAC1D,CAAC;QACJ,CAAC,CAAC,CAAC;IACL,CAAC;CACF,CAAC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"browsercompat-check-baseline.tool.d.ts","sourceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/browsercompat-check-baseline.tool.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAQ,CAAC,EAAE,MAAM,wBAAwB,CAAC;AACjD,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAwEjE,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAwMrC,CAAC"}
1
+ {"version":3,"file":"browsercompat-check-baseline.tool.d.ts","sourceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/browsercompat-check-baseline.tool.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAQ,CAAC,EAAE,MAAM,wBAAwB,CAAC;AACjD,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AA4EjE,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA6MrC,CAAC"}
@@ -10,10 +10,11 @@ import { getBaselineService } from '../../../services/baseline/baseline-service.
10
10
  import { resolveFeature } from '../../../services/baseline/feature-resolver.js';
11
11
  import { getBcdService } from '../../../services/bcd/bcd-service.js';
12
12
  import { DataVersionSchema, getDataVersion, renderDataVersion, } from '../../../services/data-version/data-version-service.js';
13
- import { CANIUSE_ATTRIBUTION, getTargetsService } from '../../../services/targets/targets-service.js';
13
+ import { CANIUSE_ATTRIBUTION, CANIUSE_TRACKED_PERCENT, getTargetsService, } from '../../../services/targets/targets-service.js';
14
+ import { markdownText } from '../../../utils/markdown-text.js';
14
15
  import { BaselineSchema, DiscouragedSchema, formatBaselineLine, LimitingBrowserSchema, ResolvedAsSchema, } from './compat-shapes.js';
15
16
  /** What the usage figure is a share of, stated on every result that carries one. */
16
- const USAGE_SOURCE = 'Share of the roughly 96.7% of global traffic caniuse tracks, not of all traffic.';
17
+ const USAGE_SOURCE = `Feature-level caniuse figure; reported for a BCD key only when it is the feature’s sole declared compat key. Share of the roughly ${CANIUSE_TRACKED_PERCENT}% of global traffic caniuse tracks, not of all traffic.`;
17
18
  const ResultSchema = z.object({
18
19
  input: z.string().describe('The feature string as the caller sent it.'),
19
20
  found: z.boolean().describe('True when the feature string resolved to a tracked entry.'),
@@ -23,7 +24,7 @@ const ResultSchema = z.object({
23
24
  resolved_as: ResolvedAsSchema.nullable().describe('How the feature string was matched, or null on a miss.'),
24
25
  name: z.string().optional().describe('web-features display name for the feature.'),
25
26
  baseline: BaselineSchema.optional().describe('Baseline state and the dates it crossed.'),
26
- limiting_browser: LimitingBrowserSchema.optional().describe('Among the Baseline core browsers, the one requiring the newest release.'),
27
+ limiting_browser: LimitingBrowserSchema.optional().describe('Among the Baseline core browsers, the one requiring the newest release. Present only when every core browser has full, unprefixed, unflagged support at a resolvable added release.'),
27
28
  deprecated: z
28
29
  .boolean()
29
30
  .optional()
@@ -36,7 +37,7 @@ const ResultSchema = z.object({
36
37
  usage_percent_excluded: z
37
38
  .number()
38
39
  .optional()
39
- .describe('Share of tracked global traffic that requiring this feature would exclude. Absent when the feature reaches no caniuse id — never zero in that case.'),
40
+ .describe('Feature-level share of tracked traffic excluded. A resolved BCD key receives it only when it is the feature’s sole declared compat key. Absent without caniuse data — never zero in that case.'),
40
41
  usage_source: z
41
42
  .string()
42
43
  .optional()
@@ -59,7 +60,7 @@ export const browsercompatCheckBaseline = tool('browsercompat_check_baseline', {
59
60
  resolve: z
60
61
  .boolean()
61
62
  .default(false)
62
- .describe('When true, an entry that is neither a key nor an id falls back to the search index, such as "Container queries" or "Element.prototype.animate". Its best exact matches are accepted only when they name one feature: a single key resolves to that key, several keys of one web-features feature resolve to the feature with its feature-level Baseline and compat_keys, and matches spanning two features are a miss. Off by default so a typo returns a miss you can correct.'),
63
+ .describe('When true, an entry that is neither a key nor an id falls back to the search index, such as "Container queries (size)" or "Element.prototype.animate". Its best exact matches are accepted only when they name one feature: a single key resolves to that key, several keys of one web-features feature resolve to the feature with its feature-level Baseline and compat_keys, and matches spanning two features are a miss. Off by default so a typo returns a miss you can correct.'),
63
64
  }),
64
65
  output: z.object({
65
66
  results: z
@@ -83,8 +84,8 @@ export const browsercompatCheckBaseline = tool('browsercompat_check_baseline', {
83
84
  },
84
85
  enrichmentTrailer: {
85
86
  data_version: { render: renderDataVersion },
86
- attribution: { label: 'Usage data' },
87
- unresolvedNotice: { label: 'Unresolved' },
87
+ attribution: { render: (value) => `**Usage data:** ${markdownText(value ?? '')}` },
88
+ unresolvedNotice: { render: (value) => `**Unresolved:** ${markdownText(value ?? '')}` },
88
89
  },
89
90
  errors: [
90
91
  {
@@ -138,7 +139,11 @@ export const browsercompatCheckBaseline = tool('browsercompat_check_baseline', {
138
139
  : undefined;
139
140
  const limiting = leaf === undefined ? undefined : bcd.limitingBrowser(leaf, baseline.coreBrowserIds);
140
141
  const discouraged = featureId === null ? undefined : baseline.discouraged(featureId);
141
- const excluded = featureId === null ? undefined : targets.excludedUsage(baseline.caniuseIds(featureId));
142
+ const featureKeys = featureId === null ? [] : baseline.compatKeys(featureId);
143
+ const usageMatches = key === null || (featureKeys.length === 1 && featureKeys[0] === key);
144
+ const excluded = featureId === null || !usageMatches
145
+ ? undefined
146
+ : targets.excludedUsage(baseline.caniuseIds(featureId));
142
147
  if (excluded !== undefined)
143
148
  anyUsage = true;
144
149
  results.push({
@@ -179,33 +184,33 @@ export const browsercompatCheckBaseline = tool('browsercompat_check_baseline', {
179
184
  lines.push(`**all_widely_available:** ${result.all_widely_available}`);
180
185
  for (const item of result.results) {
181
186
  lines.push('');
182
- lines.push(`## ${item.name ?? item.input}`);
183
- lines.push(`**input:** ${item.input} · **found:** ${item.found} · **outcome:** ${item.outcome}`);
187
+ lines.push(`## ${markdownText(item.name ?? item.input)}`);
188
+ lines.push(`**input:** ${markdownText(item.input)} · **found:** ${item.found} · **outcome:** ${item.outcome}`);
184
189
  if (item.resolved_as) {
185
- lines.push(`**Resolved:** "${item.resolved_as.input}" → bcd_key ${item.resolved_as.bcd_key ?? 'none'} · baseline_id ${item.resolved_as.baseline_id ?? 'none'} · via ${item.resolved_as.resolved_via}`);
190
+ lines.push(`**Resolved:** "${markdownText(item.resolved_as.input)}" → bcd_key ${markdownText(item.resolved_as.bcd_key ?? 'none')} · baseline_id ${markdownText(item.resolved_as.baseline_id ?? 'none')} · via ${item.resolved_as.resolved_via}`);
186
191
  }
187
192
  if (item.baseline)
188
193
  lines.push(formatBaselineLine(item.baseline));
189
194
  if (item.limiting_browser) {
190
- lines.push(`**Limiting browser:** ${item.limiting_browser.name} (${item.limiting_browser.browser_id}) ${item.limiting_browser.version}`);
195
+ lines.push(`**Limiting browser:** ${markdownText(item.limiting_browser.name)} (${markdownText(item.limiting_browser.browser_id)}) ${markdownText(item.limiting_browser.version)} — full support in every core browser`);
191
196
  }
192
197
  if (item.deprecated !== undefined)
193
198
  lines.push(`**deprecated:** ${item.deprecated}`);
194
199
  if (item.experimental !== undefined)
195
200
  lines.push(`**experimental:** ${item.experimental}`);
196
201
  if (item.discouraged) {
197
- lines.push(`**Discouraged:** ${item.discouraged.reason} (according_to ${item.discouraged.according_to.join(', ')})`);
202
+ lines.push(`**Discouraged:** ${markdownText(item.discouraged.reason)} (according_to ${item.discouraged.according_to.map(markdownText).join(', ')})`);
198
203
  }
199
204
  if (item.usage_percent_excluded !== undefined) {
200
205
  lines.push(`**usage_percent_excluded:** ${item.usage_percent_excluded}%`);
201
206
  }
202
207
  if (item.usage_source !== undefined)
203
- lines.push(`**usage_source:** ${item.usage_source}`);
208
+ lines.push(`**usage_source:** ${markdownText(item.usage_source)}`);
204
209
  if (item.compat_keys) {
205
- lines.push(`**compat_keys:** ${item.compat_keys.length === 0 ? 'none — this entry owns no browser-compat-data keys' : item.compat_keys.join(', ')}`);
210
+ lines.push(`**compat_keys:** ${item.compat_keys.length === 0 ? 'none — this entry owns no browser-compat-data keys' : item.compat_keys.map(markdownText).join(', ')}`);
206
211
  }
207
212
  if (item.guidance)
208
- lines.push(item.guidance);
213
+ lines.push(markdownText(item.guidance));
209
214
  }
210
215
  return [{ type: 'text', text: lines.join('\n') }];
211
216
  },
@@ -1 +1 @@
1
- {"version":3,"file":"browsercompat-check-baseline.tool.js","sourceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/browsercompat-check-baseline.tool.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,IAAI,EAAE,CAAC,EAAE,MAAM,wBAAwB,CAAC;AACjD,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AACjE,OAAO,EAAE,kBAAkB,EAAE,MAAM,yCAAyC,CAAC;AAC7E,OAAO,EAAE,cAAc,EAAE,MAAM,yCAAyC,CAAC;AACzE,OAAO,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;AAC9D,OAAO,EACL,iBAAiB,EACjB,cAAc,EACd,iBAAiB,GAClB,MAAM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EAAE,IAAI,EAAE,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;IACpD,CAAC;CACF,CAAC,CAAC"}
1
+ {"version":3,"file":"browsercompat-check-baseline.tool.js","sourceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/browsercompat-check-baseline.tool.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,IAAI,EAAE,CAAC,EAAE,MAAM,wBAAwB,CAAC;AACjD,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AACjE,OAAO,EAAE,kBAAkB,EAAE,MAAM,yCAAyC,CAAC;AAC7E,OAAO,EAAE,cAAc,EAAE,MAAM,yCAAyC,CAAC;AACzE,OAAO,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;AAC9D,OAAO,EACL,iBAAiB,EACjB,cAAc,EACd,iBAAiB,GAClB,MAAM,iDAAiD,CAAC;AACzD,OAAO,EACL,mBAAmB,EACnB,uBAAuB,EACvB,iBAAiB,GAClB,MAAM,uCAAuC,CAAC;AAC/C,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AACxD,OAAO,EACL,cAAc,EACd,iBAAiB,EACjB,kBAAkB,EAClB,qBAAqB,EACrB,gBAAgB,GACjB,MAAM,oBAAoB,CAAC;AAE5B,oFAAoF;AACpF,MAAM,YAAY,GAAG,qIAAqI,uBAAuB,yDAAyD,CAAC;AAE3O,MAAM,YAAY,GAAG,CAAC,CAAC,MAAM,CAAC;IAC5B,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,2CAA2C,CAAC;IACvE,KAAK,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,CAAC,2DAA2D,CAAC;IACxF,OAAO,EAAE,CAAC;SACP,IAAI,CAAC,CAAC,OAAO,EAAE,gBAAgB,EAAE,MAAM,CAAC,CAAC;SACzC,QAAQ,CACP,mIAAmI,CACpI;IACH,WAAW,EAAE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