跳到正文
Skillpedia
智能体40k · #7476

webmcpify

它能做什么

Webmcpify 可以把现有的网站改造成 AI 智能体可以使用的工具。它的做法是把网站的功能以 AI 可以直接调用的方式暴露出来,而不是让 AI 去猜测该如何与页面交互。

适用场景

  • ✓当你希望 AI 帮你操作自己的网站时。
  • ✓当你想把网站接入更高级的 AI 系统时。
  • ✓当你希望网站的操作能被 AI 智能体理解时。

技能链接

https://github.com/github/awesome-copilot/blob/main/skills/webmcpify/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/github/awesome-copilot/blob/main/skills/webmcpify/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“帮我改造我的电商网站,让 AI 能够把商品加入购物车并完成下单。”

每周 5 个新技能,1 分钟读完。

工作原理

Webmcpify 会分析你的网站,找出用户可以执行的操作,并为 AI 生成一份描述这些操作的“清单”(manifest)。接着,它会把这些描述集成到网站中,并验证 AI 能否正确使用这些功能。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

webmcpify — make any web app agent-ready, verifiably

You are running the webmcpify pipeline. It takes an existing web application and exposes its user-facing functionality as WebMCP tools (document.modelContext — a proposed web standard incubated in the W3C Web Machine Learning Community Group, currently a Chrome origin trial), so browser AI agents can operate the app through structured tool calls instead of guessing at the DOM.

DETECT ──▶ INVENTORY ──▶ [HUMAN GATE: manifest approval] ──▶ INTEGRATE ──▶ VERIFY ──▶ HEAL ──▶ AUDIT
              ▲  loop            per-area batches on big apps    ▲  loop      ▲ loop    ▲ loop
              └── per area                                       └── per manifest entry ──┘

Everything you need ships inside this skill directory: phase guides in references/, and vendorable code in templates/ (runtime, ambient types, JS variant, React JSX typings, verification spec). Never assume files exist outside the skill dir.

Out of scope (stop and say so): backend-only MCP servers (that's classic MCP, not WebMCP), automating third-party sites you don't control, and generic SEO work.

Invocation modes

The user may pass an argument (/webmcpify <mode> or plain words):

Argument Run Stop at
(none) or full all phases, resuming from current manifest state done
inventory / map DETECT + INVENTORY loops only — zero code changes present the manifest table for review
integrate INTEGRATE loop only (requires approved tools in the manifest) integrated + built
verify VERIFY + HEAL loops on integrated/verified tools green/skipped report
status read .webmcpify/manifest.json — read-only report phase, per-status tool counts, and the recommended next command

Any other text is scoping guidance (e.g. "only the checkout area", "read-only tools only").

Ground rules (non-negotiable, enforce in every phase)

  1. Zero unrelated changes. Every diff hunk you produce must trace to a manifest entry or the recorded one-time setup. Never refactor, reformat, rename, or "improve" anything else — note problems in the report instead. Files that were already dirty at baseline (recorded in the manifest) are untouchable: never modify or revert them.
  2. Read-only tools first. Mutations are tri-state: mutating: false, "client" (browser-local only: prefs, localStorage), or "server" (data leaves the browser). Server-mutating tools require explicit per-tool human approval recorded in the manifest; client-mutating tools may be approved as a batch at the gate. Never expose destructive, irreversible, or payment actions in a first integration.
  3. The server is the only trust boundary. A tool's execute() may only call code paths the UI already uses (same endpoints, same validation, same auth). Never create new endpoints, never bypass existing checks, never put secrets in tools.
  4. Spec-shaped and dependency-free. Register via document.modelContext.registerTool() with AbortSignal lifecycle (feature-detect the deprecated navigator.modelContext fallback). No third-party WebMCP runtime dependencies. Everything feature-detected: the app behaves identically in browsers without WebMCP.
  5. Never toolautosubmit on state-changing forms — neither mutating: "client" nor "server". Only on pure read forms (search, filter, availability).
  6. State lives in files, not in your context. Read/write .webmcpify/ constantly; assume your context can be wiped between any two steps. Write the manifest atomically (write manifest.json.tmp, then rename over manifest.json).
  7. Commits are opt-in. Never commit unless the human chose a commit policy at the gate (see below). Without git or without permission, leave changes in the working tree and record progress in the manifest only.

Fresh, authoritative guidance

WebMCP is an evolving origin-trial API — the surface has already changed during the trial (testing API removed 2026-07; navigator → document). Before Phase 2, if network is available, pull Google's current official guides rather than relying on memory:

npx -y modern-web-guidance@latest retrieve "webmcp,agentic-forms,agentic-javascript-tools"

If offline, use references/integrate.md — but prefer the live guides when they conflict.

…

常见问题

什么是 WebMCP?

WebMCP 是一项提议中的标准,用来让网站以结构化的方式向 AI 智能体描述自己的功能。

AI 智能体会如何使用这些信息?

AI 会通过“清单”了解网站上有哪些可执行的操作,以及该如何执行,从而更有效地操作网站。

如果 AI 试图做不该做的事情呢?

Webmcpify 设有验证和自修复机制,确保 AI 只执行被允许且安全的操作,并且不会改动无关的代码。

详情

作者的原始描述

Make a web app agent-ready — propose a WebMCP tool manifest, integrate, verify in a real browser, heal; unrelated code stays untouched. Use for "webmcpify", "add WebMCP", or "expose app actions to AI agents".

repo: github/awesome-copilot

热度

GitHub 星标
40k
排名
#7476
许可证
MIT
更新时间
2026/10/15

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能