@cyanheads/browser-compat-mcp-server 0.2.0 → 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.
- package/AGENTS.md +23 -10
- package/CLAUDE.md +23 -10
- package/Dockerfile +20 -7
- package/README.md +33 -36
- package/THIRD_PARTY_NOTICES.md +5 -6
- package/changelog/0.2.x/0.2.1.md +41 -0
- package/changelog/0.3.x/0.3.0.md +39 -0
- 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 +5 -2
- 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 +48 -21
- 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 +44 -3
- 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 +228 -87
- package/dist/mcp-server/tools/definitions/browsercompat-compare-support.tool.js.map +1 -1
- package/dist/mcp-server/tools/definitions/browsercompat-get-feature.tool.d.ts +44 -13
- package/dist/mcp-server/tools/definitions/browsercompat-get-feature.tool.d.ts.map +1 -1
- package/dist/mcp-server/tools/definitions/browsercompat-get-feature.tool.js +67 -15
- package/dist/mcp-server/tools/definitions/browsercompat-get-feature.tool.js.map +1 -1
- package/dist/mcp-server/tools/definitions/browsercompat-list-reference.tool.js +2 -2
- 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 +14 -6
- package/dist/mcp-server/tools/definitions/browsercompat-search-features.tool.js.map +1 -1
- package/dist/mcp-server/tools/definitions/compat-shapes.d.ts +128 -16
- package/dist/mcp-server/tools/definitions/compat-shapes.d.ts.map +1 -1
- package/dist/mcp-server/tools/definitions/compat-shapes.js +179 -23
- package/dist/mcp-server/tools/definitions/compat-shapes.js.map +1 -1
- package/dist/services/baseline/baseline-service.d.ts +11 -3
- package/dist/services/baseline/baseline-service.d.ts.map +1 -1
- package/dist/services/baseline/baseline-service.js +29 -2
- package/dist/services/baseline/baseline-service.js.map +1 -1
- package/dist/services/baseline/types.d.ts +11 -0
- package/dist/services/baseline/types.d.ts.map +1 -1
- package/dist/services/bcd/bcd-service.d.ts +31 -12
- package/dist/services/bcd/bcd-service.d.ts.map +1 -1
- package/dist/services/bcd/bcd-service.js +157 -75
- package/dist/services/bcd/bcd-service.js.map +1 -1
- package/dist/services/bcd/types.d.ts +29 -4
- package/dist/services/bcd/types.d.ts.map +1 -1
- package/dist/services/search/search-service.d.ts +20 -2
- package/dist/services/search/search-service.d.ts.map +1 -1
- package/dist/services/search/search-service.js +115 -20
- package/dist/services/search/search-service.js.map +1 -1
- package/dist/services/targets/targets-service.d.ts +7 -10
- package/dist/services/targets/targets-service.d.ts.map +1 -1
- package/dist/services/targets/targets-service.js +18 -10
- package/dist/services/targets/targets-service.js.map +1 -1
- package/dist/services/targets/types.d.ts +6 -4
- package/dist/services/targets/types.d.ts.map +1 -1
- package/package.json +16 -15
- package/server.json +10 -24
- package/skills/browser-compat-guide/SKILL.md +48 -0
package/AGENTS.md
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
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.
|
|
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.
|
|
8
|
-
**Zod:** ^4.6.
|
|
7
|
+
**MCP SDK:** `@modelcontextprotocol/server` ^2.4.0
|
|
8
|
+
**Zod:** ^4.6.7
|
|
9
9
|
|
|
10
10
|
> **Read the framework docs first:** `node_modules/@cyanheads/mcp-ts-core/CLAUDE.md` contains the full API reference — builders, Context, error codes, exports, patterns. This file covers server-specific conventions only.
|
|
11
11
|
|
|
@@ -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/`, `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
|
|
|
@@ -416,7 +426,7 @@ security: false # optional — true ONLY for a source
|
|
|
416
426
|
|
|
417
427
|
## Publishing
|
|
418
428
|
|
|
419
|
-
**Every release goes through a release PR, straight-through** — `git-wrapup`'s "Release PR mode", mode `straight-through`. One run: `git-wrapup` lands the commit stack on `release/<version>`, pushes it, and opens the PR (title = the release commit subject, body = the
|
|
429
|
+
**Every release goes through a release PR, straight-through** — `git-wrapup`'s "Release PR mode", mode `straight-through`. One run: `git-wrapup` lands the commit stack on `release/<version>`, pushes it, and opens the PR (title = the release commit subject, body = the release digest: theme line, `## Changes`, `## Gates`, changelog link last); `release-and-publish` then fast-forwards `main` locally with `git merge --ff-only`, creates the tag on `main`'s tip, pushes `main` and the tag, deletes the branch, and publishes. A caller's brief may run a given release as `gated` instead — a `release-pr-review` pass on the open PR before `release-and-publish`. **Never merge through the GitHub UI or `gh pr merge`**: squash and rebase-merge are disabled in the repo settings because both rewrite the stack (rebase-merge also strips the SSH signatures), and a merge commit breaks the linear history.
|
|
420
430
|
|
|
421
431
|
---
|
|
422
432
|
|
|
@@ -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,11 +1,11 @@
|
|
|
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.
|
|
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.
|
|
8
|
-
**Zod:** ^4.6.
|
|
7
|
+
**MCP SDK:** `@modelcontextprotocol/server` ^2.4.0
|
|
8
|
+
**Zod:** ^4.6.7
|
|
9
9
|
|
|
10
10
|
> **Read the framework docs first:** `node_modules/@cyanheads/mcp-ts-core/CLAUDE.md` contains the full API reference — builders, Context, error codes, exports, patterns. This file covers server-specific conventions only.
|
|
11
11
|
|
|
@@ -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/`, `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
|
|
|
@@ -416,7 +426,7 @@ security: false # optional — true ONLY for a source
|
|
|
416
426
|
|
|
417
427
|
## Publishing
|
|
418
428
|
|
|
419
|
-
**Every release goes through a release PR, straight-through** — `git-wrapup`'s "Release PR mode", mode `straight-through`. One run: `git-wrapup` lands the commit stack on `release/<version>`, pushes it, and opens the PR (title = the release commit subject, body = the
|
|
429
|
+
**Every release goes through a release PR, straight-through** — `git-wrapup`'s "Release PR mode", mode `straight-through`. One run: `git-wrapup` lands the commit stack on `release/<version>`, pushes it, and opens the PR (title = the release commit subject, body = the release digest: theme line, `## Changes`, `## Gates`, changelog link last); `release-and-publish` then fast-forwards `main` locally with `git merge --ff-only`, creates the tag on `main`'s tip, pushes `main` and the tag, deletes the branch, and publishes. A caller's brief may run a given release as `gated` instead — a `release-pr-review` pass on the open PR before `release-and-publish`. **Never merge through the GitHub UI or `gh pr merge`**: squash and rebase-merge are disabled in the repo settings because both rewrite the stack (rebase-merge also strips the SSH signatures), and a merge commit breaks the linear history.
|
|
420
430
|
|
|
421
431
|
---
|
|
422
432
|
|
|
@@ -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
|
|
|
@@ -38,15 +41,15 @@ RUN bun run build
|
|
|
38
41
|
#
|
|
39
42
|
# Installs the production dependency tree for the target platform. Every step
|
|
40
43
|
# here can run JavaScript — bunfig.toml's security scanner runs as a Bun
|
|
41
|
-
# program, and so
|
|
42
|
-
# and cross-installs with `--os`/`--cpu`, which pick each
|
|
43
|
-
# optional dependency (native bindings such as DuckDB's) for
|
|
44
|
-
# `node_modules` leaves this stage.
|
|
44
|
+
# program, and so do the OTel and musl-prune scripts — so the stage runs on
|
|
45
|
+
# $BUILDPLATFORM and cross-installs with `--os`/`--cpu`, which pick each
|
|
46
|
+
# platform-specific optional dependency (native bindings such as DuckDB's) for
|
|
47
|
+
# the target. Only `node_modules` leaves this stage.
|
|
45
48
|
#
|
|
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
|
|
|
@@ -93,6 +96,15 @@ RUN --mount=type=cache,target=/root/.bun/install/cache \
|
|
|
93
96
|
bun scripts/install-otel.ts --os="$TARGETOS" --cpu="$(cat .bun-cpu)"; \
|
|
94
97
|
fi
|
|
95
98
|
|
|
99
|
+
# `--os`/`--cpu` have no libc counterpart, so a native dependency published in
|
|
100
|
+
# glibc and musl variants (DuckDB's bindings, for one) installs both. The
|
|
101
|
+
# runtime image is Debian (glibc) and never loads the musl copy; the script
|
|
102
|
+
# deletes every package whose own `libc` admits only musl. It follows every
|
|
103
|
+
# install, since a later `bun install` restores what it removes. A server on a
|
|
104
|
+
# musl (Alpine) runtime image drops these two lines.
|
|
105
|
+
COPY scripts/prune-musl-packages.ts ./scripts/
|
|
106
|
+
RUN bun scripts/prune-musl-packages.ts
|
|
107
|
+
|
|
96
108
|
# The seeded scanner served only the installs above; keep it out of the image.
|
|
97
109
|
RUN rm -rf node_modules/@socketsecurity/bun-security-scanner
|
|
98
110
|
|
|
@@ -105,7 +117,7 @@ RUN rm -rf node_modules/@socketsecurity/bun-security-scanner
|
|
|
105
117
|
# dependencies and build artifacts. Its only Bun invocations are HEALTHCHECK
|
|
106
118
|
# and CMD, which run on the real target at container start.
|
|
107
119
|
# ==============================================================================
|
|
108
|
-
FROM oven/bun:1.4.
|
|
120
|
+
FROM oven/bun:1.4.4-slim AS production
|
|
109
121
|
|
|
110
122
|
WORKDIR /usr/src/app
|
|
111
123
|
|
|
@@ -127,6 +139,7 @@ COPY --from=deps /usr/src/app/node_modules ./node_modules
|
|
|
127
139
|
|
|
128
140
|
# Copy the compiled application code from the build stage
|
|
129
141
|
COPY --from=build /usr/src/app/dist ./dist
|
|
142
|
+
COPY --from=build /usr/src/app/skills ./skills
|
|
130
143
|
|
|
131
144
|
# Mirror CLI (MirrorService adopters only — Tier 3, opt-in):
|
|
132
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
|
|
|
@@ -37,9 +39,9 @@ Web platform compatibility for frontend work: per-browser support from MDN's `@m
|
|
|
37
39
|
|:---|:---|
|
|
38
40
|
| `browsercompat_list_reference` | Enumerate the reference vocabulary the other tools expect — BCD namespaces and browser ids, browserslist agents, Baseline states, groups, and ECMAScript snapshots. |
|
|
39
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
|
-
| `browsercompat_check_baseline` | Ship-or-not across up to 20 features: Baseline state and date, the limiting browser, deprecation flags, and the traffic share requiring it would exclude. |
|
|
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
|
|
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,38 +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
|
|
58
|
-
- `outcome` is `found`, `no_compat_data`, or `miss`;
|
|
59
|
-
- `
|
|
60
|
-
- Feature-level `discouraged` is independent of BCD `status`; `status.discouraged` remains a compatibility alias when status exists. Unsupported and preview-only rows retain their available notes and tracking links.
|
|
61
|
-
- `limiting_browser` appears only when every Baseline core browser has full, unprefixed, unflagged support at a resolvable added release.
|
|
62
|
-
- A key with direct callable children returns `subkeys: { total, keys, truncated, next_offset? }`, at most 100 at a time. Continue with `subkeys_offset` (integer ≥0, default 0). Call one child with this tool or up to 20 with `browsercompat_check_baseline`; grandchildren and structural nodes are excluded.
|
|
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.
|
|
63
62
|
|
|
64
63
|
---
|
|
65
64
|
|
|
66
65
|
### `browsercompat_check_baseline` <sub>tool</sub>
|
|
67
66
|
|
|
68
|
-
-
|
|
69
|
-
- Results carry Baseline state and dates, `limiting_browser
|
|
70
|
-
- `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` 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.
|
|
71
70
|
|
|
72
71
|
---
|
|
73
72
|
|
|
74
73
|
### `browsercompat_search_features` <sub>tool</sub>
|
|
75
74
|
|
|
76
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`).
|
|
77
|
-
- `matched_on`
|
|
78
|
-
- Page with `limit` (
|
|
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.
|
|
79
78
|
|
|
80
79
|
---
|
|
81
80
|
|
|
82
81
|
### `browsercompat_compare_support` <sub>tool</sub>
|
|
83
82
|
|
|
84
|
-
- Up to 20 features against a required `targets` browserslist query, such as `defaults` or `> 0.5%, last 2 versions`; local
|
|
85
|
-
-
|
|
86
|
-
-
|
|
87
|
-
- Target rows are paged with `target_offset` (integer ≥0, default 0) and `target_limit` (1–10, default 10). `targets_resolved` (the mapping inventory, each row flagged `evaluated`), `unchecked_targets`, and each result's `failing_targets` and `unchecked_targets` cover only the query targets on the page; verdicts, coverage, and totals are identical on every page. `totalCount` counts the targets in the query and `nextOffset` appears while more remain; an offset past the end returns the summaries with no rows and a notice.
|
|
88
|
-
- `failing_targets` names targets with `partial`, `prefixed`, `flagged`, `removed`, `unsupported`, or `preview_only` support. `unchecked_targets` carries `no_bcd_browser`, `unknown_version`, `no_bcd_data`, or `no_comparable_feature` — the last when every entry was a miss or ambiguous, so nothing was compared.
|
|
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.
|
|
89
86
|
|
|
90
87
|
---
|
|
91
88
|
|
|
@@ -93,12 +90,12 @@ Web platform compatibility for frontend work: per-browser support from MDN's `@m
|
|
|
93
90
|
|
|
94
91
|
| Package | Version | License | Supplies |
|
|
95
92
|
|:---|:---|:---|:---|
|
|
96
|
-
| [`@mdn/browser-compat-data`](https://github.com/mdn/browser-compat-data) | `^8.1.
|
|
97
|
-
| [`web-features`](https://github.com/web-platform-dx/web-features) | `^3.
|
|
98
|
-
| [`caniuse-lite`](https://github.com/browserslist/caniuse-lite) | `^1.0.
|
|
99
|
-
| [`browserslist`](https://github.com/browserslist/browserslist) | `^4.29.
|
|
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 |
|
|
100
97
|
|
|
101
|
-
CC BY 4.0 requires attribution wherever the caniuse data travels, so every response carrying a usage figure carries this string: `Usage data from caniuse.com, © Can I Use contributors, CC BY 4.0. Figures are
|
|
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).
|
|
102
99
|
|
|
103
100
|
---
|
|
104
101
|
|
|
@@ -110,16 +107,15 @@ Browser-compat-specific:
|
|
|
110
107
|
|
|
111
108
|
- All four datasets are bundled and loaded in process — no runtime network calls, no API key, no rate limit, and nothing to configure
|
|
112
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
|
|
113
|
-
-
|
|
114
|
-
- 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`)
|
|
115
112
|
|
|
116
113
|
Agent-friendly output:
|
|
117
114
|
|
|
118
|
-
- Every response echoes `data_version
|
|
119
|
-
- A pass is never claimed for a browser that was not evaluated
|
|
120
|
-
- Misses are results, not failures
|
|
121
|
-
- Usage figures state the population they are a share of
|
|
122
|
-
- BCD markup becomes plain text with anchor labels and URLs preserved. Markdown renders literal names such as `<dialog>` visibly; structured text keeps the original plain-text element names.
|
|
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
|
|
123
119
|
|
|
124
120
|
---
|
|
125
121
|
|
|
@@ -245,10 +241,10 @@ There are no server-specific environment variables: no API keys, no base URLs, a
|
|
|
245
241
|
|:---------|:------------|:--------|
|
|
246
242
|
| `MCP_TRANSPORT_TYPE` | Transport: `stdio` or `http`. | `stdio` |
|
|
247
243
|
| `MCP_HTTP_PORT` | Port for the HTTP server. | `3010` |
|
|
248
|
-
| `MCP_SESSION_MODE` | HTTP session mode
|
|
249
|
-
| `OTEL_ENABLED` | Enable OpenTelemetry
|
|
250
|
-
| `OTEL_EXPORTER_OTLP_ENDPOINT` | Base URL for traces
|
|
251
|
-
| `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 |
|
|
252
248
|
| `LOG_TOOL_FAILURE_PAYLOADS` | Log failed-call arguments and results. Redaction matches key names only; free-form values can retain secrets. | `false` |
|
|
253
249
|
| `LOG_TOOL_FAILURE_PAYLOAD_MAX_BYTES` | UTF-8 byte cap per logged payload. | `16384` |
|
|
254
250
|
|
|
@@ -296,6 +292,7 @@ The Dockerfile defaults to HTTP transport, stateless session mode, and logs to `
|
|
|
296
292
|
| `src/mcp-server/tools/` | Tool definitions (`*.tool.ts`) and the output shapes they share. |
|
|
297
293
|
| `src/services/` | bcd, baseline, targets, search, and data-version services over the bundled datasets. |
|
|
298
294
|
| `src/types/` | Ambient module declaration for `caniuse-lite`, which ships no types. |
|
|
295
|
+
| `skills/` | Published browser compatibility workflow guide. |
|
|
299
296
|
| `tests/` | Vitest suites mirroring `src/`. |
|
|
300
297
|
| `docs/` | `design.md` — the surface, the data shapes behind it, and the decisions log. |
|
|
301
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.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
|
|
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,41 @@
|
|
|
1
|
+
---
|
|
2
|
+
summary: "Multi-key web-features ids are judged on web-features' feature-level support. compat_keys is bounded, failing rows report the support statement and a whole-query failing_ranges summary, batch tools serve up to a cap and report the rest as omitted_features, and search matches singular and plural forms."
|
|
3
|
+
breaking: false
|
|
4
|
+
security: false
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# 0.2.1 — 2026-10-15
|
|
8
|
+
|
|
9
|
+
## Added
|
|
10
|
+
|
|
11
|
+
- **`feature_support` on multi-key web-features ids** in `browsercompat_get_feature`: one row per Baseline core browser, `{ browser_id, supported, version?, version_is_upper_bound? }`, relaying the release web-features lists for the feature as a whole ([#26](https://github.com/cyanheads/browser-compat-mcp-server/issues/26)).
|
|
12
|
+
- **`browsercompat_check_baseline` and `browsercompat_compare_support` judge a multi-key id on `feature_support`**; `browsercompat_compare_support` names the basis in `support_source` (`bcd_key` or `web_features_feature`) and leaves every non-core browser unevaluated ([#26](https://github.com/cyanheads/browser-compat-mcp-server/issues/26)).
|
|
13
|
+
- **`compat_keys_total` and `compat_keys_offset` / `compat_keys_next_offset`** on `browsercompat_get_feature`, which pages `compat_keys` 100 at a time ([#25](https://github.com/cyanheads/browser-compat-mcp-server/issues/25)).
|
|
14
|
+
- **`other_statements` and the verdict-bearing statement's fields** (`prefix`, `flags`, `partial`, `notes`) on failing `support` and `failing_targets` rows ([#27](https://github.com/cyanheads/browser-compat-mcp-server/issues/27)).
|
|
15
|
+
- **`failing_ranges` on each compared result of `browsercompat_compare_support`**: runs `{ agent, newest, oldest, count, verdict }` covering every failing target in the query, identical on every page ([#28](https://github.com/cyanheads/browser-compat-mcp-server/issues/28)).
|
|
16
|
+
- **`omitted_features` on `browsercompat_check_baseline` and `browsercompat_compare_support`**: entries past the 20th, returned verbatim for the next call, with `all_widely_available` / `all_clear` false ([#29](https://github.com/cyanheads/browser-compat-mcp-server/issues/29)).
|
|
17
|
+
- **`version_is_upper_bound` on `limiting_browser`**, set when the release is a `≤` bound ([#30](https://github.com/cyanheads/browser-compat-mcp-server/issues/30)).
|
|
18
|
+
|
|
19
|
+
## Changed
|
|
20
|
+
|
|
21
|
+
- **Three output enums gained members**: the `browsercompat_compare_support` failing verdict adds `before_feature_support` and `no_feature_support`, and its unchecked-target reason adds `no_feature_level_data` ([#26](https://github.com/cyanheads/browser-compat-mcp-server/issues/26)).
|
|
22
|
+
- **`compat_keys` on `browsercompat_check_baseline` and `browsercompat_compare_support` results is truncated to the first 10 keys**; `compat_keys_total` gives the full count ([#25](https://github.com/cyanheads/browser-compat-mcp-server/issues/25)).
|
|
23
|
+
- **`limiting_browser` keeps a ranged version's upper bound** instead of dropping the `≤` ([#30](https://github.com/cyanheads/browser-compat-mcp-server/issues/30)).
|
|
24
|
+
- **Batch inputs are served up to a per-call cap instead of rejected.** `browsercompat_check_baseline` and `browsercompat_compare_support` evaluate 20 of up to 100 features; `limit` on `browsercompat_search_features` (up to 1,000) and `target_limit` on `browsercompat_compare_support` (up to 1,000) clamp to 50 and 10, reported in `cap` ([#29](https://github.com/cyanheads/browser-compat-mcp-server/issues/29)).
|
|
25
|
+
|
|
26
|
+
## Fixed
|
|
27
|
+
|
|
28
|
+
- **`browsercompat_search_features` matches singular and plural forms of a query word**, so `container query` finds `Container queries` ([#24](https://github.com/cyanheads/browser-compat-mcp-server/issues/24)).
|
|
29
|
+
- **`compat_keys` no longer returns every key of an id on every result**: an id owning 614 keys (`svg`) no longer produces a 775 KB response from 20 entries ([#25](https://github.com/cyanheads/browser-compat-mcp-server/issues/25)).
|
|
30
|
+
|
|
31
|
+
## Dependencies
|
|
32
|
+
|
|
33
|
+
- `@cyanheads/mcp-ts-core` ^0.13.10 → ^0.13.15 (framework skills, scripts, and template files resynced; the Docker deps stage prunes musl-only packages)
|
|
34
|
+
- `@mdn/browser-compat-data` ^8.1.3 → ^8.1.5
|
|
35
|
+
- `web-features` ^3.40.0 → ^3.42.0
|
|
36
|
+
- `browserslist` ^4.29.1 → ^4.29.3
|
|
37
|
+
- `caniuse-lite` ^1.0.30001812 → ^1.0.30001815
|
|
38
|
+
- `pino-pretty` ^13.1.3 → ^13.2.0
|
|
39
|
+
- `zod` ^4.6.5 → ^4.6.7
|
|
40
|
+
- `@biomejs/biome` 2.5.14 → 2.5.15, `@types/node` 26.6.3 → 26.6.5, `@vitest/coverage-istanbul` 5.0.2 → 5.0.4, `vitest` ^5.0.2 → ^5.0.4, `ignore` ^7.0.10 → ^7.0.12, `tsc-alias` ^1.9.5 → ^1.9.7
|
|
41
|
+
- Bun 1.4.2 → 1.4.3 (`packageManager`, Dockerfile base images)
|
|
@@ -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
|
-
|
|
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,
|
|
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"}
|