--- name: webmcp-lint description: Lint WebMCP registration evidence before deploying a page. category: development risk: safe source: https://github.com/epistemedeus/x402-data-gateway-skills/blob/1ba0c16ead06fa4b1686c1fe0a0a08e751bf734a/skills/webmcp-lint/SKILL.md source_repo: epistemedeus/x402-data-gateway-skills source_type: community date_added: '2026-12-04' author: neomorphic license: MIT license_source: https://github.com/epistemedeus/x402-data-gateway-skills/blob/1ba0c16ead06fa4b1686c1fe0a0a08e751bf734a/actions/webmcp-lint/LICENSE --- # Lint a WebMCP registration ## Overview Lint one file, directory, or origin with the zero-dependency CLI in the pinned source repository. Do not pay, sign, attach a wallet, or send telemetry. The command exit code is the result: 0 has no error, 1 has a failed check, and 2 means the arguments are not usable. Informational findings do not change the exit code. `--strict` fails the process on warnings. Info still does not fail under `--strict`. This skill is `skills/webmcp-lint` in `epistemedeus/x402-data-gateway-skills`. `npx skills add` discovers `skills//SKILL.md`. It is not marked `metadata.internal`. Checker version 2.0.0. Mention filter v1.6. The published call shape comes from the Web Machine Learning Community Group report at https://webmachinelearning.github.io/webmcp/ : `document.modelContext.registerTool({ name, description, inputSchema, annotations, execute }, { signal })` `signal` is an `AbortSignal`. Aborting it unregisters the tool. There is no `unregisterTool` method. The Community Group report is not a W3C Recommendation. ## Three surfaces 1. Canonical: `document.modelContext.registerTool(tool, { signal })`. This is the call the checker requires. 2. Removed: `navigator.modelContext`. Error. It was deprecated in Chrome 150 and removed in Chrome 152.0.7943.0. Chrome's note is https://developer.chrome.com/docs/ai/webmcp/updates . The migration uses `document.modelContext.registerTool` and aborts the controller on `pagehide`. 3. Emerging: `window.toolManager`, including `globalThis.toolManager` and `self.toolManager`. Informational. Chromium CL 8806158 (https://chromium-review.googlesource.com/c/chromium/src/+/8806158) adds it behind the experimental WebMCPv2 flag as a facade over the same per-document registry. It is distinct from canonical `document.modelContext`. A clean `window.toolManager.registerTool` call is recorded as `window.toolManager` and does not count as the canonical surface. ## Real script versus docs mention (v1.6) A registration is real only when `registerTool(` appears in JavaScript: an inline `