@cyanheads/browser-compat-mcp-server 0.2.0 → 0.2.1

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 (47) hide show
  1. package/AGENTS.md +5 -5
  2. package/CLAUDE.md +5 -5
  3. package/Dockerfile +16 -7
  4. package/README.md +25 -19
  5. package/THIRD_PARTY_NOTICES.md +4 -4
  6. package/changelog/0.2.x/0.2.1.md +41 -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 +4 -1
  10. package/dist/mcp-server/tools/definitions/browsercompat-check-baseline.tool.d.ts.map +1 -1
  11. package/dist/mcp-server/tools/definitions/browsercompat-check-baseline.tool.js +44 -17
  12. package/dist/mcp-server/tools/definitions/browsercompat-check-baseline.tool.js.map +1 -1
  13. package/dist/mcp-server/tools/definitions/browsercompat-compare-support.tool.d.ts +42 -1
  14. package/dist/mcp-server/tools/definitions/browsercompat-compare-support.tool.d.ts.map +1 -1
  15. package/dist/mcp-server/tools/definitions/browsercompat-compare-support.tool.js +216 -75
  16. package/dist/mcp-server/tools/definitions/browsercompat-compare-support.tool.js.map +1 -1
  17. package/dist/mcp-server/tools/definitions/browsercompat-get-feature.tool.d.ts +44 -13
  18. package/dist/mcp-server/tools/definitions/browsercompat-get-feature.tool.d.ts.map +1 -1
  19. package/dist/mcp-server/tools/definitions/browsercompat-get-feature.tool.js +67 -15
  20. package/dist/mcp-server/tools/definitions/browsercompat-get-feature.tool.js.map +1 -1
  21. package/dist/mcp-server/tools/definitions/browsercompat-search-features.tool.d.ts.map +1 -1
  22. package/dist/mcp-server/tools/definitions/browsercompat-search-features.tool.js +13 -5
  23. package/dist/mcp-server/tools/definitions/browsercompat-search-features.tool.js.map +1 -1
  24. package/dist/mcp-server/tools/definitions/compat-shapes.d.ts +128 -16
  25. package/dist/mcp-server/tools/definitions/compat-shapes.d.ts.map +1 -1
  26. package/dist/mcp-server/tools/definitions/compat-shapes.js +178 -22
  27. package/dist/mcp-server/tools/definitions/compat-shapes.js.map +1 -1
  28. package/dist/services/baseline/baseline-service.d.ts +11 -3
  29. package/dist/services/baseline/baseline-service.d.ts.map +1 -1
  30. package/dist/services/baseline/baseline-service.js +29 -2
  31. package/dist/services/baseline/baseline-service.js.map +1 -1
  32. package/dist/services/baseline/types.d.ts +11 -0
  33. package/dist/services/baseline/types.d.ts.map +1 -1
  34. package/dist/services/bcd/bcd-service.d.ts +29 -11
  35. package/dist/services/bcd/bcd-service.d.ts.map +1 -1
  36. package/dist/services/bcd/bcd-service.js +145 -73
  37. package/dist/services/bcd/bcd-service.js.map +1 -1
  38. package/dist/services/bcd/types.d.ts +29 -4
  39. package/dist/services/bcd/types.d.ts.map +1 -1
  40. package/dist/services/search/search-service.d.ts +20 -2
  41. package/dist/services/search/search-service.d.ts.map +1 -1
  42. package/dist/services/search/search-service.js +115 -20
  43. package/dist/services/search/search-service.js.map +1 -1
  44. package/dist/services/targets/types.d.ts +6 -4
  45. package/dist/services/targets/types.d.ts.map +1 -1
  46. package/package.json +15 -15
  47. package/server.json +10 -24
package/AGENTS.md CHANGED
@@ -1,11 +1,11 @@
1
1
  # Developer Protocol
2
2
 
3
3
  **Server:** browser-compat-mcp-server
4
- **Version:** 0.2.0
5
- **Framework:** [@cyanheads/mcp-ts-core](https://www.npmjs.com/package/@cyanheads/mcp-ts-core) `^0.13.10`
4
+ **Version:** 0.2.1
5
+ **Framework:** [@cyanheads/mcp-ts-core](https://www.npmjs.com/package/@cyanheads/mcp-ts-core) `^0.13.15`
6
6
  **Engines:** Bun ≥1.4.0, Node ≥24.0.0
7
- **MCP SDK:** `@modelcontextprotocol/server` ^2.1.0
8
- **Zod:** ^4.6.5
7
+ **MCP SDK:** `@modelcontextprotocol/server` ^2.3.1
8
+ **Zod:** ^4.6.7
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.
11
11
 
@@ -416,7 +416,7 @@ security: false # optional — true ONLY for a source
416
416
 
417
417
  ## Publishing
418
418
 
419
- **Every release goes through a release PR, straight-through** — `git-wrapup`'s "Release PR mode", mode `straight-through`. One run: `git-wrapup` lands the commit stack on `release/<version>`, pushes it, and opens the PR (title = the release commit subject, body = the changelog entry plus a gates section); `release-and-publish` then fast-forwards `main` locally with `git merge --ff-only`, creates the tag on `main`'s tip, pushes `main` and the tag, deletes the branch, and publishes. A caller's brief may run a given release as `gated` instead — a `release-pr-review` pass on the open PR before `release-and-publish`. **Never merge through the GitHub UI or `gh pr merge`**: squash and rebase-merge are disabled in the repo settings because both rewrite the stack (rebase-merge also strips the SSH signatures), and a merge commit breaks the linear history.
419
+ **Every release goes through a release PR, straight-through** — `git-wrapup`'s "Release PR mode", mode `straight-through`. One run: `git-wrapup` lands the commit stack on `release/<version>`, pushes it, and opens the PR (title = the release commit subject, body = the release digest: theme line, `## Changes`, `## Gates`, changelog link last); `release-and-publish` then fast-forwards `main` locally with `git merge --ff-only`, creates the tag on `main`'s tip, pushes `main` and the tag, deletes the branch, and publishes. A caller's brief may run a given release as `gated` instead — a `release-pr-review` pass on the open PR before `release-and-publish`. **Never merge through the GitHub UI or `gh pr merge`**: squash and rebase-merge are disabled in the repo settings because both rewrite the stack (rebase-merge also strips the SSH signatures), and a merge commit breaks the linear history.
420
420
 
421
421
  ---
422
422
 
package/CLAUDE.md CHANGED
@@ -1,11 +1,11 @@
1
1
  # Developer Protocol
2
2
 
3
3
  **Server:** browser-compat-mcp-server
4
- **Version:** 0.2.0
5
- **Framework:** [@cyanheads/mcp-ts-core](https://www.npmjs.com/package/@cyanheads/mcp-ts-core) `^0.13.10`
4
+ **Version:** 0.2.1
5
+ **Framework:** [@cyanheads/mcp-ts-core](https://www.npmjs.com/package/@cyanheads/mcp-ts-core) `^0.13.15`
6
6
  **Engines:** Bun ≥1.4.0, Node ≥24.0.0
7
- **MCP SDK:** `@modelcontextprotocol/server` ^2.1.0
8
- **Zod:** ^4.6.5
7
+ **MCP SDK:** `@modelcontextprotocol/server` ^2.3.1
8
+ **Zod:** ^4.6.7
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.
11
11
 
@@ -416,7 +416,7 @@ security: false # optional — true ONLY for a source
416
416
 
417
417
  ## Publishing
418
418
 
419
- **Every release goes through a release PR, straight-through** — `git-wrapup`'s "Release PR mode", mode `straight-through`. One run: `git-wrapup` lands the commit stack on `release/<version>`, pushes it, and opens the PR (title = the release commit subject, body = the changelog entry plus a gates section); `release-and-publish` then fast-forwards `main` locally with `git merge --ff-only`, creates the tag on `main`'s tip, pushes `main` and the tag, deletes the branch, and publishes. A caller's brief may run a given release as `gated` instead — a `release-pr-review` pass on the open PR before `release-and-publish`. **Never merge through the GitHub UI or `gh pr merge`**: squash and rebase-merge are disabled in the repo settings because both rewrite the stack (rebase-merge also strips the SSH signatures), and a merge commit breaks the linear history.
419
+ **Every release goes through a release PR, straight-through** — `git-wrapup`'s "Release PR mode", mode `straight-through`. One run: `git-wrapup` lands the commit stack on `release/<version>`, pushes it, and opens the PR (title = the release commit subject, body = the release digest: theme line, `## Changes`, `## Gates`, changelog link last); `release-and-publish` then fast-forwards `main` locally with `git merge --ff-only`, creates the tag on `main`'s tip, pushes `main` and the tag, deletes the branch, and publishes. A caller's brief may run a given release as `gated` instead — a `release-pr-review` pass on the open PR before `release-and-publish`. **Never merge through the GitHub UI or `gh pr merge`**: squash and rebase-merge are disabled in the repo settings because both rewrite the stack (rebase-merge also strips the SSH signatures), and a merge commit breaks the linear history.
420
420
 
421
421
  ---
422
422
 
package/Dockerfile CHANGED
@@ -14,7 +14,7 @@
14
14
  # output. A stage that compiles a native addon needs the target-arch toolchain
15
15
  # and cannot cross-compile this way — drop the flag there.
16
16
  # ==============================================================================
17
- FROM --platform=$BUILDPLATFORM oven/bun:1.4.2 AS build
17
+ FROM --platform=$BUILDPLATFORM oven/bun:1.4.3 AS build
18
18
 
19
19
  WORKDIR /usr/src/app
20
20
 
@@ -38,15 +38,15 @@ RUN bun run build
38
38
  #
39
39
  # Installs the production dependency tree for the target platform. Every step
40
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.
41
+ # program, and so do the OTel and musl-prune scripts — so the stage runs on
42
+ # $BUILDPLATFORM and cross-installs with `--os`/`--cpu`, which pick each
43
+ # platform-specific optional dependency (native bindings such as DuckDB's) for
44
+ # the target. Only `node_modules` leaves this stage.
45
45
  #
46
46
  # A clean image rather than `FROM build`: the build stage's node_modules holds
47
47
  # devDependencies.
48
48
  # ==============================================================================
49
- FROM --platform=$BUILDPLATFORM oven/bun:1.4.2 AS deps
49
+ FROM --platform=$BUILDPLATFORM oven/bun:1.4.3 AS deps
50
50
 
51
51
  WORKDIR /usr/src/app
52
52
 
@@ -93,6 +93,15 @@ RUN --mount=type=cache,target=/root/.bun/install/cache \
93
93
  bun scripts/install-otel.ts --os="$TARGETOS" --cpu="$(cat .bun-cpu)"; \
94
94
  fi
95
95
 
96
+ # `--os`/`--cpu` have no libc counterpart, so a native dependency published in
97
+ # glibc and musl variants (DuckDB's bindings, for one) installs both. The
98
+ # runtime image is Debian (glibc) and never loads the musl copy; the script
99
+ # deletes every package whose own `libc` admits only musl. It follows every
100
+ # install, since a later `bun install` restores what it removes. A server on a
101
+ # musl (Alpine) runtime image drops these two lines.
102
+ COPY scripts/prune-musl-packages.ts ./scripts/
103
+ RUN bun scripts/prune-musl-packages.ts
104
+
96
105
  # The seeded scanner served only the installs above; keep it out of the image.
97
106
  RUN rm -rf node_modules/@socketsecurity/bun-security-scanner
98
107
 
@@ -105,7 +114,7 @@ RUN rm -rf node_modules/@socketsecurity/bun-security-scanner
105
114
  # dependencies and build artifacts. Its only Bun invocations are HEALTHCHECK
106
115
  # and CMD, which run on the real target at container start.
107
116
  # ==============================================================================
108
- FROM oven/bun:1.4.2-slim AS production
117
+ FROM oven/bun:1.4.3-slim AS production
109
118
 
110
119
  WORKDIR /usr/src/app
111
120
 
package/README.md CHANGED
@@ -7,7 +7,7 @@
7
7
 
8
8
  <div align="center">
9
9
 
10
- [![npm](https://img.shields.io/npm/v/@cyanheads/browser-compat-mcp-server?style=flat-square&logo=npm&logoColor=white)](https://www.npmjs.com/package/@cyanheads/browser-compat-mcp-server) [![License](https://img.shields.io/badge/License-Apache%202.0-orange.svg?style=flat-square)](./LICENSE) [![MCP SDK](https://img.shields.io/badge/MCP%20SDK-^2.1.0-green.svg?style=flat-square)](https://modelcontextprotocol.io/) [![Bun](https://img.shields.io/badge/Bun-v1.4.2%2B-blueviolet.svg?style=flat-square)](https://bun.sh/)
10
+ [![npm](https://img.shields.io/npm/v/@cyanheads/browser-compat-mcp-server?style=flat-square&logo=npm&logoColor=white)](https://www.npmjs.com/package/@cyanheads/browser-compat-mcp-server) [![License](https://img.shields.io/badge/License-Apache%202.0-orange.svg?style=flat-square)](./LICENSE) [![MCP SDK](https://img.shields.io/badge/MCP%20SDK-^2.3.1-green.svg?style=flat-square)](https://modelcontextprotocol.io/) [![Bun](https://img.shields.io/badge/Bun-v1.4.3%2B-blueviolet.svg?style=flat-square)](https://bun.sh/)
11
11
 
12
12
  </div>
13
13
 
@@ -37,9 +37,9 @@ Web platform compatibility for frontend work: per-browser support from MDN's `@m
37
37
  |:---|:---|
38
38
  | `browsercompat_list_reference` | Enumerate the reference vocabulary the other tools expect — BCD namespaces and browser ids, browserslist agents, Baseline states, groups, and ECMAScript snapshots. |
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
- | `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. |
40
+ | `browsercompat_check_baseline` | Ship-or-not across up to 20 features per call: 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: a whole-query verdict and evaluated coverage per feature, with the failing and unevaluated target rows paged ten query targets at a time. |
42
+ | `browsercompat_compare_support` | Check features against an explicit browserslist target query: a whole-query verdict, evaluated coverage, and failing version runs per feature, with the failing and unevaluated target rows paged ten query targets at a time. |
43
43
 
44
44
  ---
45
45
 
@@ -54,20 +54,23 @@ Web platform compatibility for frontend work: per-browser support from MDN's `@m
54
54
 
55
55
  ### `browsercompat_get_feature` <sub>tool</sub>
56
56
 
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
- - `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`.
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 its `feature_support` and `compat_keys`, and two features are a miss. Off by default.
58
+ - `outcome` is `found`, `no_compat_data`, or `miss`; `resolved_as` records the match. A miss returns `found: false` with `guidance`. Whitespace-only input returns `invalid_feature_input`.
59
+ - A multi-key id such as `grid` omits `support`, `status`, `mdn_url`, and `spec_urls`, keeps `compat_keys`, and adds `feature_support`: one row per Baseline core browser, `{ browser_id, supported, version?, version_is_upper_bound? }`, relaying the release web-features lists for the feature as a whole. That is web-features' answer for the feature, not a combination of its keys, and a key can differ either way — `a` lists Chrome 1 while `html.elements.a.href.href_sms` is unsupported there. Call with one of `compat_keys` for a key-level answer.
60
+ - `compat_keys` holds at most 100 keys in declaration order, with `compat_keys_total` counting all of them (`svg` owns 614). Continue with `compat_keys_offset` (integer ≥0, default 0) while `compat_keys_next_offset` is present; a zero-key id returns `compat_keys: []` and `compat_keys_total: 0`.
61
+ - Each `support` row reports the statement behind its verdict at the browser's newest release and lists every other statement BCD records for that browser in `other_statements`, in BCD order with notes and links — Safari's `backdrop-filter` row is supported since 18 and lists `{ version_added: "9", prefix: "-webkit-" }`.
59
62
  - `include_runtimes: true` adds `bun`, `deno`, `nodejs`, and `oculus` support to the 13 desktop and mobile browser rows.
60
63
  - 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.
64
+ - `limiting_browser` is the Baseline core browser whose required release is newest by release date. For a key it appears only when every core browser has full, unprefixed, unflagged support at a resolvable added release; for a multi-key id, only when `feature_support` lists all seven. `version` is the release; `version_is_upper_bound: true` marks a `≤` bound, where support arrived at or before that release.
62
65
  - 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.
63
66
 
64
67
  ---
65
68
 
66
69
  ### `browsercompat_check_baseline` <sub>tool</sub>
67
70
 
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`.
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.
70
- - `all_widely_available` requires every entry to resolve at `widely`; one miss makes it false, and it does not assess deprecation.
71
+ - BCD keys or web-features ids, 1–200 characters each. The first 20 are evaluated, one result per entry in input order; up to 100 are accepted, and entries past the 20th come back verbatim in `omitted_features` for the next call. More than 100 entries is rejected; a whitespace-only entry anywhere returns `invalid_feature_input`.
72
+ - Results carry Baseline state and dates, `limiting_browser` under the conditions above (from web-features' feature-level support for a multi-key id, which keeps its first 10 `compat_keys` and `compat_keys_total`), `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.
73
+ - `all_widely_available` requires every entry to resolve at `widely`; one miss or any `omitted_features` entry makes it false, and it does not assess deprecation.
71
74
 
72
75
  ---
73
76
 
@@ -75,17 +78,20 @@ Web platform compatibility for frontend work: per-browser support from MDN's `@m
75
78
 
76
79
  - `query`, 1–100 characters, accepts names, keywords, or notation such as `Array.prototype.at`, `display: grid`, or `<dialog>`. Combine `namespace` (12 BCD namespaces), `baseline` (`widely`, `newly`, `limited`, `not_mapped`), `group` (including nested groups), and `snapshot` (such as `ecmascript-2023`).
77
80
  - `matched_on` explains the six-tier ranking; `path_suffix` marks trailing key segments matching the supplied notation. `support_summary` covers the seven Baseline core browsers (`—` unsupported, `?` unknown). Typed failures: `invalid_query` (zero searchable tokens), `unknown_group`, `unknown_snapshot`.
78
- - Page with `limit` (1–50, default 10) and `offset` (default 0); `totalCount` counts all matches and `nextOffset` appears while more remain. Zero hits succeed with a notice naming which filter to drop; an offset past the matches returns an empty page with a notice.
81
+ - Page with `limit` (default 10, at most 50 per call; 51–1000 is served as 50 and reported in `cap`) and `offset` (default 0); `totalCount` counts all matches and `nextOffset` appears while more remain. Zero hits succeed with a notice naming which filter to drop; an offset past the matches returns an empty page with a notice.
79
82
 
80
83
  ---
81
84
 
82
85
  ### `browsercompat_compare_support` <sub>tool</sub>
83
86
 
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`.
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.
87
+ - Up to 20 features per call against a required `targets` browserslist query, such as `defaults` or `> 0.5%, last 2 versions`; local browserslist config is never used. Up to 100 features are accepted: entries past the 20th come back verbatim in `omitted_features`, which also makes `all_clear` false. Typed failures: `invalid_target_query`, `no_targets_resolved`, `invalid_feature_input`.
88
+ - 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; `ambiguous` is an id that owns no BCD keys. A query that includes a browser with no compatibility data, as `defaults` does, never clears. `all_clear` is true only when every feature clears.
89
+ - Each compared result names its `support_source`. `bcd_key` judges a key's per-browser support. `web_features_feature` judges a multi-key id such as `grid` on the release web-features lists for the feature as a whole in each Baseline core browser, keeps its first 10 `compat_keys` with `compat_keys_total`, and leaves every other browser unevaluated — `grid` on `defaults` evaluates 24 of 35 targets.
90
+ - A target counts as evaluated only where compatibility data was read for it. Each compared result carries `failing_total`, `failing_ranges`, `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.
91
+ - Target rows are paged with `target_offset` (integer ≥0, default 0) and `target_limit` (default 10, at most 10 per call; 11–1000 is served as 10 and reported in `cap`). `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.
92
+ - `failing_targets` names targets with `partial`, `prefixed`, `flagged`, `removed`, `unsupported`, or `preview_only` support, or — on web-features' feature-level support — `before_feature_support` (the target predates the listed release) or `no_feature_support` (no release listed for that core browser). A row judged on a key also carries the fields of the statement behind its verdict, each only when present: `backdrop-filter` on `safari 15` fails as `prefixed` with `version_added: "9"` and `prefix: "-webkit-"`, and a `flagged` row names its `flags`.
93
+ - `failing_ranges` lists every failing target of a result across the whole query as runs `{ agent, newest, oldest, count, verdict }`: consecutive query targets of one agent failing with one verdict, in query order. A run breaks at any target that passed or was not evaluated, the counts sum to `failing_total`, and the list is the same on every page — `Array.fromAsync` on `defaults` gives `chrome 120` to `109` (2) and `op_mob 80` (1) on all four pages.
94
+ - `unchecked_targets` carries `no_bcd_browser`, `unknown_version`, `no_bcd_data`, `no_feature_level_data` (a non-core browser, or a release before a `≤` bound, under feature-level support), or `no_comparable_feature` — the last when every entry was a miss or ambiguous, so nothing was compared.
89
95
 
90
96
  ---
91
97
 
@@ -93,10 +99,10 @@ Web platform compatibility for frontend work: per-browser support from MDN's `@m
93
99
 
94
100
  | Package | Version | License | Supplies |
95
101
  |:---|:---|:---|:---|
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 |
102
+ | [`@mdn/browser-compat-data`](https://github.com/mdn/browser-compat-data) | `^8.1.5` | CC0-1.0 | Per-browser support, standards status, MDN and specification links |
103
+ | [`web-features`](https://github.com/web-platform-dx/web-features) | `^3.42.0` | Apache-2.0 | Baseline state and dates, feature-level core-browser support, discouraged flags, groups, ECMAScript snapshots |
104
+ | [`caniuse-lite`](https://github.com/browserslist/caniuse-lite) | `^1.0.30001815` | CC-BY-4.0 | Usage weighting, plus feature titles for the search index |
105
+ | [`browserslist`](https://github.com/browserslist/browserslist) | `^4.29.3` | MIT | Target query resolution and coverage figures |
100
106
 
101
107
  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).
102
108
 
@@ -6,10 +6,10 @@ attribution those datasets require.
6
6
 
7
7
  | Dataset | Version range | License | Source |
8
8
  |:--------|:--------------|:--------|:-------|
9
- | `@mdn/browser-compat-data` | ^8.1.2 | CC0-1.0 | https://github.com/mdn/browser-compat-data |
10
- | `web-features` | ^3.39.0 | Apache-2.0 | https://github.com/web-platform-dx/web-features |
11
- | `caniuse-lite` | ^1.0.30001810 | CC-BY-4.0 | https://github.com/browserslist/caniuse-lite |
12
- | `browserslist` | ^4.29.0 | MIT | https://github.com/browserslist/browserslist |
9
+ | `@mdn/browser-compat-data` | ^8.1.5 | CC0-1.0 | https://github.com/mdn/browser-compat-data |
10
+ | `web-features` | ^3.42.0 | Apache-2.0 | https://github.com/web-platform-dx/web-features |
11
+ | `caniuse-lite` | ^1.0.30001815 | CC-BY-4.0 | https://github.com/browserslist/caniuse-lite |
12
+ | `browserslist` | ^4.29.3 | MIT | https://github.com/browserslist/browserslist |
13
13
 
14
14
  Every tool response echoes the exact version of each dataset it answered from, under
15
15
  `data_version`.
@@ -0,0 +1,41 @@
1
+ ---
2
+ summary: "Multi-key web-features ids are judged on web-features' feature-level support. compat_keys is bounded, failing rows report the support statement and a whole-query failing_ranges summary, batch tools serve up to a cap and report the rest as omitted_features, and search matches singular and plural forms."
3
+ breaking: false
4
+ security: false
5
+ ---
6
+
7
+ # 0.2.1 — 2026-10-15
8
+
9
+ ## Added
10
+
11
+ - **`feature_support` on multi-key web-features ids** in `browsercompat_get_feature`: one row per Baseline core browser, `{ browser_id, supported, version?, version_is_upper_bound? }`, relaying the release web-features lists for the feature as a whole ([#26](https://github.com/cyanheads/browser-compat-mcp-server/issues/26)).
12
+ - **`browsercompat_check_baseline` and `browsercompat_compare_support` judge a multi-key id on `feature_support`**; `browsercompat_compare_support` names the basis in `support_source` (`bcd_key` or `web_features_feature`) and leaves every non-core browser unevaluated ([#26](https://github.com/cyanheads/browser-compat-mcp-server/issues/26)).
13
+ - **`compat_keys_total` and `compat_keys_offset` / `compat_keys_next_offset`** on `browsercompat_get_feature`, which pages `compat_keys` 100 at a time ([#25](https://github.com/cyanheads/browser-compat-mcp-server/issues/25)).
14
+ - **`other_statements` and the verdict-bearing statement's fields** (`prefix`, `flags`, `partial`, `notes`) on failing `support` and `failing_targets` rows ([#27](https://github.com/cyanheads/browser-compat-mcp-server/issues/27)).
15
+ - **`failing_ranges` on each compared result of `browsercompat_compare_support`**: runs `{ agent, newest, oldest, count, verdict }` covering every failing target in the query, identical on every page ([#28](https://github.com/cyanheads/browser-compat-mcp-server/issues/28)).
16
+ - **`omitted_features` on `browsercompat_check_baseline` and `browsercompat_compare_support`**: entries past the 20th, returned verbatim for the next call, with `all_widely_available` / `all_clear` false ([#29](https://github.com/cyanheads/browser-compat-mcp-server/issues/29)).
17
+ - **`version_is_upper_bound` on `limiting_browser`**, set when the release is a `≤` bound ([#30](https://github.com/cyanheads/browser-compat-mcp-server/issues/30)).
18
+
19
+ ## Changed
20
+
21
+ - **Three output enums gained members**: the `browsercompat_compare_support` failing verdict adds `before_feature_support` and `no_feature_support`, and its unchecked-target reason adds `no_feature_level_data` ([#26](https://github.com/cyanheads/browser-compat-mcp-server/issues/26)).
22
+ - **`compat_keys` on `browsercompat_check_baseline` and `browsercompat_compare_support` results is truncated to the first 10 keys**; `compat_keys_total` gives the full count ([#25](https://github.com/cyanheads/browser-compat-mcp-server/issues/25)).
23
+ - **`limiting_browser` keeps a ranged version's upper bound** instead of dropping the `≤` ([#30](https://github.com/cyanheads/browser-compat-mcp-server/issues/30)).
24
+ - **Batch inputs are served up to a per-call cap instead of rejected.** `browsercompat_check_baseline` and `browsercompat_compare_support` evaluate 20 of up to 100 features; `limit` on `browsercompat_search_features` (up to 1,000) and `target_limit` on `browsercompat_compare_support` (up to 1,000) clamp to 50 and 10, reported in `cap` ([#29](https://github.com/cyanheads/browser-compat-mcp-server/issues/29)).
25
+
26
+ ## Fixed
27
+
28
+ - **`browsercompat_search_features` matches singular and plural forms of a query word**, so `container query` finds `Container queries` ([#24](https://github.com/cyanheads/browser-compat-mcp-server/issues/24)).
29
+ - **`compat_keys` no longer returns every key of an id on every result**: an id owning 614 keys (`svg`) no longer produces a 775 KB response from 20 entries ([#25](https://github.com/cyanheads/browser-compat-mcp-server/issues/25)).
30
+
31
+ ## Dependencies
32
+
33
+ - `@cyanheads/mcp-ts-core` ^0.13.10 → ^0.13.15 (framework skills, scripts, and template files resynced; the Docker deps stage prunes musl-only packages)
34
+ - `@mdn/browser-compat-data` ^8.1.3 → ^8.1.5
35
+ - `web-features` ^3.40.0 → ^3.42.0
36
+ - `browserslist` ^4.29.1 → ^4.29.3
37
+ - `caniuse-lite` ^1.0.30001812 → ^1.0.30001815
38
+ - `pino-pretty` ^13.1.3 → ^13.2.0
39
+ - `zod` ^4.6.5 → ^4.6.7
40
+ - `@biomejs/biome` 2.5.14 → 2.5.15, `@types/node` 26.6.3 → 26.6.5, `@vitest/coverage-istanbul` 5.0.2 → 5.0.4, `vitest` ^5.0.2 → ^5.0.4, `ignore` ^7.0.10 → ^7.0.12, `tsc-alias` ^1.9.5 → ^1.9.7
41
+ - Bun 1.4.2 → 1.4.3 (`packageManager`, Dockerfile base images)
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 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.',
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. A web-features id that spans several BCD keys, such as grid, is answered from web-features’ own release per Baseline core browser for the feature as a whole, with its compat_keys for a key-level follow-up. 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,EAAE,MAAM,sEAAsE,CAAC;AACnH,OAAO,EAAE,uBAAuB,EAAE,MAAM,kEAAkE,CAAC;AAC3G,OAAO,EAAE,0BAA0B,EAAE,MAAM,qEAAqE,CAAC;AACjH,OAAO,EAAE,2BAA2B,EAAE,MAAM,sEAAsE,CAAC;AACnH,OAAO,EAAE,kBAAkB,EAAE,MA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ACpB,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"}
@@ -46,6 +46,7 @@ export declare const browsercompatCheckBaseline: import("@cyanheads/mcp-ts-core"
46
46
  browser_id: z.ZodString;
47
47
  name: z.ZodString;
48
48
  version: z.ZodString;
49
+ version_is_upper_bound: z.ZodOptional<z.ZodBoolean>;
49
50
  }, z.core.$strip>>;
50
51
  deprecated: z.ZodOptional<z.ZodBoolean>;
51
52
  experimental: z.ZodOptional<z.ZodBoolean>;
@@ -56,13 +57,15 @@ export declare const browsercompatCheckBaseline: import("@cyanheads/mcp-ts-core"
56
57
  usage_percent_excluded: z.ZodOptional<z.ZodNumber>;
57
58
  usage_source: z.ZodOptional<z.ZodString>;
58
59
  compat_keys: z.ZodOptional<z.ZodArray<z.ZodString>>;
60
+ compat_keys_total: z.ZodOptional<z.ZodNumber>;
59
61
  guidance: z.ZodOptional<z.ZodString>;
60
62
  }, z.core.$strip>>;
63
+ omitted_features: z.ZodOptional<z.ZodArray<z.ZodString>>;
61
64
  all_widely_available: z.ZodBoolean;
62
65
  }, z.core.$strip>, readonly [{
63
66
  readonly reason: "invalid_feature_input";
64
67
  readonly code: JsonRpcErrorCode.ValidationError;
65
- readonly when: "An entry in features is whitespace-only. An empty or over-200-character entry is rejected against the input schema instead.";
68
+ readonly when: "An entry in features is whitespace-only, including an entry past the 20th. An empty or over-200-character entry is rejected against the input schema instead.";
66
69
  readonly recovery: "Replace the whitespace-only entry with a BCD key such as css.selectors.has or a web-features id such as has; use browsercompat_search_features to find one.";
67
70
  }], {
68
71
  readonly data_version: z.ZodObject<{
@@ -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;AA4EjE,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA6MrC,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;AAuFjE,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAyOrC,CAAC"}
@@ -12,7 +12,7 @@ import { getBcdService } from '../../../services/bcd/bcd-service.js';
12
12
  import { DataVersionSchema, getDataVersion, renderDataVersion, } from '../../../services/data-version/data-version-service.js';
13
13
  import { CANIUSE_ATTRIBUTION, CANIUSE_TRACKED_PERCENT, getTargetsService, } from '../../../services/targets/targets-service.js';
14
14
  import { markdownText } from '../../../utils/markdown-text.js';
15
- import { BaselineSchema, DiscouragedSchema, formatBaselineLine, LimitingBrowserSchema, ResolvedAsSchema, } from './compat-shapes.js';
15
+ import { BaselineSchema, batchCompatKeys, DiscouragedSchema, FEATURES_MAX, FEATURES_PER_CALL, formatBaselineLine, formatBatchCompatKeys, formatLimitingBrowser, formatOmittedFeatures, LimitingBrowserSchema, ResolvedAsSchema, } from './compat-shapes.js';
16
16
  /** What the usage figure is a share of, stated on every result that carries one. */
17
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.`;
18
18
  const ResultSchema = z.object({
@@ -24,7 +24,7 @@ const ResultSchema = z.object({
24
24
  resolved_as: ResolvedAsSchema.nullable().describe('How the feature string was matched, or null on a miss.'),
25
25
  name: z.string().optional().describe('web-features display name for the feature.'),
26
26
  baseline: BaselineSchema.optional().describe('Baseline state and the dates it crossed.'),
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
+ limiting_browser: LimitingBrowserSchema.optional().describe('Among the Baseline core browsers, the one whose required release is newest by release date. For a single key, present only when every core browser has full, unprefixed, unflagged support at a resolvable added release; for an id spanning more than one key, read from web-features’ feature-level support for the feature as a whole and present only when it lists all seven core browsers.'),
28
28
  deprecated: z
29
29
  .boolean()
30
30
  .optional()
@@ -45,18 +45,23 @@ const ResultSchema = z.object({
45
45
  compat_keys: z
46
46
  .array(z.string())
47
47
  .optional()
48
- .describe('Present when the web-features id spans more than one browser-compat-data key. Call browsercompat_get_feature with one of them for per-browser data.'),
48
+ .describe('Present when the web-features id spans more than one browser-compat-data key, or as an empty list when it owns none: its first 10 keys in declaration order, with compat_keys_total counting all of them. Call browsercompat_get_feature with the id for the rest and its feature-level support per core browser, or with one of these keys for per-browser data.'),
49
+ compat_keys_total: z
50
+ .number()
51
+ .int()
52
+ .optional()
53
+ .describe('Every browser-compat-data key the id owns. Present with compat_keys.'),
49
54
  guidance: z.string().optional().describe('What to do next when the feature did not resolve.'),
50
55
  });
51
56
  export const browsercompatCheckBaseline = tool('browsercompat_check_baseline', {
52
- description: 'Check whether web features are safe to ship: Baseline state and the date it crossed, the browser and version that limits support, whether the feature is deprecated or discouraged, and the share of tracked global traffic that requiring it would exclude. Accepts up to 20 BCD keys or web-features ids in one call.',
57
+ description: 'Check whether web features are safe to ship: Baseline state and the date it crossed, the browser and version that limits support, whether the feature is deprecated or discouraged, and the share of tracked global traffic that requiring it would exclude. Evaluates up to 20 BCD keys or web-features ids per call; up to 100 may be sent, and entries past the 20th come back unevaluated in omitted_features for the next call.',
53
58
  annotations: { readOnlyHint: true, idempotentHint: true, openWorldHint: false },
54
59
  input: z.object({
55
60
  features: z
56
61
  .array(z.string().min(1).max(200))
57
62
  .min(1)
58
- .max(20)
59
- .describe('Up to 20 entries, each a browser-compat-data key such as css.selectors.has or a web-features id such as has, 1 to 200 characters. An empty or longer entry is rejected against this schema; a whitespace-only entry returns invalid_feature_input. Call browsercompat_search_features first for any entry whose key you do not already know.'),
63
+ .max(FEATURES_MAX)
64
+ .describe('Entries to check, each a browser-compat-data key such as css.selectors.has or a web-features id such as has, 1 to 200 characters. The first 20 are evaluated per call; up to 100 are accepted, and entries past the 20th are returned unevaluated in omitted_features. More than 100 entries, or an empty or longer entry anywhere in the list, is rejected against this schema; a whitespace-only entry anywhere returns invalid_feature_input. Call browsercompat_search_features first for any entry whose key you do not already know.'),
60
65
  resolve: z
61
66
  .boolean()
62
67
  .default(false)
@@ -64,11 +69,15 @@ export const browsercompatCheckBaseline = tool('browsercompat_check_baseline', {
64
69
  }),
65
70
  output: z.object({
66
71
  results: z
67
- .array(ResultSchema.describe('One result per input entry, in input order.'))
68
- .describe('One result per requested feature. A miss is a result, not a failure.'),
72
+ .array(ResultSchema.describe('One result per evaluated entry, in input order.'))
73
+ .describe('One result per evaluated entry — the first 20. A miss is a result, not a failure.'),
74
+ omitted_features: z
75
+ .array(z.string())
76
+ .optional()
77
+ .describe('Entries past the first 20, verbatim and in input order, that were not evaluated. Present only when the call sent more than 20; pass them as features in the next call.'),
69
78
  all_widely_available: z
70
79
  .boolean()
71
- .describe('True only when every entry resolved and reports Baseline widely. A single miss forces false. Deprecation and discouragement do not enter this answer.'),
80
+ .describe('True only when every entry resolved and reports Baseline widely. A single miss, or any entry in omitted_features, forces false. Deprecation and discouragement do not enter this answer.'),
72
81
  }),
73
82
  enrichment: {
74
83
  data_version: DataVersionSchema.describe('Vintage of each bundled dataset behind this answer.'),
@@ -91,7 +100,7 @@ export const browsercompatCheckBaseline = tool('browsercompat_check_baseline', {
91
100
  {
92
101
  reason: 'invalid_feature_input',
93
102
  code: JsonRpcErrorCode.ValidationError,
94
- when: 'An entry in features is whitespace-only. An empty or over-200-character entry is rejected against the input schema instead.',
103
+ when: 'An entry in features is whitespace-only, including an entry past the 20th. An empty or over-200-character entry is rejected against the input schema instead.',
95
104
  recovery: 'Replace the whitespace-only entry with a BCD key such as css.selectors.has or a web-features id such as has; use browsercompat_search_features to find one.',
96
105
  },
97
106
  ],
@@ -106,10 +115,12 @@ export const browsercompatCheckBaseline = tool('browsercompat_check_baseline', {
106
115
  getBaselineService(),
107
116
  getTargetsService(),
108
117
  ]);
118
+ const evaluated = input.features.slice(0, FEATURES_PER_CALL);
119
+ const omitted = input.features.slice(FEATURES_PER_CALL);
109
120
  const results = [];
110
121
  const unresolved = [];
111
122
  let anyUsage = false;
112
- for (const entry of input.features) {
123
+ for (const entry of evaluated) {
113
124
  const query = entry.trim();
114
125
  const resolution = await resolveFeature(query, {
115
126
  resolve: input.resolve,
@@ -137,7 +148,15 @@ export const browsercompatCheckBaseline = tool('browsercompat_check_baseline', {
137
148
  : featureId !== null
138
149
  ? baseline.baselineForFeature(featureId)
139
150
  : undefined;
140
- const limiting = leaf === undefined ? undefined : bcd.limitingBrowser(leaf, baseline.coreBrowserIds);
151
+ /** An id spanning several keys is answered from web-features' own feature-level support. */
152
+ const featureLevel = featureId !== null && (compatKeys?.length ?? 0) > 0
153
+ ? baseline.featureSupport(featureId)
154
+ : undefined;
155
+ const limiting = leaf !== undefined
156
+ ? bcd.limitingBrowser(leaf, baseline.coreBrowserIds)
157
+ : featureLevel !== undefined
158
+ ? bcd.featureLimitingBrowser(featureLevel, baseline.coreBrowserIds)
159
+ : undefined;
141
160
  const discouraged = featureId === null ? undefined : baseline.discouraged(featureId);
142
161
  const featureKeys = featureId === null ? [] : baseline.compatKeys(featureId);
143
162
  const usageMatches = key === null || (featureKeys.length === 1 && featureKeys[0] === key);
@@ -161,7 +180,7 @@ export const browsercompatCheckBaseline = tool('browsercompat_check_baseline', {
161
180
  ...(excluded === undefined
162
181
  ? {}
163
182
  : { usage_percent_excluded: excluded, usage_source: USAGE_SOURCE }),
164
- ...(compatKeys === undefined ? {} : { compat_keys: compatKeys }),
183
+ ...(compatKeys === undefined ? {} : batchCompatKeys(compatKeys)),
165
184
  });
166
185
  }
167
186
  ctx.enrich.total(results.length);
@@ -172,12 +191,18 @@ export const browsercompatCheckBaseline = tool('browsercompat_check_baseline', {
172
191
  unresolvedNotice: `${unresolved.length} of ${results.length} entries did not resolve: ${unresolved.join(', ')}. Call browsercompat_search_features with a plain-language name to find the right key.`,
173
192
  });
174
193
  }
175
- const allWidelyAvailable = results.every((result) => result.outcome !== 'miss' && result.baseline?.state === 'widely');
194
+ const allWidelyAvailable = omitted.length === 0 &&
195
+ results.every((result) => result.outcome !== 'miss' && result.baseline?.state === 'widely');
176
196
  ctx.log.debug('Checked Baseline', {
177
197
  requested: input.features.length,
198
+ omitted: omitted.length,
178
199
  unresolved: unresolved.length,
179
200
  });
180
- return { results, all_widely_available: allWidelyAvailable };
201
+ return {
202
+ results,
203
+ ...(omitted.length === 0 ? {} : { omitted_features: omitted }),
204
+ all_widely_available: allWidelyAvailable,
205
+ };
181
206
  },
182
207
  format: (result) => {
183
208
  const lines = [`# Baseline check — ${result.results.length} features`];
@@ -192,7 +217,7 @@ export const browsercompatCheckBaseline = tool('browsercompat_check_baseline', {
192
217
  if (item.baseline)
193
218
  lines.push(formatBaselineLine(item.baseline));
194
219
  if (item.limiting_browser) {
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`);
220
+ lines.push(formatLimitingBrowser(item.limiting_browser, item.resolved_as?.bcd_key === null ? 'feature' : 'key'));
196
221
  }
197
222
  if (item.deprecated !== undefined)
198
223
  lines.push(`**deprecated:** ${item.deprecated}`);
@@ -207,11 +232,13 @@ export const browsercompatCheckBaseline = tool('browsercompat_check_baseline', {
207
232
  if (item.usage_source !== undefined)
208
233
  lines.push(`**usage_source:** ${markdownText(item.usage_source)}`);
209
234
  if (item.compat_keys) {
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(', ')}`);
235
+ lines.push(`**compat_keys:** ${formatBatchCompatKeys(item.compat_keys, item.compat_keys_total ?? item.compat_keys.length, item.resolved_as?.baseline_id ?? item.input)}`);
211
236
  }
212
237
  if (item.guidance)
213
238
  lines.push(markdownText(item.guidance));
214
239
  }
240
+ if (result.omitted_features)
241
+ lines.push('', formatOmittedFeatures(result.omitted_features));
215
242
  return [{ type: 'text', text: lines.join('\n') }];
216
243
  },
217
244
  });
@@ -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,iDAAiD,CAAC;AACzD,OAAO,EACL,mBAAmB,EACnB,uBAAuB,EAC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,IAAI,IAAI,CAAC,sBAAsB,KAAK,SAAS,EAAE,CAAC;gBAC9C,KAAK,CAAC,IAAI,CAAC,+BAA+B,IAAI,CAAC,sBAAsB,GAAG,CAAC,CAAC;YAC5E,CAAC;YACD,IAAI,IAAI,CAAC,YAAY,KAAK,SAAS;gBACjC,KAAK,CAAC,IAAI,CAAC,qBAAqB,YAAY,CAAC,IAAI,CAAC,YAAY,CAAC,EAAE,CAAC,CAAC;YACrE,IAAI,IAAI,CAAC,WAAW,EAAE,CAAC;gBACrB,KAAK,CAAC,IAAI,CACR,oBAAoB,IAAI,CAAC,WAAW,CAAC,MAAM,KAAK,CAAC,CAAC,CAAC,CAAC,oDAAoD,CAAC,CAAC,CAAC,IAAI,CAAC,WAAW,CAAC,GAAG,CAAC,YAAY,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAC3J,CAAC;YACJ,CAAC;YACD,IAAI,IAAI,CAAC,QAAQ;gBAAE,KAAK,CAAC,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC;QAC7D,CAAC;QACD,OAAO,CAAC,EAAE,IAAI,EAAE,MAAM,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,O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