@cyanheads/browser-compat-mcp-server 0.2.1 → 0.3.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.
- package/AGENTS.md +22 -9
- package/CLAUDE.md +22 -9
- package/Dockerfile +7 -3
- package/README.md +34 -43
- package/THIRD_PARTY_NOTICES.md +5 -6
- package/changelog/0.3.x/0.3.0.md +39 -0
- package/changelog/0.3.x/0.3.1.md +36 -0
- package/changelog/template.md +10 -3
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/dist/mcp-server/tools/definitions/browsercompat-check-baseline.tool.d.ts +2 -1
- package/dist/mcp-server/tools/definitions/browsercompat-check-baseline.tool.d.ts.map +1 -1
- package/dist/mcp-server/tools/definitions/browsercompat-check-baseline.tool.js +35 -11
- package/dist/mcp-server/tools/definitions/browsercompat-check-baseline.tool.js.map +1 -1
- package/dist/mcp-server/tools/definitions/browsercompat-compare-support.tool.d.ts +2 -2
- package/dist/mcp-server/tools/definitions/browsercompat-compare-support.tool.d.ts.map +1 -1
- package/dist/mcp-server/tools/definitions/browsercompat-compare-support.tool.js +61 -48
- package/dist/mcp-server/tools/definitions/browsercompat-compare-support.tool.js.map +1 -1
- package/dist/mcp-server/tools/definitions/browsercompat-list-reference.tool.js +3 -3
- package/dist/mcp-server/tools/definitions/browsercompat-list-reference.tool.js.map +1 -1
- package/dist/mcp-server/tools/definitions/browsercompat-search-features.tool.d.ts.map +1 -1
- package/dist/mcp-server/tools/definitions/browsercompat-search-features.tool.js +6 -14
- package/dist/mcp-server/tools/definitions/browsercompat-search-features.tool.js.map +1 -1
- package/dist/mcp-server/tools/definitions/compat-shapes.js +1 -1
- package/dist/mcp-server/tools/definitions/compat-shapes.js.map +1 -1
- package/dist/services/bcd/bcd-service.d.ts +9 -4
- package/dist/services/bcd/bcd-service.d.ts.map +1 -1
- package/dist/services/bcd/bcd-service.js +23 -7
- package/dist/services/bcd/bcd-service.js.map +1 -1
- package/dist/services/targets/targets-service.d.ts +27 -13
- package/dist/services/targets/targets-service.d.ts.map +1 -1
- package/dist/services/targets/targets-service.js +66 -21
- package/dist/services/targets/targets-service.js.map +1 -1
- package/dist/services/targets/types.d.ts +23 -6
- package/dist/services/targets/types.d.ts.map +1 -1
- package/package.json +15 -14
- package/server.json +3 -3
- package/skills/browser-compat-guide/SKILL.md +48 -0
package/AGENTS.md
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
# Developer Protocol
|
|
2
2
|
|
|
3
3
|
**Server:** browser-compat-mcp-server
|
|
4
|
-
**Version:** 0.
|
|
5
|
-
**Framework:** [@cyanheads/mcp-ts-core](https://www.npmjs.com/package/@cyanheads/mcp-ts-core) `^0.13.
|
|
6
|
-
**Engines:** Bun ≥1.4.
|
|
7
|
-
**MCP SDK:** `@modelcontextprotocol/server` ^2.
|
|
4
|
+
**Version:** 0.3.1
|
|
5
|
+
**Framework:** [@cyanheads/mcp-ts-core](https://www.npmjs.com/package/@cyanheads/mcp-ts-core) `^0.13.22`
|
|
6
|
+
**Engines:** Bun ≥1.4.4, Node ≥24.0.0
|
|
7
|
+
**MCP SDK:** `@modelcontextprotocol/server` ^2.4.0
|
|
8
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.
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
|
|
14
14
|
## This Server
|
|
15
15
|
|
|
16
|
-
Offline reference for web platform compatibility — what a coding agent needs while writing frontend code: can I use this feature, in which browsers, and is it safe to ship. Five tools,
|
|
16
|
+
Offline reference for web platform compatibility — what a coding agent needs while writing frontend code: can I use this feature, in which browsers, and is it safe to ship. Five tools, the published `browser-compat-guide` skill served as an MCP resource, and no prompts.
|
|
17
17
|
|
|
18
18
|
| Tool | Answers |
|
|
19
19
|
|:-----|:--------|
|
|
@@ -300,9 +300,18 @@ No `config/` directory: the server declares no environment variables of its own.
|
|
|
300
300
|
|
|
301
301
|
## Skills
|
|
302
302
|
|
|
303
|
-
|
|
303
|
+
Two skill trees live at the project root, written for different readers:
|
|
304
304
|
|
|
305
|
-
|
|
305
|
+
| Tree | For | Written by |
|
|
306
|
+
|:-----|:----|:-----------|
|
|
307
|
+
| `framework-skills/` | The agent developing this server — framework skills (`metadata.audience: external`) plus any development-time skills of the server's own | `init` and the `maintenance` sync (framework skills); you (your own) |
|
|
308
|
+
| `skills/` | The agents that install the server and call its tools — tool chains, identifier sources, gates | You, deliberately, with the `add-skill` skill. Absent by default; usually none is needed |
|
|
309
|
+
|
|
310
|
+
Development skills are modular instructions. Read them directly when a task matches — e.g., `framework-skills/add-tool/SKILL.md` when adding a tool. `bun run list-skills` prints the full registry. Their directory is deliberately not `skills/`: Claude Code and Codex auto-load a plugin's root `skills/`, so a server that ships `.claude-plugin/` or `.codex-plugin/` would hand them to every agent that installs it.
|
|
311
|
+
|
|
312
|
+
A published skill in root `skills/` reaches plugin installs and the `.mcpb` bundle as-is, ships in the npm package and the Docker image, and reaches MCP clients when the server opts in with `createApp({ skills: 'skills' })`. `lint:packaging` validates the tree.
|
|
313
|
+
|
|
314
|
+
**Agent skill directory:** Copy `framework-skills/` into the directory your agent discovers (Claude Code: `.claude/skills/`, others: equivalent). Skills then load as context without referencing `framework-skills/` paths. After framework updates, run the `maintenance` skill — Phase B re-syncs the agent directory.
|
|
306
315
|
|
|
307
316
|
Available skills:
|
|
308
317
|
|
|
@@ -314,6 +323,7 @@ Available skills:
|
|
|
314
323
|
| `add-app-tool` | Scaffold an MCP App tool + paired UI resource |
|
|
315
324
|
| `add-resource` | Scaffold a new resource definition |
|
|
316
325
|
| `add-prompt` | Scaffold a new prompt definition |
|
|
326
|
+
| `add-skill` | Author a skill the server publishes in root `skills/` for the agents that use it — when one earns its place, structure, validation, delivery |
|
|
317
327
|
| `add-service` | Scaffold a new service integration |
|
|
318
328
|
| `add-test` | Scaffold test file for a tool, resource, or service |
|
|
319
329
|
| `field-test` | Exercise tools/resources/prompts with real inputs, verify behavior, report issues |
|
|
@@ -361,7 +371,7 @@ When you complete a skill's checklist, check the boxes and add a completion time
|
|
|
361
371
|
| `bun run audit:fix` | `bun audit fix` — upgrade vulnerable packages to the lowest safe version within existing ranges (`--dry-run` previews, `--latest` rewrites ranges). First response when `devcheck` flags a transitive advisory; then `bun update <name>`, then `bun dedupe` |
|
|
362
372
|
| `bun run audit:refresh` | Delete `bun.lock` and reinstall. Last resort after `audit:fix`, `bun update <name>`, and `bun dedupe` — re-resolves every ranged dep (the framework pin included) and rewrites the lockfile as `lockfileVersion: 2` |
|
|
363
373
|
| `bun run lint:mcp` | Run the MCP definition linter standalone (rule catalog: `api-linter` skill) |
|
|
364
|
-
| `bun run lint:packaging` | Packaging surface checks —
|
|
374
|
+
| `bun run lint:packaging` | Packaging surface checks — env-var parity, bundle exclusions, plugin manifests, and published skills (run by devcheck) |
|
|
365
375
|
| `bun run list-skills` | Print the skill registry |
|
|
366
376
|
| `bun run tree` | Generate directory structure doc |
|
|
367
377
|
| `bun run format` | Auto-fix formatting (safe fixes only) |
|
|
@@ -379,7 +389,7 @@ When you complete a skill's checklist, check the boxes and add a completion time
|
|
|
379
389
|
|
|
380
390
|
## Bundling
|
|
381
391
|
|
|
382
|
-
`npm run bundle` produces a `.mcpb` extension bundle for one-click install in Claude Desktop. The pack step is followed by `scripts/clean-mcpb.ts`, which prunes dev dependencies (`mcpb clean`) and strips
|
|
392
|
+
`npm run bundle` produces a `.mcpb` extension bundle for one-click install in Claude Desktop. `mcpb pack` reads `.mcpbignore`, not `.gitignore`, so every root path the bundle must not ship — source, tests, docs, caches, logs, agent docs, plugin manifests, gitignored local files — needs a root-anchored line there (`/docs/`, never `docs/`, which also strips `node_modules/*/docs/`); `lint:packaging` names each missing or unanchored line. Root `skills/` ships on purpose. The pack step is followed by `scripts/clean-mcpb.ts`, which prunes dev dependencies (`mcpb clean`) and strips four classes of `node_modules/**` content that root-anchored `.mcpbignore` patterns cannot reach: dependency-shipped agent docs — `framework-skills/`, `skills/`, `.claude/`, `.agents/`, `AGENTS.md`, and `CLAUDE.md` at a package's root, and `SKILL.md` anywhere (a `skills/` deeper in a package is runtime code and stays); platform-specific native bindings, which would otherwise lock the bundle to the platform it was packed on; node-gyp build output beside a `binding.gyp` (`config.gypi`, Makefiles, `obj.target/`, `.deps/`, object files and debug symbols), which records the packing machine's paths — compiled `*.node` addons stay; and build-only package files — the framework's `changelog/`, `scripts/`, `templates/`, and config bases (`biome.json`, `vitest.config.base.mjs`, `config/tsconfig.base.json`), and `better-sqlite3`'s `deps/` and `src/` C sources. A server using DataCanvas therefore ships a portable bundle without the DuckDB native — `@duckdb/node-api` is an optional peer loaded lazily, so canvas tools report an actionable install hint and every other tool works normally. MCPB is stdio-only — HTTP and Cloudflare Workers deployments are unaffected. Consumers who don't need it can delete `manifest.json` and `.mcpbignore`; `lint:packaging` skips cleanly.
|
|
383
393
|
|
|
384
394
|
**Adding an env var requires both files:** `server.json` (registry discovery, `environmentVariables[]`) and `manifest.json` (bundle install UX, `mcp_config.env` + `user_config`). `lint:packaging` (run by `devcheck`) verifies the env var names match, that every `user_config` option is wired into `mcp_config.env` as `"X": "${user_config.X}"` (the host substitutes nothing else — `"${X}"` reaches the server as that literal string), and that an optional string option carries `"default": ""`.
|
|
385
395
|
|
|
@@ -446,7 +456,10 @@ import { getMyService } from '@/services/my-domain/my-service.js';
|
|
|
446
456
|
- [ ] If wrapping external API: tests include at least one sparse payload case with omitted upstream fields
|
|
447
457
|
- [ ] Registered in `createApp()` arrays (directly or via barrel exports)
|
|
448
458
|
- [ ] Tests use `createMockContext()` from `@cyanheads/mcp-ts-core/testing`
|
|
459
|
+
- [ ] `plugin.json` + `mcp.json` (Agent Plugins 1.0.0 — read by Codex, Cursor, GitHub Copilot, VS Code, Kiro) populated — `plugin.json` `name` = the unscoped repo name (lowercase `a-z`, `0-9`, `-`, `.` only); `version`, `description`, `author`, `homepage`, `repository`, `license`, `keywords` from `package.json`; no other top-level field, `extensions` included. `mcp.json` holds one `"type": "stdio"` entry keyed by the unscoped name, `npx -y <full package name>`, and the same fixed `env` as `.codex-plugin/mcp.json`. Neither file carries a user-supplied variable (no `""`, no `${…}` besides `${PLUGIN_ROOT}`/`${PLUGIN_DATA}`): keys reach Codex through `.codex-plugin/mcp.json` `env_vars`, which works only while `.codex-plugin/plugin.json` keeps `"mcpServers": "./.codex-plugin/mcp.json"`
|
|
449
460
|
- [ ] `.codex-plugin/plugin.json` populated — `name`, `version`, `description`, `repository`, `license` from `package.json`; `interface.displayName` = the unscoped repo name (never the npm scope — `lint:packaging` enforces this); `interface.shortDescription` from `package.json` description
|
|
450
461
|
- [ ] `.codex-plugin/mcp.json` updated — server name key is the unscoped repo name; every user-supplied variable (API key, contact email, instance URL) is listed in `env_vars` so Codex forwards it from the user's environment. Never write `"KEY": ""` into `env` — an empty value replaces the user's exported key and is read as unset
|
|
451
462
|
- [ ] `.claude-plugin/plugin.json` populated — `name`, `version`, `description`, `author`, `repository`, `license`, `keywords` from `package.json`; inline `mcpServers` entry keyed by the unscoped repo name. Every user-supplied variable is declared under `userConfig` (`type`, `title`, `description`; `sensitive: true` for keys and tokens; `required: true` or `default: ""`) and referenced from `env` as `"KEY": "${user_config.<option>}"` — mirror the `user_config` block in `manifest.json`. Never write `"KEY": ""` into `env`
|
|
463
|
+
- [ ] Any new root dev path has a root-anchored line in `.mcpbignore`; `bun run bundle` and `lint:packaging` pass
|
|
464
|
+
- [ ] If the server publishes a skill in root `skills/`: `lint:packaging` passes, and `field-test` verified every gate and identifier claim in it against live tool behavior
|
|
452
465
|
- [ ] `npm run devcheck` passes
|
package/CLAUDE.md
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
# Developer Protocol
|
|
2
2
|
|
|
3
3
|
**Server:** browser-compat-mcp-server
|
|
4
|
-
**Version:** 0.
|
|
5
|
-
**Framework:** [@cyanheads/mcp-ts-core](https://www.npmjs.com/package/@cyanheads/mcp-ts-core) `^0.13.
|
|
6
|
-
**Engines:** Bun ≥1.4.
|
|
7
|
-
**MCP SDK:** `@modelcontextprotocol/server` ^2.
|
|
4
|
+
**Version:** 0.3.1
|
|
5
|
+
**Framework:** [@cyanheads/mcp-ts-core](https://www.npmjs.com/package/@cyanheads/mcp-ts-core) `^0.13.22`
|
|
6
|
+
**Engines:** Bun ≥1.4.4, Node ≥24.0.0
|
|
7
|
+
**MCP SDK:** `@modelcontextprotocol/server` ^2.4.0
|
|
8
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.
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
|
|
14
14
|
## This Server
|
|
15
15
|
|
|
16
|
-
Offline reference for web platform compatibility — what a coding agent needs while writing frontend code: can I use this feature, in which browsers, and is it safe to ship. Five tools,
|
|
16
|
+
Offline reference for web platform compatibility — what a coding agent needs while writing frontend code: can I use this feature, in which browsers, and is it safe to ship. Five tools, the published `browser-compat-guide` skill served as an MCP resource, and no prompts.
|
|
17
17
|
|
|
18
18
|
| Tool | Answers |
|
|
19
19
|
|:-----|:--------|
|
|
@@ -300,9 +300,18 @@ No `config/` directory: the server declares no environment variables of its own.
|
|
|
300
300
|
|
|
301
301
|
## Skills
|
|
302
302
|
|
|
303
|
-
|
|
303
|
+
Two skill trees live at the project root, written for different readers:
|
|
304
304
|
|
|
305
|
-
|
|
305
|
+
| Tree | For | Written by |
|
|
306
|
+
|:-----|:----|:-----------|
|
|
307
|
+
| `framework-skills/` | The agent developing this server — framework skills (`metadata.audience: external`) plus any development-time skills of the server's own | `init` and the `maintenance` sync (framework skills); you (your own) |
|
|
308
|
+
| `skills/` | The agents that install the server and call its tools — tool chains, identifier sources, gates | You, deliberately, with the `add-skill` skill. Absent by default; usually none is needed |
|
|
309
|
+
|
|
310
|
+
Development skills are modular instructions. Read them directly when a task matches — e.g., `framework-skills/add-tool/SKILL.md` when adding a tool. `bun run list-skills` prints the full registry. Their directory is deliberately not `skills/`: Claude Code and Codex auto-load a plugin's root `skills/`, so a server that ships `.claude-plugin/` or `.codex-plugin/` would hand them to every agent that installs it.
|
|
311
|
+
|
|
312
|
+
A published skill in root `skills/` reaches plugin installs and the `.mcpb` bundle as-is, ships in the npm package and the Docker image, and reaches MCP clients when the server opts in with `createApp({ skills: 'skills' })`. `lint:packaging` validates the tree.
|
|
313
|
+
|
|
314
|
+
**Agent skill directory:** Copy `framework-skills/` into the directory your agent discovers (Claude Code: `.claude/skills/`, others: equivalent). Skills then load as context without referencing `framework-skills/` paths. After framework updates, run the `maintenance` skill — Phase B re-syncs the agent directory.
|
|
306
315
|
|
|
307
316
|
Available skills:
|
|
308
317
|
|
|
@@ -314,6 +323,7 @@ Available skills:
|
|
|
314
323
|
| `add-app-tool` | Scaffold an MCP App tool + paired UI resource |
|
|
315
324
|
| `add-resource` | Scaffold a new resource definition |
|
|
316
325
|
| `add-prompt` | Scaffold a new prompt definition |
|
|
326
|
+
| `add-skill` | Author a skill the server publishes in root `skills/` for the agents that use it — when one earns its place, structure, validation, delivery |
|
|
317
327
|
| `add-service` | Scaffold a new service integration |
|
|
318
328
|
| `add-test` | Scaffold test file for a tool, resource, or service |
|
|
319
329
|
| `field-test` | Exercise tools/resources/prompts with real inputs, verify behavior, report issues |
|
|
@@ -361,7 +371,7 @@ When you complete a skill's checklist, check the boxes and add a completion time
|
|
|
361
371
|
| `bun run audit:fix` | `bun audit fix` — upgrade vulnerable packages to the lowest safe version within existing ranges (`--dry-run` previews, `--latest` rewrites ranges). First response when `devcheck` flags a transitive advisory; then `bun update <name>`, then `bun dedupe` |
|
|
362
372
|
| `bun run audit:refresh` | Delete `bun.lock` and reinstall. Last resort after `audit:fix`, `bun update <name>`, and `bun dedupe` — re-resolves every ranged dep (the framework pin included) and rewrites the lockfile as `lockfileVersion: 2` |
|
|
363
373
|
| `bun run lint:mcp` | Run the MCP definition linter standalone (rule catalog: `api-linter` skill) |
|
|
364
|
-
| `bun run lint:packaging` | Packaging surface checks —
|
|
374
|
+
| `bun run lint:packaging` | Packaging surface checks — env-var parity, bundle exclusions, plugin manifests, and published skills (run by devcheck) |
|
|
365
375
|
| `bun run list-skills` | Print the skill registry |
|
|
366
376
|
| `bun run tree` | Generate directory structure doc |
|
|
367
377
|
| `bun run format` | Auto-fix formatting (safe fixes only) |
|
|
@@ -379,7 +389,7 @@ When you complete a skill's checklist, check the boxes and add a completion time
|
|
|
379
389
|
|
|
380
390
|
## Bundling
|
|
381
391
|
|
|
382
|
-
`npm run bundle` produces a `.mcpb` extension bundle for one-click install in Claude Desktop. The pack step is followed by `scripts/clean-mcpb.ts`, which prunes dev dependencies (`mcpb clean`) and strips
|
|
392
|
+
`npm run bundle` produces a `.mcpb` extension bundle for one-click install in Claude Desktop. `mcpb pack` reads `.mcpbignore`, not `.gitignore`, so every root path the bundle must not ship — source, tests, docs, caches, logs, agent docs, plugin manifests, gitignored local files — needs a root-anchored line there (`/docs/`, never `docs/`, which also strips `node_modules/*/docs/`); `lint:packaging` names each missing or unanchored line. Root `skills/` ships on purpose. The pack step is followed by `scripts/clean-mcpb.ts`, which prunes dev dependencies (`mcpb clean`) and strips four classes of `node_modules/**` content that root-anchored `.mcpbignore` patterns cannot reach: dependency-shipped agent docs — `framework-skills/`, `skills/`, `.claude/`, `.agents/`, `AGENTS.md`, and `CLAUDE.md` at a package's root, and `SKILL.md` anywhere (a `skills/` deeper in a package is runtime code and stays); platform-specific native bindings, which would otherwise lock the bundle to the platform it was packed on; node-gyp build output beside a `binding.gyp` (`config.gypi`, Makefiles, `obj.target/`, `.deps/`, object files and debug symbols), which records the packing machine's paths — compiled `*.node` addons stay; and build-only package files — the framework's `changelog/`, `scripts/`, `templates/`, and config bases (`biome.json`, `vitest.config.base.mjs`, `config/tsconfig.base.json`), and `better-sqlite3`'s `deps/` and `src/` C sources. A server using DataCanvas therefore ships a portable bundle without the DuckDB native — `@duckdb/node-api` is an optional peer loaded lazily, so canvas tools report an actionable install hint and every other tool works normally. MCPB is stdio-only — HTTP and Cloudflare Workers deployments are unaffected. Consumers who don't need it can delete `manifest.json` and `.mcpbignore`; `lint:packaging` skips cleanly.
|
|
383
393
|
|
|
384
394
|
**Adding an env var requires both files:** `server.json` (registry discovery, `environmentVariables[]`) and `manifest.json` (bundle install UX, `mcp_config.env` + `user_config`). `lint:packaging` (run by `devcheck`) verifies the env var names match, that every `user_config` option is wired into `mcp_config.env` as `"X": "${user_config.X}"` (the host substitutes nothing else — `"${X}"` reaches the server as that literal string), and that an optional string option carries `"default": ""`.
|
|
385
395
|
|
|
@@ -446,7 +456,10 @@ import { getMyService } from '@/services/my-domain/my-service.js';
|
|
|
446
456
|
- [ ] If wrapping external API: tests include at least one sparse payload case with omitted upstream fields
|
|
447
457
|
- [ ] Registered in `createApp()` arrays (directly or via barrel exports)
|
|
448
458
|
- [ ] Tests use `createMockContext()` from `@cyanheads/mcp-ts-core/testing`
|
|
459
|
+
- [ ] `plugin.json` + `mcp.json` (Agent Plugins 1.0.0 — read by Codex, Cursor, GitHub Copilot, VS Code, Kiro) populated — `plugin.json` `name` = the unscoped repo name (lowercase `a-z`, `0-9`, `-`, `.` only); `version`, `description`, `author`, `homepage`, `repository`, `license`, `keywords` from `package.json`; no other top-level field, `extensions` included. `mcp.json` holds one `"type": "stdio"` entry keyed by the unscoped name, `npx -y <full package name>`, and the same fixed `env` as `.codex-plugin/mcp.json`. Neither file carries a user-supplied variable (no `""`, no `${…}` besides `${PLUGIN_ROOT}`/`${PLUGIN_DATA}`): keys reach Codex through `.codex-plugin/mcp.json` `env_vars`, which works only while `.codex-plugin/plugin.json` keeps `"mcpServers": "./.codex-plugin/mcp.json"`
|
|
449
460
|
- [ ] `.codex-plugin/plugin.json` populated — `name`, `version`, `description`, `repository`, `license` from `package.json`; `interface.displayName` = the unscoped repo name (never the npm scope — `lint:packaging` enforces this); `interface.shortDescription` from `package.json` description
|
|
450
461
|
- [ ] `.codex-plugin/mcp.json` updated — server name key is the unscoped repo name; every user-supplied variable (API key, contact email, instance URL) is listed in `env_vars` so Codex forwards it from the user's environment. Never write `"KEY": ""` into `env` — an empty value replaces the user's exported key and is read as unset
|
|
451
462
|
- [ ] `.claude-plugin/plugin.json` populated — `name`, `version`, `description`, `author`, `repository`, `license`, `keywords` from `package.json`; inline `mcpServers` entry keyed by the unscoped repo name. Every user-supplied variable is declared under `userConfig` (`type`, `title`, `description`; `sensitive: true` for keys and tokens; `required: true` or `default: ""`) and referenced from `env` as `"KEY": "${user_config.<option>}"` — mirror the `user_config` block in `manifest.json`. Never write `"KEY": ""` into `env`
|
|
463
|
+
- [ ] Any new root dev path has a root-anchored line in `.mcpbignore`; `bun run bundle` and `lint:packaging` pass
|
|
464
|
+
- [ ] If the server publishes a skill in root `skills/`: `lint:packaging` passes, and `field-test` verified every gate and identifier claim in it against live tool behavior
|
|
452
465
|
- [ ] `npm run devcheck` passes
|
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.
|
|
17
|
+
FROM --platform=$BUILDPLATFORM oven/bun:1.4.4 AS build
|
|
18
18
|
|
|
19
19
|
WORKDIR /usr/src/app
|
|
20
20
|
|
|
@@ -29,6 +29,9 @@ RUN --mount=type=cache,target=/root/.bun/install/cache \
|
|
|
29
29
|
# Copy the rest of the source code
|
|
30
30
|
COPY . .
|
|
31
31
|
|
|
32
|
+
# Keep the optional published-skill tree available in every image.
|
|
33
|
+
RUN mkdir -p skills
|
|
34
|
+
|
|
32
35
|
# Build the application
|
|
33
36
|
RUN bun run build
|
|
34
37
|
|
|
@@ -46,7 +49,7 @@ RUN bun run build
|
|
|
46
49
|
# A clean image rather than `FROM build`: the build stage's node_modules holds
|
|
47
50
|
# devDependencies.
|
|
48
51
|
# ==============================================================================
|
|
49
|
-
FROM --platform=$BUILDPLATFORM oven/bun:1.4.
|
|
52
|
+
FROM --platform=$BUILDPLATFORM oven/bun:1.4.4 AS deps
|
|
50
53
|
|
|
51
54
|
WORKDIR /usr/src/app
|
|
52
55
|
|
|
@@ -114,7 +117,7 @@ RUN rm -rf node_modules/@socketsecurity/bun-security-scanner
|
|
|
114
117
|
# dependencies and build artifacts. Its only Bun invocations are HEALTHCHECK
|
|
115
118
|
# and CMD, which run on the real target at container start.
|
|
116
119
|
# ==============================================================================
|
|
117
|
-
FROM oven/bun:1.4.
|
|
120
|
+
FROM oven/bun:1.4.4-slim AS production
|
|
118
121
|
|
|
119
122
|
WORKDIR /usr/src/app
|
|
120
123
|
|
|
@@ -136,6 +139,7 @@ COPY --from=deps /usr/src/app/node_modules ./node_modules
|
|
|
136
139
|
|
|
137
140
|
# Copy the compiled application code from the build stage
|
|
138
141
|
COPY --from=build /usr/src/app/dist ./dist
|
|
142
|
+
COPY --from=build /usr/src/app/skills ./skills
|
|
139
143
|
|
|
140
144
|
# Mirror CLI (MirrorService adopters only — Tier 3, opt-in):
|
|
141
145
|
# Copy your mirror lifecycle scripts and emit a runtime tsconfig so Bun resolves
|
package/README.md
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
|
|
8
8
|
<div align="center">
|
|
9
9
|
|
|
10
|
-
[](https://www.npmjs.com/package/@cyanheads/browser-compat-mcp-server) [](./LICENSE) [](https://www.npmjs.com/package/@cyanheads/browser-compat-mcp-server) [](./LICENSE) [](https://modelcontextprotocol.io/) [](https://bun.sh/)
|
|
11
11
|
|
|
12
12
|
</div>
|
|
13
13
|
|
|
@@ -29,7 +29,9 @@
|
|
|
29
29
|
|
|
30
30
|
## Overview
|
|
31
31
|
|
|
32
|
-
|
|
32
|
+
Browser support and Baseline status for any web platform feature, from MDN's `@mdn/browser-compat-data`, `web-features`, and `caniuse-lite` usage data. Check whether a feature is safe to ship against your browserslist targets. All data ships in the package: no network calls, no API key, no rate limit.
|
|
33
|
+
|
|
34
|
+
The [browser-compat-guide](./skills/browser-compat-guide/SKILL.md) covers assessing code against a project's browser policy and diagnosing historical support failures. It ships with plugin, npm, Docker, and MCPB installs and is available over MCP at `skill://browser-compat-guide/SKILL.md`.
|
|
33
35
|
|
|
34
36
|
### Tools
|
|
35
37
|
|
|
@@ -39,7 +41,7 @@ Web platform compatibility for frontend work: per-browser support from MDN's `@m
|
|
|
39
41
|
| `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
42
|
| `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
43
|
| `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, evaluated coverage, and failing version runs per feature
|
|
44
|
+
| `browsercompat_compare_support` | Check features against an explicit browserslist target query: a whole-query verdict, evaluated coverage, and failing version runs per feature. |
|
|
43
45
|
|
|
44
46
|
---
|
|
45
47
|
|
|
@@ -47,51 +49,40 @@ Web platform compatibility for frontend work: per-browser support from MDN's `@m
|
|
|
47
49
|
|
|
48
50
|
### `browsercompat_list_reference` <sub>tool</sub>
|
|
49
51
|
|
|
50
|
-
- Required `topic`: `bcd_namespaces` (12), `bcd_browsers` (17), `browserslist_agents` (19), `baseline_states` (4), `groups` (
|
|
52
|
+
- Required `topic`: `bcd_namespaces` (12), `bcd_browsers` (17), `browserslist_agents` (19), `baseline_states` (4), `groups` (105), or `snapshots` (11). Group and snapshot ids feed the search filters.
|
|
51
53
|
- Entries carry `id`, `label`, and `detail`, plus `count`, `reported`, `bcd_browser`, `usage_percent`, `maps_from`, or `spec_url` where applicable. An agent's `bcd_browser: null` means support comparisons cannot evaluate it and report it in `unchecked_targets`.
|
|
52
54
|
|
|
53
55
|
---
|
|
54
56
|
|
|
55
57
|
### `browsercompat_get_feature` <sub>tool</sub>
|
|
56
58
|
|
|
57
|
-
- One `feature`, 1–200 characters: a BCD key (`css.selectors.has`) or web-features id (`has`). `resolve: true` accepts a name or notation
|
|
58
|
-
- `outcome` is `found`, `no_compat_data`, or `miss`;
|
|
59
|
-
- A multi-key id such as `grid`
|
|
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-" }`.
|
|
62
|
-
- `include_runtimes: true` adds `bun`, `deno`, `nodejs`, and `oculus` support to the 13 desktop and mobile browser rows.
|
|
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.
|
|
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.
|
|
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.
|
|
59
|
+
- One `feature`, 1–200 characters: a BCD key (`css.selectors.has`) or web-features id (`has`). `resolve: true` (off by default) also accepts a name or notation when it matches exactly one feature. `include_runtimes: true` adds `bun`, `deno`, `nodejs`, and `oculus` support rows.
|
|
60
|
+
- `outcome` is `found`, `no_compat_data`, or `miss`; a miss returns `found: false` with `guidance`, and whitespace-only input returns `invalid_feature_input`. Each `support` row gives the newest release's statement, with the other BCD statements for that browser in `other_statements`.
|
|
61
|
+
- A multi-key id such as `grid` returns `feature_support` (one row per Baseline core browser) instead of `support`, `status`, `mdn_url`, and `spec_urls`; call one of its `compat_keys` for a key-level answer. `compat_keys` and `subkeys` page 100 at a time with `compat_keys_offset` and `subkeys_offset` (default 0). `limiting_browser` is the Baseline core browser with the newest required release.
|
|
66
62
|
|
|
67
63
|
---
|
|
68
64
|
|
|
69
65
|
### `browsercompat_check_baseline` <sub>tool</sub>
|
|
70
66
|
|
|
71
|
-
- BCD keys or web-features ids, 1–200 characters each.
|
|
72
|
-
- Results carry Baseline state and dates, `limiting_browser
|
|
73
|
-
- `all_widely_available`
|
|
67
|
+
- BCD keys or web-features ids, 1–200 characters each. Up to 100 are accepted and the first 20 are evaluated in input order; the rest come back verbatim in `omitted_features`. More than 100 is rejected, and a whitespace-only entry returns `invalid_feature_input`.
|
|
68
|
+
- Results carry Baseline state and dates, `limiting_browser`, `deprecated`, `experimental`, and `discouraged`, plus `usage_percent_excluded`, `usage_percent_prefixed`, and `usage_source` where caniuse covers the feature. `usage_percent_excluded` is the traffic without default, unprefixed, unflagged support; `usage_percent_prefixed` is the part of it a vendor prefix recovers. Usage is left out when unavailable, never reported as zero.
|
|
69
|
+
- `all_widely_available` is true only when every entry resolves at `widely` and none was omitted; it does not assess deprecation.
|
|
74
70
|
|
|
75
71
|
---
|
|
76
72
|
|
|
77
73
|
### `browsercompat_search_features` <sub>tool</sub>
|
|
78
74
|
|
|
79
75
|
- `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`).
|
|
80
|
-
- `matched_on`
|
|
81
|
-
- Page with `limit` (default 10,
|
|
76
|
+
- `matched_on` says why a result ranked where it did, and `support_summary` covers the seven Baseline core browsers: `Firefox 33 (flagged)`, `Safari 3 (prefixed)`, `Chrome 94 (partial)`, and `Edge ≤18` preserve the selected verdict and addition bound; `—` means unsupported, removed, or preview-only, and `?` means unknown. Typed failures: `invalid_query` (zero searchable tokens), `unknown_group`, `unknown_snapshot`.
|
|
77
|
+
- Page with `limit` (default 10, 1–1000; `cap` reports the requested size) and `offset` (default 0); `totalCount` and `nextOffset` drive paging. Zero hits succeed with a notice naming a filter to drop.
|
|
82
78
|
|
|
83
79
|
---
|
|
84
80
|
|
|
85
81
|
### `browsercompat_compare_support` <sub>tool</sub>
|
|
86
82
|
|
|
87
|
-
- Up to 20 features per call against a required `targets` browserslist query, such as `defaults` or `> 0.5%, last 2 versions`; local
|
|
88
|
-
-
|
|
89
|
-
-
|
|
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.
|
|
83
|
+
- Up to 20 features per call against a required self-contained `targets` browserslist query, such as `defaults` or `> 0.5%, last 2 versions`; config packages and custom configuration are rejected, and local config discovery is disabled. Up to 100 features are accepted and the rest come back in `omitted_features`, which makes `all_clear` false. Typed failures: `invalid_target_query`, `no_targets_resolved`, `invalid_feature_input`.
|
|
84
|
+
- Each `verdict` is `clears`, `fails`, `inconclusive`, `miss`, or `ambiguous`. A feature clears only when every target in the query was evaluated and supports it, so a query that includes a browser with no compatibility data, as `defaults` does, never clears. `all_clear` is true only when every feature clears.
|
|
85
|
+
- Results report `support_source`, `failing_ranges`, `failing_total`, and evaluated and unchecked totals with coverage percentages. Target rows page with `target_offset` (default 0) and `target_limit` (default 10, 1–1000; `cap` reports the requested size); verdicts and totals are the same on every page, and `totalCount` and `nextOffset` drive paging.
|
|
95
86
|
|
|
96
87
|
---
|
|
97
88
|
|
|
@@ -99,12 +90,12 @@ Web platform compatibility for frontend work: per-browser support from MDN's `@m
|
|
|
99
90
|
|
|
100
91
|
| Package | Version | License | Supplies |
|
|
101
92
|
|:---|:---|:---|:---|
|
|
102
|
-
| [`@mdn/browser-compat-data`](https://github.com/mdn/browser-compat-data) | `^8.1.
|
|
103
|
-
| [`web-features`](https://github.com/web-platform-dx/web-features) | `^3.
|
|
104
|
-
| [`caniuse-lite`](https://github.com/browserslist/caniuse-lite) | `^1.0.
|
|
105
|
-
| [`browserslist`](https://github.com/browserslist/browserslist) | `^4.29.
|
|
93
|
+
| [`@mdn/browser-compat-data`](https://github.com/mdn/browser-compat-data) | `^8.1.8` | CC0-1.0 | Per-browser support, standards status, MDN and specification links |
|
|
94
|
+
| [`web-features`](https://github.com/web-platform-dx/web-features) | `^3.45.0` | Apache-2.0 | Baseline state and dates, feature-level core-browser support, discouraged flags, groups, ECMAScript snapshots |
|
|
95
|
+
| [`caniuse-lite`](https://github.com/browserslist/caniuse-lite) | `^1.0.30001823` | CC-BY-4.0 | Usage weighting, plus feature titles for the search index |
|
|
96
|
+
| [`browserslist`](https://github.com/browserslist/browserslist) | `^4.29.5` | MIT | Target query resolution and coverage figures |
|
|
106
97
|
|
|
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
|
|
98
|
+
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 percentage points of global traffic. The bundled data tracks ~97.6% of global traffic; the remainder is untracked and unknown.` Values are raw global percentages, without normalization to tracked traffic. Full license texts and notices are in [`THIRD_PARTY_NOTICES.md`](./THIRD_PARTY_NOTICES.md).
|
|
108
99
|
|
|
109
100
|
---
|
|
110
101
|
|
|
@@ -116,16 +107,15 @@ Browser-compat-specific:
|
|
|
116
107
|
|
|
117
108
|
- All four datasets are bundled and loaded in process — no runtime network calls, no API key, no rate limit, and nothing to configure
|
|
118
109
|
- Baseline is read per browser-compat-data key from `status.by_compat_key`, never rolled up from the feature level, because keys under one feature legitimately disagree
|
|
119
|
-
-
|
|
120
|
-
- Target versions
|
|
110
|
+
- Every tool resolves a feature the same way: exact BCD key, then web-features id, then a `moved` redirect
|
|
111
|
+
- Target versions follow browser-compat-data's release order, with caniuse spellings normalized (`safari 16.0` ↔ `16`)
|
|
121
112
|
|
|
122
113
|
Agent-friendly output:
|
|
123
114
|
|
|
124
|
-
- Every response echoes `data_version
|
|
125
|
-
- A pass is never claimed for a browser that was not evaluated
|
|
126
|
-
- Misses are results, not failures
|
|
127
|
-
- Usage figures state the population they are a share of
|
|
128
|
-
- 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.
|
|
115
|
+
- Every response echoes `data_version`, the version of each bundled dataset behind the answer
|
|
116
|
+
- A pass is never claimed for a browser that was not evaluated; targets without data land in `unchecked_targets` and make the verdict `inconclusive`
|
|
117
|
+
- Misses are results, not failures: `found: false` with `guidance` naming the next call, and typed errors with recovery hints
|
|
118
|
+
- Usage figures state the population they are a share of and carry the caniuse attribution
|
|
129
119
|
|
|
130
120
|
---
|
|
131
121
|
|
|
@@ -211,7 +201,7 @@ MCP_TRANSPORT_TYPE=http MCP_HTTP_PORT=3010 bun run start:http
|
|
|
211
201
|
|
|
212
202
|
### Prerequisites
|
|
213
203
|
|
|
214
|
-
- [Bun v1.4.
|
|
204
|
+
- [Bun v1.4.4](https://bun.sh/) or higher (or Node.js v24+).
|
|
215
205
|
- No API keys, accounts, or network access required — every dataset ships with the package.
|
|
216
206
|
|
|
217
207
|
### Installation
|
|
@@ -251,10 +241,10 @@ There are no server-specific environment variables: no API keys, no base URLs, a
|
|
|
251
241
|
|:---------|:------------|:--------|
|
|
252
242
|
| `MCP_TRANSPORT_TYPE` | Transport: `stdio` or `http`. | `stdio` |
|
|
253
243
|
| `MCP_HTTP_PORT` | Port for the HTTP server. | `3010` |
|
|
254
|
-
| `MCP_SESSION_MODE` | HTTP session mode
|
|
255
|
-
| `OTEL_ENABLED` | Enable OpenTelemetry
|
|
256
|
-
| `OTEL_EXPORTER_OTLP_ENDPOINT` | Base URL for traces
|
|
257
|
-
| `OTEL_EXPORTER_OTLP_LOGS_ENDPOINT` |
|
|
244
|
+
| `MCP_SESSION_MODE` | HTTP session mode. | `stateless` |
|
|
245
|
+
| `OTEL_ENABLED` | Enable OpenTelemetry. | `false` |
|
|
246
|
+
| `OTEL_EXPORTER_OTLP_ENDPOINT` | Base URL for traces and metrics. | Unset |
|
|
247
|
+
| `OTEL_EXPORTER_OTLP_LOGS_ENDPOINT` | OTLP log endpoint. | Unset |
|
|
258
248
|
| `LOG_TOOL_FAILURE_PAYLOADS` | Log failed-call arguments and results. Redaction matches key names only; free-form values can retain secrets. | `false` |
|
|
259
249
|
| `LOG_TOOL_FAILURE_PAYLOAD_MAX_BYTES` | UTF-8 byte cap per logged payload. | `16384` |
|
|
260
250
|
|
|
@@ -302,6 +292,7 @@ The Dockerfile defaults to HTTP transport, stateless session mode, and logs to `
|
|
|
302
292
|
| `src/mcp-server/tools/` | Tool definitions (`*.tool.ts`) and the output shapes they share. |
|
|
303
293
|
| `src/services/` | bcd, baseline, targets, search, and data-version services over the bundled datasets. |
|
|
304
294
|
| `src/types/` | Ambient module declaration for `caniuse-lite`, which ships no types. |
|
|
295
|
+
| `skills/` | Published browser compatibility workflow guide. |
|
|
305
296
|
| `tests/` | Vitest suites mirroring `src/`. |
|
|
306
297
|
| `docs/` | `design.md` — the surface, the data shapes behind it, and the decisions log. |
|
|
307
298
|
| `changelog/` | Per-version changelog files. |
|
package/THIRD_PARTY_NOTICES.md
CHANGED
|
@@ -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.
|
|
10
|
-
| `web-features` | ^3.
|
|
11
|
-
| `caniuse-lite` | ^1.0.
|
|
12
|
-
| `browserslist` | ^4.29.
|
|
9
|
+
| `@mdn/browser-compat-data` | ^8.1.8 | CC0-1.0 | https://github.com/mdn/browser-compat-data |
|
|
10
|
+
| `web-features` | ^3.45.0 | Apache-2.0 | https://github.com/web-platform-dx/web-features |
|
|
11
|
+
| `caniuse-lite` | ^1.0.30001823 | CC-BY-4.0 | https://github.com/browserslist/caniuse-lite |
|
|
12
|
+
| `browserslist` | ^4.29.5 | 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`.
|
|
@@ -246,8 +246,7 @@ Commons Attribution 4.0 International License. CC BY 4.0 requires attribution wh
|
|
|
246
246
|
data is conveyed, so alongside this file every tool response that quotes a usage percentage
|
|
247
247
|
carries this string verbatim in its `attribution` field:
|
|
248
248
|
|
|
249
|
-
> Usage data from caniuse.com, © Can I Use contributors, CC BY 4.0. Figures are
|
|
250
|
-
> the ~97.3% of global traffic caniuse tracks.
|
|
249
|
+
> Usage data from caniuse.com, © Can I Use contributors, CC BY 4.0. Figures are percentage points of global traffic. The bundled data tracks ~97.6% of global traffic; the remainder is untracked and unknown.
|
|
251
250
|
|
|
252
251
|
Full license: https://creativecommons.org/licenses/by/4.0/legalcode
|
|
253
252
|
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
---
|
|
2
|
+
summary: "Browser support evidence preserves uncertainty and qualifications, with a published workflow guide for project shipping decisions."
|
|
3
|
+
breaking: false
|
|
4
|
+
security: false
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# 0.3.0 — 2026-10-26
|
|
8
|
+
|
|
9
|
+
## Added
|
|
10
|
+
|
|
11
|
+
- Publish the browser-compat-guide workflow skill at skill://browser-compat-guide/SKILL.md.
|
|
12
|
+
- **Agent Plugins manifests** expose the server through root `plugin.json` and `mcp.json`.
|
|
13
|
+
|
|
14
|
+
## Changed
|
|
15
|
+
|
|
16
|
+
- **Guide delivery** includes plugin, npm, Docker, and MCPB installs; server instructions distinguish scalar and batch feature inputs.
|
|
17
|
+
- **Development tooling** syncs framework skills, validates published skills and plugin manifests, and removes build-only MCPB content while preserving executable SDK skill modules; the issue template collects environment details in one table.
|
|
18
|
+
- **Dependency age policy** uses a one-day minimum release age.
|
|
19
|
+
|
|
20
|
+
## Fixed
|
|
21
|
+
|
|
22
|
+
- **Uncertain removal bounds** remain unchecked before the upper bound instead of producing false support; targets at or beyond it are removed ([#32](https://github.com/cyanheads/browser-compat-mcp-server/issues/32)).
|
|
23
|
+
- **Search support summaries** preserve flags, prefixes, partial support, and addition bounds ([#33](https://github.com/cyanheads/browser-compat-mcp-server/issues/33)).
|
|
24
|
+
- **Usage labels and attribution** identify raw percentage points of global traffic and the unknown untracked remainder ([#34](https://github.com/cyanheads/browser-compat-mcp-server/issues/34)).
|
|
25
|
+
- **Configuration-dependent target queries** return `invalid_target_query` with self-contained-query guidance instead of loading unavailable configuration or substituting server defaults ([#35](https://github.com/cyanheads/browser-compat-mcp-server/issues/35)).
|
|
26
|
+
|
|
27
|
+
## Dependencies
|
|
28
|
+
|
|
29
|
+
- `@cyanheads/mcp-ts-core` ^0.13.15 → ^0.13.18
|
|
30
|
+
- `@mdn/browser-compat-data` ^8.1.5 → ^8.1.7
|
|
31
|
+
- `browserslist` ^4.29.3 → ^4.29.4
|
|
32
|
+
- `caniuse-lite` ^1.0.30001815 → ^1.0.30001819
|
|
33
|
+
- `web-features` ^3.42.0 → ^3.44.0
|
|
34
|
+
- `@biomejs/biome` 2.5.15 → 2.6.3
|
|
35
|
+
- `@vitest/coverage-istanbul` 5.0.4 → 5.0.5
|
|
36
|
+
- `vitest` ^5.0.4 → ^5.0.5
|
|
37
|
+
- `ignore` ^7.0.12 → ^7.0.14
|
|
38
|
+
- `tsc-alias` ^1.9.7 → ^1.9.9
|
|
39
|
+
- Bun 1.4.3 → 1.4.4 (`packageManager` and container base images)
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
---
|
|
2
|
+
summary: "Grouped browserslist targets are judged at every release they span, usage exclusion counts only default unprefixed support and reports the prefix-recoverable share, and requested page sizes up to 1000 are honored."
|
|
3
|
+
breaking: false
|
|
4
|
+
security: false
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# 0.3.1 — 2026-11-11
|
|
8
|
+
|
|
9
|
+
## Added
|
|
10
|
+
|
|
11
|
+
- **`usage_percent_prefixed`** on `browsercompat_check_baseline` results reports the part of `usage_percent_excluded` where the feature works only with a vendor prefix ([#39](https://github.com/cyanheads/browser-compat-mcp-server/issues/39)).
|
|
12
|
+
|
|
13
|
+
## Changed
|
|
14
|
+
|
|
15
|
+
- **`limit` (`browsercompat_search_features`) and `target_limit` (`browsercompat_compare_support`)** are honored up to the schema maximum of 1000 instead of being served as 50 and 10; defaults stay 10, and `cap` reports the requested size ([#40](https://github.com/cyanheads/browser-compat-mcp-server/issues/40)).
|
|
16
|
+
- **Bundled datasets** refreshed: `browsercompat_list_reference` lists 105 `groups` (was 104), and the caniuse attribution string reports ~97.6% tracked traffic (was ~97.5%).
|
|
17
|
+
- **Development tooling** resynced from the framework: skills, `devcheck`, packaging lint, release script, `.env.example` JWT audience and issuer entries.
|
|
18
|
+
|
|
19
|
+
## Fixed
|
|
20
|
+
|
|
21
|
+
- **Grouped browserslist tokens** such as `ios_saf 15.0-15.1` are judged at every BCD release they span, so a removal inside the range now fails the target instead of clearing at the lower endpoint ([#38](https://github.com/cyanheads/browser-compat-mcp-server/issues/38)).
|
|
22
|
+
- **`usage_percent_excluded`** counts a browser version as supported only for default, unprefixed, enabled support; prefix-required (`x`) and disabled-by-default (`d`) caniuse support are now excluded, except for features whose compat keys are all vendor-prefixed names ([#39](https://github.com/cyanheads/browser-compat-mcp-server/issues/39)).
|
|
23
|
+
|
|
24
|
+
## Dependencies
|
|
25
|
+
|
|
26
|
+
- `@cyanheads/mcp-ts-core` ^0.13.18 → ^0.13.22
|
|
27
|
+
- `@mdn/browser-compat-data` ^8.1.7 → ^8.1.8
|
|
28
|
+
- `browserslist` ^4.29.4 → ^4.29.5
|
|
29
|
+
- `caniuse-lite` ^1.0.30001819 → ^1.0.30001823
|
|
30
|
+
- `web-features` ^3.44.0 → ^3.45.0
|
|
31
|
+
- `@biomejs/biome` 2.6.3 → 2.6.6
|
|
32
|
+
- `@types/node` 26.6.5 → 26.6.6
|
|
33
|
+
- `@vitest/coverage-istanbul` 5.0.5 → 5.1.0
|
|
34
|
+
- `tsc-alias` ^1.9.9 → ^1.9.10
|
|
35
|
+
- `vitest` ^5.0.5 → ^5.1.0
|
|
36
|
+
- `engines.bun` >=1.4.0 → >=1.4.4
|
package/changelog/template.md
CHANGED
|
@@ -116,14 +116,21 @@ security: false
|
|
|
116
116
|
resolves to whatever real item already owns 42, and timeline previews pull
|
|
117
117
|
in that unrelated item's metadata.
|
|
118
118
|
|
|
119
|
+
Outside reporters: when the issue or PR came from outside the project
|
|
120
|
+
(`git-wrapup` step 5 says how to tell), thank its author in the same
|
|
121
|
+
parenthetical, profile linked by full URL for the same reason:
|
|
122
|
+
|
|
123
|
+
([#38](https://github.com/cyanheads/mcp-ts-core/issues/38), thanks [@octocat](https://github.com/octocat)!)
|
|
124
|
+
|
|
119
125
|
TAG ANNOTATIONS — the annotated tag body renders as the GitHub Release body
|
|
120
126
|
via `gh release create --notes-from-tag`. It is a condensed digest of this
|
|
121
127
|
entry, never a copy, and its format is owned by the `release-and-publish`
|
|
122
128
|
skill (step 4, "Create the annotated tag"): a short subject line without the
|
|
123
129
|
version, flat headline bullets — no Keep-a-Changelog section headers, no
|
|
124
|
-
gates line — at most one deps line, issue backlinks
|
|
125
|
-
last. In release-PR mode the `git-wrapup`
|
|
126
|
-
PR body's `## Changes` and the tag copies
|
|
130
|
+
gates line — at most one deps line, issue backlinks with any outside-reporter
|
|
131
|
+
thanks, and the changelog link last. In release-PR mode the `git-wrapup`
|
|
132
|
+
skill authors those bullets as the PR body's `## Changes` and the tag copies
|
|
133
|
+
them.
|
|
127
134
|
-->
|
|
128
135
|
|
|
129
136
|
## Added
|
package/dist/index.js
CHANGED
|
@@ -30,7 +30,8 @@ await createApp({
|
|
|
30
30
|
],
|
|
31
31
|
resources: [],
|
|
32
32
|
prompts: [],
|
|
33
|
-
|
|
33
|
+
skills: 'skills',
|
|
34
|
+
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. Feature inputs accept a BCD key (css.selectors.has) or a web-features id (has); resolved_as identifies successful matches, and unresolved features come back as found: false rather than errors. 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 target_limit query targets per call (10 by default, up to 1000) — 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
35
|
// Keyless public reference data — serve the full inventory without an auth gate.
|
|
35
36
|
landing: { requireAuth: false },
|
|
36
37
|
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,MAAM,yCAAyC,CAAC;AAC7E,OAAO,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;AAC9D,OAAO,EAAE,cAAc,EAAE,MAAM,iDAAiD,CAAC;AACjF,OAAO,EAAE,gBAAgB,EAAE,MAAM,qCAAqC,CAAC;AACvE,OAAO,EAAE,iBAAiB,EAAE,MAAM,uCAAuC,CAAC;AAE1E,MAAM,SAAS,CAAC;IACd,IAAI,EAAE,2BAA2B;IACjC,KAAK,EAAE,2BAA2B;IAClC,UAAU,EAAE;QACV,YAAY,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE,UAAU,EAAE,QAAQ,EAAE;QACxD,iBAAiB,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE,UAAU,EAAE,QAAQ,EAAE;KAC9D;IACD,KAAK,EAAE;QACL,0BAA0B;QAC1B,uBAAuB;QACvB,0BAA0B;QAC1B,2BAA2B;QAC3B,2BAA2B;KAC5B;IACD,SAAS,EAAE,EAAE;IACb,OAAO,EAAE,EAAE;IACX,YAAY,EACV,
|
|
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,MAAM,yCAAyC,CAAC;AAC7E,OAAO,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;AAC9D,OAAO,EAAE,cAAc,EAAE,MAAM,iDAAiD,CAAC;AACjF,OAAO,EAAE,gBAAgB,EAAE,MAAM,qCAAqC,CAAC;AACvE,OAAO,EAAE,iBAAiB,EAAE,MAAM,uCAAuC,CAAC;AAE1E,MAAM,SAAS,CAAC;IACd,IAAI,EAAE,2BAA2B;IACjC,KAAK,EAAE,2BAA2B;IAClC,UAAU,EAAE;QACV,YAAY,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE,UAAU,EAAE,QAAQ,EAAE;QACxD,iBAAiB,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE,UAAU,EAAE,QAAQ,EAAE;KAC9D;IACD,KAAK,EAAE;QACL,0BAA0B;QAC1B,uBAAuB;QACvB,0BAA0B;QAC1B,2BAA2B;QAC3B,2BAA2B;KAC5B;IACD,SAAS,EAAE,EAAE;IACb,OAAO,EAAE,EAAE;IACX,MAAM,EAAE,QAAQ;IAChB,YAAY,EACV,4lDAA4lD;IAC9lD,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,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @fileoverview Tool answering ship-or-not across up to 20 web features at
|
|
3
3
|
* once: Baseline state and date, the limiting browser, deprecation and
|
|
4
|
-
* discouragement flags, and the
|
|
4
|
+
* discouragement flags, and the global traffic share each feature excludes.
|
|
5
5
|
* @module mcp-server/tools/definitions/browsercompat-check-baseline
|
|
6
6
|
*/
|
|
7
7
|
import { z } from '@cyanheads/mcp-ts-core';
|
|
@@ -55,6 +55,7 @@ export declare const browsercompatCheckBaseline: import("@cyanheads/mcp-ts-core"
|
|
|
55
55
|
according_to: z.ZodArray<z.ZodString>;
|
|
56
56
|
}, z.core.$strip>>;
|
|
57
57
|
usage_percent_excluded: z.ZodOptional<z.ZodNumber>;
|
|
58
|
+
usage_percent_prefixed: z.ZodOptional<z.ZodNumber>;
|
|
58
59
|
usage_source: z.ZodOptional<z.ZodString>;
|
|
59
60
|
compat_keys: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
60
61
|
compat_keys_total: z.ZodOptional<z.ZodNumber>;
|
|
@@ -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;
|
|
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;AA6GjE,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAkPrC,CAAC"}
|