AGENTS.md@packages/next-sdkA
AGENTS.md@packages/next-sdk from opentiny/webmcp-sdk is an AGENTS.md file: the standing instructions coding agents read in that repo.
mdr add opentiny/webmcp-sdk/packages/next-sdk/AGENTS.md@git:20260904.3c7564bPins git:20260904.3c7564b in mdr.lock. Pin the fingerprint instead.
- Audit grade
- A, 14 of 14 checks passed
- Kind
- AGENTS.md file
- Repository
- opentiny/webmcp-sdk
- Path
packages/next-sdk/AGENTS.md- Versions recorded
- 5
- Latest version
- git:20260904.3c7564b, committed Sep 4, 2026
- First version recorded
- Jul 21, 2026
- Size
- 3,202 bytes
- Repository stars
- 124
- License
- MIT
Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.
What the file says
# @opentiny/next-sdk — Agent 指南 改本包时先读根 [`AGENTS.md`](../../AGENTS.md)(含文首 **任务分流**),再读本文,再按需打开 Skill / Spec / 测试。用户长文见 VitePress `docs/webmcp-sdk/`。 ## 本包 Spec 硬提醒 修改下列任一内容前,**必须**先创建或更新 `packages/next-sdk/specs/REQ-YYYYMMDD-slug/`(仅当用户明确豁免 Spec 时可例外): - `page-tools/` - 公开 a11y API / 类型(含 `A11yRoleRule`、`A11yConfig`、`PageAgentToolOptions` 等) - `consoleCloudPageAgentToolOptions` 或其他默认/预设行为 - 无障碍树构建、剪枝、Static-Lift、序列化语义 然后: 1. 按 Spec `tasks.md` 改代码与 `test/page-tools/` 2. 需要时同步 `docs/webmcp-sdk/page-agent-tool.md` 与 `skills/page-agent/SKILL.md` 现有 Spec 索引见 [`specs/README.md`](./specs/README.md)。示例:[`specs/REQ-20260722-console-layout-landmark/`](./specs/REQ-20260722-console-layout-landmark/)。 ## 推荐能力(主推) 本包面向浏览器 **内置 WebMCP**(`document.modelContext`)。新代码与约束说明请围绕: - `initializeBuiltinWebMCP()`:注入 polyfill + 桥接;默认 `forcePolyfill: true`,覆盖会崩溃的 Chromium 实验性 native - `document.modelContext.registerTool` / 业务工具注册 - `registerPageAgentTool` 及 a11y / 运行期配置 API **不要**再把 `WebMcpServer` / `WebMcpClient` 作为默认推荐路径写进指引或示例(历史兼容代码可能仍存在,但非本仓库 Agent 约束的一部分)。 ## 模块地图 | 路径 | 职责 | |---|---| | `page-tools/` | page-agent-tool、a11y、`waitForRouteTools`、高亮/遮罩、`initializeBuiltinWebMCP` | …
Read the whole file at its exact version.
How to install
mdr add opentiny/webmcp-sdk/packages/next-sdk/AGENTS.md@sha256:7571c7796499a850The line at the top of this page pins the label git:20260904.3c7564b, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.
[](https://markdownregistry.com/a/art_wzy42tjodjpbar6f)
5 badge image fetches in 30 days. What the badge shows.
Versions
The registry has recorded 5 versions of this file, between Jul 21, 2026 and Sep 4, 2026, about one every 11 days.
| version | committed | commit | size | audit | |
|---|---|---|---|---|---|
| git:20260904.3c7564b latest | 2026-09-04 | 3c7564b | 3,202 B | A | view · diff |
| git:20260807.21a9d4f | 2026-08-07 | 21a9d4f | 3,124 B | A | view · diff |
| git:20260722.58db297 | 2026-07-22 | 58db297 | 3,007 B | A | view · diff |
| git:20260722.1bb3f7d | 2026-07-22 | 1bb3f7d | 2,183 B | A | view · diff |
| git:20260721.cdc264a | 2026-07-21 | cdc264a | 2,170 B | A | view |
Audit of the latest version
- pass: Size between 200 bytes and 200 KB (3202 bytes)
- pass: No zero-width or bidi control characters
- pass: No instruction hidden inside an HTML comment
- pass: No link to an exfiltration or paste host
- pass: No credential-shaped string
- pass: No instruction to send local credentials anywhere
- pass: No text hidden with inline styles
- pass: No prompt-injection phrasing
- pass: No curl or wget piped into a shell
- pass: No recursive delete of root, home or parent
- pass: No instruction to read or print local credentials
- pass: No base64 blob over 200 characters
- pass: No link to a raw IP address
- pass: No script tag
Source
opentiny/webmcp-sdk · 124 stars · license MIT · pushed 2026-11-03 · branch dev
API
GET https://markdownregistry.com/api/v1/artifacts/art_wzy42tjodjpbar6f GET https://markdownregistry.com/api/v1/resolve?ref=opentiny/webmcp-sdk/packages/next-sdk/AGENTS.md GET https://markdownregistry.com/api/v1/blob/7571c7796499a850769f6896cd55c2765d6ae913621f5372e9e4c9d5284a8ec7
Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.
Guides: how to write a good AGENTS.md · AGENTS.md vs CLAUDE.md · which agent file does what.