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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (33) hide show
  1. package/AGENTS.md +21 -8
  2. package/CLAUDE.md +21 -8
  3. package/Dockerfile +7 -3
  4. package/README.md +32 -41
  5. package/THIRD_PARTY_NOTICES.md +5 -6
  6. package/changelog/0.3.x/0.3.0.md +39 -0
  7. package/dist/index.js +2 -1
  8. package/dist/index.js.map +1 -1
  9. package/dist/mcp-server/tools/definitions/browsercompat-check-baseline.tool.d.ts +1 -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 +5 -5
  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 +2 -2
  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 +13 -13
  16. package/dist/mcp-server/tools/definitions/browsercompat-compare-support.tool.js.map +1 -1
  17. package/dist/mcp-server/tools/definitions/browsercompat-list-reference.tool.js +2 -2
  18. package/dist/mcp-server/tools/definitions/browsercompat-list-reference.tool.js.map +1 -1
  19. package/dist/mcp-server/tools/definitions/browsercompat-search-features.tool.js +1 -1
  20. package/dist/mcp-server/tools/definitions/browsercompat-search-features.tool.js.map +1 -1
  21. package/dist/mcp-server/tools/definitions/compat-shapes.js +1 -1
  22. package/dist/mcp-server/tools/definitions/compat-shapes.js.map +1 -1
  23. package/dist/services/bcd/bcd-service.d.ts +2 -1
  24. package/dist/services/bcd/bcd-service.d.ts.map +1 -1
  25. package/dist/services/bcd/bcd-service.js +14 -4
  26. package/dist/services/bcd/bcd-service.js.map +1 -1
  27. package/dist/services/targets/targets-service.d.ts +7 -10
  28. package/dist/services/targets/targets-service.d.ts.map +1 -1
  29. package/dist/services/targets/targets-service.js +18 -10
  30. package/dist/services/targets/targets-service.js.map +1 -1
  31. package/package.json +13 -12
  32. package/server.json +3 -3
  33. 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.2.1
5
- **Framework:** [@cyanheads/mcp-ts-core](https://www.npmjs.com/package/@cyanheads/mcp-ts-core) `^0.13.15`
4
+ **Version:** 0.3.0
5
+ **Framework:** [@cyanheads/mcp-ts-core](https://www.npmjs.com/package/@cyanheads/mcp-ts-core) `^0.13.18`
6
6
  **Engines:** Bun ≥1.4.0, Node ≥24.0.0
7
- **MCP SDK:** `@modelcontextprotocol/server` ^2.3.1
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, no resources, no prompts.
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
- Skills are modular instructions in `framework-skills/` at the project root. 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. The 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 these development skills to every agent that installs it. Keep `skills/` free for skills meant for those agents.
303
+ Two skill trees live at the project root, written for different readers:
304
304
 
305
- **Agent skill directory:** Copy 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.
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 — `server.json`/`manifest.json` env-var parity (run by devcheck) |
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 two classes of `node_modules/**` content that root-anchored `.mcpbignore` patterns cannot reach: dependency-shipped agent docs (`framework-skills/`, `skills/`, `.claude/`, `.agents/`, `SKILL.md`) and platform-specific native bindings, which would otherwise lock the bundle to the platform it was packed on. 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.
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/`, `SKILL.md`); 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/`, `CLAUDE.md`, `AGENTS.md`, 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.2.1
5
- **Framework:** [@cyanheads/mcp-ts-core](https://www.npmjs.com/package/@cyanheads/mcp-ts-core) `^0.13.15`
4
+ **Version:** 0.3.0
5
+ **Framework:** [@cyanheads/mcp-ts-core](https://www.npmjs.com/package/@cyanheads/mcp-ts-core) `^0.13.18`
6
6
  **Engines:** Bun ≥1.4.0, Node ≥24.0.0
7
- **MCP SDK:** `@modelcontextprotocol/server` ^2.3.1
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, no resources, no prompts.
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
- Skills are modular instructions in `framework-skills/` at the project root. 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. The 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 these development skills to every agent that installs it. Keep `skills/` free for skills meant for those agents.
303
+ Two skill trees live at the project root, written for different readers:
304
304
 
305
- **Agent skill directory:** Copy 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.
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 — `server.json`/`manifest.json` env-var parity (run by devcheck) |
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 two classes of `node_modules/**` content that root-anchored `.mcpbignore` patterns cannot reach: dependency-shipped agent docs (`framework-skills/`, `skills/`, `.claude/`, `.agents/`, `SKILL.md`) and platform-specific native bindings, which would otherwise lock the bundle to the platform it was packed on. 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.
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/`, `SKILL.md`); 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/`, `CLAUDE.md`, `AGENTS.md`, 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.3 AS build
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.3 AS deps
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.3-slim AS production
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
- [![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/)
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.4.0-green.svg?style=flat-square)](https://modelcontextprotocol.io/) [![Bun](https://img.shields.io/badge/Bun-v1.4.4%2B-blueviolet.svg?style=flat-square)](https://bun.sh/)
11
11
 
12
12
  </div>
13
13
 
@@ -29,7 +29,9 @@
29
29
 
30
30
  ## Overview
31
31
 
32
- Web platform compatibility for frontend work: per-browser support from MDN's `@mdn/browser-compat-data`, Baseline state and dates from `web-features`, and browserslist target resolution weighted by `caniuse-lite` usage figures. Every dataset ships inside the package, so there are no runtime network calls, no API key, no rate limit, and no upstream to be down — the same answers come back air-gapped. Runs as a stdio process, a local Streamable HTTP server, or the public hosted endpoint above.
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, with the failing and unevaluated target rows paged ten query targets at a time. |
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
 
@@ -54,44 +56,33 @@ Web platform compatibility for frontend work: per-browser support from MDN's `@m
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 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-" }`.
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. 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.
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` and `usage_source` where caniuse covers the feature. 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` 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`.
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.
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, at most 50; larger values are served as 50 and reported in `cap`) 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 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.
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, at most 10; larger values are served as 10 and reported in `cap`); 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.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 |
93
+ | [`@mdn/browser-compat-data`](https://github.com/mdn/browser-compat-data) | `^8.1.7` | CC0-1.0 | Per-browser support, standards status, MDN and specification links |
94
+ | [`web-features`](https://github.com/web-platform-dx/web-features) | `^3.44.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.30001819` | CC-BY-4.0 | Usage weighting, plus feature titles for the search index |
96
+ | [`browserslist`](https://github.com/browserslist/browserslist) | `^4.29.4` | 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 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).
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.5% 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
- - One shared resolver behind every tool: exact BCD key, then web-features id, then a `moved` redirect, and only under `resolve: true` the search index's best exact matches, when they name one feature
120
- - Target versions are ordered by browser-compat-data's release index rather than parsed version strings, with the caniuse spellings normalized both directions (`safari 16.0` ↔ `16`, `samsung 20` ↔ `20.0`)
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` — the version of each bundled dataset behind the answer, since a pinned snapshot goes stale on exactly the newest features
125
- - A pass is never claimed for a browser that was not evaluated: a feature clears a target query only when compatibility data was read for every target in it, and a target without data is reported in `unchecked_targets` and makes the verdict `inconclusive`
126
- - Misses are results, not failures — `found: false` with `guidance` naming the next call, and typed error reasons carrying recovery hints for the input a caller has to fix
127
- - Usage figures state the population they are a share of, and carry the caniuse attribution on every response that reports one
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
 
@@ -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, explicitly set by `.env.example` and Docker. When unset, the framework's `auto` fallback resolves to `stateful`. | `stateless` |
255
- | `OTEL_ENABLED` | Enable OpenTelemetry; local installs need the framework's optional telemetry peers. Docker includes them by default. | `false` |
256
- | `OTEL_EXPORTER_OTLP_ENDPOINT` | Base URL for traces (`/v1/traces`) and metrics (`/v1/metrics`); signal-specific endpoints override it. | Unset |
257
- | `OTEL_EXPORTER_OTLP_LOGS_ENDPOINT` | Explicit OTLP log endpoint, used as-is; the base endpoint never enables log export. | Unset |
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. |
@@ -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.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 |
9
+ | `@mdn/browser-compat-data` | ^8.1.7 | CC0-1.0 | https://github.com/mdn/browser-compat-data |
10
+ | `web-features` | ^3.44.0 | Apache-2.0 | https://github.com/web-platform-dx/web-features |
11
+ | `caniuse-lite` | ^1.0.30001819 | CC-BY-4.0 | https://github.com/browserslist/caniuse-lite |
12
+ | `browserslist` | ^4.29.4 | 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 a share of
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.5% 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)
package/dist/index.js CHANGED
@@ -30,7 +30,8 @@ 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. 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.',
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 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
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,onDAAonD;IACtnD,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
+ {"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,8jDAA8jD;IAChkD,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 share of tracked traffic each feature excludes.
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';
@@ -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;AAuFjE,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAyOrC,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;AAoFjE,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAyOrC,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 share of tracked traffic each feature excludes.
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 { tool, z } from '@cyanheads/mcp-ts-core';
@@ -10,11 +10,11 @@ import { getBaselineService } from '../../../services/baseline/baseline-service.
10
10
  import { resolveFeature } from '../../../services/baseline/feature-resolver.js';
11
11
  import { getBcdService } from '../../../services/bcd/bcd-service.js';
12
12
  import { DataVersionSchema, getDataVersion, renderDataVersion, } from '../../../services/data-version/data-version-service.js';
13
- import { CANIUSE_ATTRIBUTION, CANIUSE_TRACKED_PERCENT, getTargetsService, } from '../../../services/targets/targets-service.js';
13
+ import { CANIUSE_ATTRIBUTION, getTargetsService } from '../../../services/targets/targets-service.js';
14
14
  import { markdownText } from '../../../utils/markdown-text.js';
15
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
- const USAGE_SOURCE = `Feature-level caniuse figure; reported for a BCD key only when it is the feature’s sole declared compat key. Share of the roughly ${CANIUSE_TRACKED_PERCENT}% of global traffic caniuse tracks, not of all traffic.`;
17
+ const USAGE_SOURCE = 'Feature-level caniuse figure; reported for a BCD key only when it is the feature’s sole declared compat key. Percentage points of global traffic; untracked traffic is unknown.';
18
18
  const ResultSchema = z.object({
19
19
  input: z.string().describe('The feature string as the caller sent it.'),
20
20
  found: z.boolean().describe('True when the feature string resolved to a tracked entry.'),
@@ -37,7 +37,7 @@ const ResultSchema = z.object({
37
37
  usage_percent_excluded: z
38
38
  .number()
39
39
  .optional()
40
- .describe('Feature-level share of tracked traffic excluded. A resolved BCD key receives it only when it is the feature’s sole declared compat key. Absent without caniuse data — never zero in that case.'),
40
+ .describe('Feature-level percentage points of global traffic excluded. A resolved BCD key receives it only when it is the feature’s sole declared compat key. Absent without caniuse data — never zero in that case.'),
41
41
  usage_source: z
42
42
  .string()
43
43
  .optional()
@@ -54,7 +54,7 @@ const ResultSchema = z.object({
54
54
  guidance: z.string().optional().describe('What to do next when the feature did not resolve.'),
55
55
  });
56
56
  export const browsercompatCheckBaseline = tool('browsercompat_check_baseline', {
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.',
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 percentage points of 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.',
58
58
  annotations: { readOnlyHint: true, idempotentHint: true, openWorldHint: false },
59
59
  input: z.object({
60
60
  features: z