知识库

Eye(FR) → Mill(skill) → Library(/app)

← 返回列表
Dev.to · 2026-07-12 · 已成文 · 来源 file

网站对接多 AI 助手的成本来自协议碎片化(MCP/WebMCP/ACP/OAuth…);AI2Web 用 well-known 发现 + 一次 capability manifest + negotiate,把「为人设计的站」变成「可协商能力面」——集成应 describe once,而不是 per-assistant 胶水。

为什么重要

Agent 编排落地时,站点侧重复接协议是隐性税;统一能力模型后再映射传输层,比每个助手写一个 MCP server 更可维护。

正文

AI2Web

Claim

网站对接多 AI 助手的成本来自协议碎片化(MCP/WebMCP/ACP/OAuth…);AI2Web 用 well-known 发现 + 一次 capability manifest + negotiate,把「为人设计的站」变成「可协商能力面」——集成应 describe once,而不是 per-assistant 胶水。

Why it matters

Agent 编排落地时,站点侧重复接协议是隐性税;统一能力模型后再映射传输层,比每个助手写一个 MCP server 更可维护。

Summary

作者指出助手协议分裂导致重复实现。AI2Web 测试:GET /.well-known/ai2w 发现、GET /ai2w 清单、POST /ai2w/negotiate 协商能力集与传输,再适配各平台协议。

Actions

  • 草拟 agent 可调用能力清单
  • 审计 MCP 是否 per-assistant 重复
  • 新能力先 manifest 再接协议

Evidence

  • Describe your website once (primary): describe your site capabilities once and expose them through whichever protocol an AI platform speaks

Caveats

  • 原型叙事;生产鉴权/OAuth 需自评估

Research queries

  • (none)

Body

背景

Web 为人设计;agent 却靠 HTML 猜表单。每出新助手就重做集成。

机制

一次描述站点能力 → 发现端点 + manifest + negotiate → 多协议适配。目标是降低 per-assistant 维护面。

取舍

降低胶水,增加统一能力建模与鉴权设计成本;negotiate 失败时要有降级策略。

动作

  1. 列出内部产品「agent 可调用能力」清单(读/写/鉴权)。
  2. 对照现有 MCP 暴露是否一对一堆砌协议。
  3. 新能力先入 manifest,再选 MCP 或其他传输。

结合的源文章

主源
Describe your website once, make it usable by any AI
打开原文 ↗

原文快照

展开 / 收起快照

If you have tried to make a website work with AI assistants recently, you have run into the fragmentation. Depending on the platform, you are looking at MCP, WebMCP, ACP, product feeds, OAuth flows, framework-specific tooling, and whatever ships next. Each solves a real slice of the problem. But a site ends up implementing and maintaining several of them separately, per assistant, and re-doing it every time a new protocol appears.

The web was built for humans. Agents should not have to scrape HTML and guess at your forms. So I built AI2Web to test a different approach: describe your site's capabilities once, and expose them through whichever protocol an AI platform speaks.

The shape of it

A site publishes a small, machine-readable manifest:

GET  /.well-known/ai2w   discovery anchor
GET  /ai2w               the capability manifest
POST /ai2w/negotiate     agree a capability set + transport

From that one description, you generate MCP, GraphQL, ACP, OpenAPI and feeds. You do not rebuild for each assistant. When a new protocol wins, you add an adapter, not a rewrite.

It is explicitly not a replacement for MCP or ACP. It sits above them as an interoperability layer. The bet is that the capability model is the durable part, and the transports are adapters.

Try it in a minute

# score any live site's AI readiness
npx -p @ai2web/validator ai2web validate https://ai2web.dev

# or build a manifest in code
npm install @ai2web/core
import { ai2web, validateManifest } from "@ai2web/core";

const manifest = ai2web({ name: "Acme", url: "https://acme.example", type: "ecommerce" })
  .capability("content")
  .capability("commerce", { checkout: true })
  .build();

console.log(validateManifest(manifest).score); // AI Readiness Score /100

What exists today (it is early, v0.1)

  • An open spec, RFCs and a conformance suite
  • SDKs you can install now: @ai2web/core (and PHP, Python, Go and .NET)
  • A framework-agnostic server (Node and Cloudflare Workers) and a WordPress/WooCommerce plugin
  • Reference adapters that generate MCP, GraphQL, ACP and OpenAPI from one manifest, all routing through one guarded executor
  • A live validator (CLI, web, and an MCP tool) and a live discovery service
  • Safe by default: discovery is read-only, and anything that moves money or data is risk-tiered and returns a preview for user approval before it runs

What I want to know

I am not trying to win a standards race. I am trying to make the AI-ready web simple enough that developers actually want to build it. Whether that abstraction holds, or leaks so badly you would rather just implement MCP directly, is exactly the question I cannot answer alone.

If you build websites, AI agents, or the tools in between, I would value your criticism:

  • If you already ship MCP, does a capability layer above it earn its keep, or is it just another abstraction to maintain?
  • What would actually stop you from adopting it?

It is open source (code MIT, spec CC-BY).

Describe once. Works everywhere. That is the whole idea.