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。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 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)
- 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.
- 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. - 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. - Spec-shaped and dependency-free. Register via
document.modelContext.registerTool()with AbortSignal lifecycle (feature-detect the deprecatednavigator.modelContextfallback). No third-party WebMCP runtime dependencies. Everything feature-detected: the app behaves identically in browsers without WebMCP. - Never
toolautosubmiton state-changing forms — neithermutating: "client"nor"server". Only on pure read forms (search, filter, availability). - 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 (writemanifest.json.tmp, then rename overmanifest.json). - 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
评论
- …
同一仓库的更多技能
acquire-codebase-knowledge
40k帮你的智能体理解并编写现有代码项目的文档。它有助于新成员快速上手,或者快速了解项目架构。
acreadiness-assess
40k让你的智能体评估一个项目对 AI 的准备程度,并生成报告。它有助于了解项目在使用 AI 工具方面的准备情况。
acreadiness-generate-instructions
40k帮你的智能体根据评估结果编写 AI 工具的指令文件。它有助于改善 AI 与代码的交互方式,并弥补已发现的不足。
acreadiness-policy
40k让你的智能体协助制定或应用 AI 项目评估的政策。它有助于规范项目的评估方式,并确保合规。