@openanysi/website-quality-audit-mcp 0.0.0-stage → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CONTRIBUTING.md +50 -0
- package/LICENSE +201 -0
- package/README.md +218 -2
- package/bin/server.js +18 -0
- package/docs/README.zh-CN.md +217 -0
- package/package.json +61 -4
- package/skills/website-quality-audit/SKILL.md +28 -0
- package/skills/website-quality-audit/references/common.en.md +3 -0
- package/skills/website-quality-audit/references/common.zh.md +3 -0
- package/skills/website-quality-audit/references/evidence-brief.en.md +23 -0
- package/skills/website-quality-audit/references/evidence-brief.zh.md +23 -0
- package/skills/website-quality-audit/references/research.en.md +29 -0
- package/skills/website-quality-audit/references/research.zh.md +27 -0
- package/src/config.js +37 -0
- package/src/server.js +18 -0
- package/vertical.config.json +204 -0
- package/workflows/common.en.md +3 -0
- package/workflows/common.zh.md +3 -0
- package/workflows/evidence-brief.en.md +23 -0
- package/workflows/evidence-brief.zh.md +23 -0
- package/workflows/research.en.md +29 -0
- package/workflows/research.zh.md +27 -0
|
@@ -0,0 +1,217 @@
|
|
|
1
|
+
# website-quality-audit-mcp:网站质量与性能审计 MCP
|
|
2
|
+
|
|
3
|
+
通过 OpenAny 为 Claude、Cursor 等客户端提供网站质量与性能审计。本地 stdio 运行,客户端负责分析、写作与导出。
|
|
4
|
+
|
|
5
|
+
[](https://www.npmjs.com/package/@openanysi/website-quality-audit-mcp)
|
|
6
|
+
[](../LICENSE)
|
|
7
|
+
[](https://nodejs.org/)
|
|
8
|
+
|
|
9
|
+
[English](../README.md) | 简体中文
|
|
10
|
+
|
|
11
|
+
## 概览
|
|
12
|
+
|
|
13
|
+
本包包含 3 个只读数据工具和三个免费辅助工具。每个数据工具执行一个独立请求,采样、分页、标识衔接和下一步由客户端决定。
|
|
14
|
+
|
|
15
|
+
**适合 / 不适合**
|
|
16
|
+
|
|
17
|
+
- 适合指定平台范围内带来源的记录比较。
|
|
18
|
+
- 适合使用 Claude、Cursor 等客户端整理证据表和调研简报。
|
|
19
|
+
- 适合仅分析用户提供的已有结果。
|
|
20
|
+
- 不适合账号运营、发布、购买或隐藏的多请求编排。
|
|
21
|
+
- 不适合用小样本推断全平台统计或承诺未经核实的结果。
|
|
22
|
+
|
|
23
|
+
## 目录
|
|
24
|
+
|
|
25
|
+
- [快速开始](#快速开始)
|
|
26
|
+
- [核心特性](#核心特性)
|
|
27
|
+
- [示例提示词](#示例提示词)
|
|
28
|
+
- [为什么选择本 MCP](#为什么选择本-mcp)
|
|
29
|
+
- [可以构建与交付什么](#可以构建与交付什么)
|
|
30
|
+
- [工具参考](#工具参考)
|
|
31
|
+
- [内置工作流指南](#内置工作流指南)
|
|
32
|
+
- [完整示例](#完整示例)
|
|
33
|
+
- [常见问题](#常见问题)
|
|
34
|
+
- [错误处理与重试](#错误处理与重试)
|
|
35
|
+
- [范围、数据与计费](#范围数据与计费)
|
|
36
|
+
- [开发](#开发)
|
|
37
|
+
- [关于 OpenAny](#关于-openany)
|
|
38
|
+
- [许可证](#许可证)
|
|
39
|
+
|
|
40
|
+
## 快速开始
|
|
41
|
+
|
|
42
|
+
### 前置条件
|
|
43
|
+
|
|
44
|
+
- Node.js 22+ 和支持本地 stdio MCP 的客户端。
|
|
45
|
+
- 数据调用需要 OpenAny Key:[API Keys](https://openany.si/dashboard/?page=api-keys)、[配置指南](https://openany.si/setup.md)、[用量和费用](https://openany.si/dashboard/?page=usage)。
|
|
46
|
+
- 三个辅助工具免 Key。
|
|
47
|
+
|
|
48
|
+
### 配置客户端
|
|
49
|
+
|
|
50
|
+
支持 `mcpServers` 的客户端可复制以下配置;其他宿主通过自身设置注册相同命令、参数和环境变量。
|
|
51
|
+
|
|
52
|
+
```json
|
|
53
|
+
{
|
|
54
|
+
"mcpServers": {
|
|
55
|
+
"website-quality-audit-mcp": {
|
|
56
|
+
"command": "npx",
|
|
57
|
+
"args": [
|
|
58
|
+
"-y",
|
|
59
|
+
"@openanysi/website-quality-audit-mcp"
|
|
60
|
+
],
|
|
61
|
+
"env": {
|
|
62
|
+
"OPENANY_API_KEY": "YOUR_OPENANY_API_KEY"
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
将 `OPENANY_API_KEY` 保存在私密客户端设置或继承环境中。仅试用辅助工具时可省略 env;不要将真实 Key 写入聊天或仓库。
|
|
70
|
+
|
|
71
|
+
### 验证连接
|
|
72
|
+
|
|
73
|
+
- **无 Key:**通过 `get_tool_info` 查看工具参数和价格,再通过 `get_workflow` 加载 `research`;英文指南显式传 `language: "en"`。
|
|
74
|
+
- **有 Key:**先检查目标工具,再按问题采集一个受控样本,保留来源和缺失字段。
|
|
75
|
+
|
|
76
|
+
## 核心特性
|
|
77
|
+
|
|
78
|
+
- 3 个原子数据工具,具体能力见下表。
|
|
79
|
+
- 调用前通过 `get_tool_info` 查看当前参数和价格。
|
|
80
|
+
- 调研与证据简报两套中英文指南。
|
|
81
|
+
- 附带与指南文本同步的可选 companion Skill。
|
|
82
|
+
- 分页、比较及可用的 CSV/Markdown 导出由客户端决定。
|
|
83
|
+
- 通过 OpenAny 通用目录发现包外能力。
|
|
84
|
+
|
|
85
|
+
## 示例提示词
|
|
86
|
+
|
|
87
|
+
- “发现我的网站链接,选一个相关HTML页面,结合技术检查与桌面Lighthouse结果,输出有证据的修复优先级。”
|
|
88
|
+
- “比较相关工具返回的记录,保留标识、日期和缺失字段。”
|
|
89
|
+
- “将已有样本整理成证据简报,区分观察和假设。”
|
|
90
|
+
- “仅使用我提供的结果,不新增数据调用,输出比较表。”
|
|
91
|
+
|
|
92
|
+
## 为什么选择本 MCP
|
|
93
|
+
|
|
94
|
+
| 关注点 | 处理方式 | 用户价值 |
|
|
95
|
+
| --- | --- | --- |
|
|
96
|
+
| 明确范围 | 单一调研领域的只读工具 | 工具集合小且可检查 |
|
|
97
|
+
| 控制费用 | 每次请求前查价 | 对每次付费调用作明确决定 |
|
|
98
|
+
| 可追溯证据 | 保留原记录与样本边界 | 便于复核比较与简报 |
|
|
99
|
+
| 灵活交付 | 客户端模型分析和写作 | 使用自己的模型及文件工具 |
|
|
100
|
+
|
|
101
|
+
## 可以构建与交付什么
|
|
102
|
+
|
|
103
|
+
| 场景 | 客户端执行方式 | 交付物 |
|
|
104
|
+
| --- | --- | --- |
|
|
105
|
+
| 来源采集 | 选择相关工具并读取受控样本 | 带链接的证据表 |
|
|
106
|
+
| 对比研究 | 对齐记录对象及范围 | 比较表与缺失字段 |
|
|
107
|
+
| 证据简报 | 使用 `evidence_brief` 分析已有输出 | Markdown 简报及后续问题 |
|
|
108
|
+
|
|
109
|
+
## 工具参考
|
|
110
|
+
|
|
111
|
+
共 **6 个工具**:3 个数据工具和 3 个免费辅助工具。每次数据工具调用对应一个请求,后续页面和调用由客户端控制。
|
|
112
|
+
|
|
113
|
+
### 数据工具
|
|
114
|
+
|
|
115
|
+
参数表保留英文名称及 required/optional 标记,便于与客户端 Schema 对照。
|
|
116
|
+
|
|
117
|
+
| 工具 | 参数 | 行为 | 返回数据概览 |
|
|
118
|
+
| --- | --- | --- | --- |
|
|
119
|
+
| `list_sitemap_urls` | `url` (string, required); `type` (string, optional; sitemap, all) | Discover sitemap URLs | `links`;字段取决于接口,部分字段可能缺失。 |
|
|
120
|
+
| `inspect_page` | `tasks` (array, required) | Inspect one page | `url`, `status_code`, `onpage_score`, `checks`, `meta`, `page_timing`;字段取决于接口,部分字段可能缺失。 |
|
|
121
|
+
| `run_lighthouse` | `tasks` (array, required) | Run one Lighthouse audit | `requestedUrl`, `finalUrl`, `categories`, `audits`, `fetchTime`;字段取决于接口,部分字段可能缺失。 |
|
|
122
|
+
|
|
123
|
+
响应按原接口透传,未编造统一业务 Schema。提取字段或串联标识前先检查真实结果;可选字段可能缺失。只有参数表中存在的工具才接受输入游标。
|
|
124
|
+
|
|
125
|
+
先发现URL,再逐页检查。tasks数组只允许一个页面,需检查任务级状态并保留运行环境。Lighthouse是实验室测量,不是真实用户Core Web Vitals,也不自动审计全站。
|
|
126
|
+
|
|
127
|
+
list_sitemap_urls必填url,可选type(sitemap/all)。检查返回链接,保持目标域名并选择HTML页面,不将sitemap文件当作页面审计。审计tasks必须恰好包含一个对象且提供url;inspect_page对象内可选enable_javascript、browser_preset、accept_language;run_lighthouse对象内可选for_mobile、categories、audits、language_code。
|
|
128
|
+
|
|
129
|
+
### 免费辅助工具
|
|
130
|
+
|
|
131
|
+
| 工具 | 参数 | 行为 |
|
|
132
|
+
| --- | --- | --- |
|
|
133
|
+
| `get_tool_info` | 必填 `tool_name`,取数据工具名 | 查看参数、价格与限制 |
|
|
134
|
+
| `get_workflow` | 必填 `workflow`;可选 `language`,zh/en,默认 zh | 读取指南;英文传 `language: "en"` |
|
|
135
|
+
| `search_openany_capabilities` | 必填 `query`,1–256 字符;可选 `limit`,1–10,默认 5 | 查找候选能力,不执行 |
|
|
136
|
+
|
|
137
|
+
## 内置工作流指南
|
|
138
|
+
|
|
139
|
+
`get_workflow` 返回客户端使用的说明和模板,本身不调用数据、模型,也不直接生成报告。
|
|
140
|
+
|
|
141
|
+
| 指南 ID | 适用任务 | 内容 |
|
|
142
|
+
| --- | --- | --- |
|
|
143
|
+
| `research` | 规划和收集样本 | 工具选择、标识核对与证据表 |
|
|
144
|
+
| `evidence_brief` | 根据已有记录撰写简报 | 来源、发现、缺口与后续问题 |
|
|
145
|
+
|
|
146
|
+
### 可选 companion Skill
|
|
147
|
+
|
|
148
|
+
[领域 Skill](../skills/website-quality-audit/SKILL.md) 包含相同双语指南;仅在客户端支持 Skill 时安装该目录。不安装仍可使用 MCP 内置指南。
|
|
149
|
+
|
|
150
|
+
## 完整示例
|
|
151
|
+
|
|
152
|
+
**提示词:**“发现我的网站链接,选一个相关HTML页面,结合技术检查与桌面Lighthouse结果,输出有证据的修复优先级。”
|
|
153
|
+
|
|
154
|
+
1. 加载 `research`,明确问题、标识和预算。
|
|
155
|
+
2. 通过 `get_tool_info` 检查每个目标数据工具。
|
|
156
|
+
3. 执行已批准的独立请求,检查真实结果后再复用标识。
|
|
157
|
+
4. 保留来源和未知字段,使用 `evidence_brief` 整理观察与假设。
|
|
158
|
+
5. 客户端具备文件工具时再导出 Markdown 或 CSV。
|
|
159
|
+
|
|
160
|
+
## 常见问题
|
|
161
|
+
|
|
162
|
+
### 使用费用是多少?
|
|
163
|
+
|
|
164
|
+
Apache-2.0 软件包免费,3 个辅助工具免费免 Key;3 个数据工具按 OpenAny 当前 API 定价计费。调用前用 `get_tool_info` 查价,客户端模型费用另计。
|
|
165
|
+
|
|
166
|
+
### 支持 Cursor、Claude Desktop 和 Claude Code 吗?
|
|
167
|
+
|
|
168
|
+
支持标准本地 stdio MCP。上述 JSON 适用于采用 mcpServers 格式的宿主,其他客户端使用各自设置注册相同启动命令。
|
|
169
|
+
|
|
170
|
+
### 无 Key 可以体验吗?
|
|
171
|
+
|
|
172
|
+
可以,三个辅助工具可读取参数、指南和能力候选;数据请求需要 OPENANY_API_KEY。
|
|
173
|
+
|
|
174
|
+
### MCP 会直接撰写最终报告吗?
|
|
175
|
+
|
|
176
|
+
报告由客户端 Agent 撰写。get_workflow 提供指南和模板,数据工具提供证据。
|
|
177
|
+
|
|
178
|
+
### 会自动分页或重试吗?
|
|
179
|
+
|
|
180
|
+
不会。客户端选择每一页,执行不明的请求不会自动重放。游标必须与原工具和查询条件匹配。
|
|
181
|
+
|
|
182
|
+
### 缺少能力怎么办?
|
|
183
|
+
|
|
184
|
+
使用 search_openany_capabilities 或连接 [OpenAny 通用 MCP](https://mcp.openany.si/)。目录发现不会自动调用或安装另一个服务。
|
|
185
|
+
|
|
186
|
+
### 超时如何处理?
|
|
187
|
+
|
|
188
|
+
保留请求 ID,先核对原请求再决定下一次调用;缺少最终响应不代表未收费。
|
|
189
|
+
|
|
190
|
+
## 错误处理与重试
|
|
191
|
+
|
|
192
|
+
| 执行状态 | 常见情况 | 收费情况 | 是否可重试 |
|
|
193
|
+
| --- | --- | --- | --- |
|
|
194
|
+
| 失败 | 发送前参数或凭据被拒绝 | 不收费 | 修正输入后再决定 |
|
|
195
|
+
| 成功 | 返回业务数据 | 按接口计费规则 | 不要重复提交同一请求 |
|
|
196
|
+
| 不确定 / 超时 | 未收到最终结果 | 未知 | 先核对原请求 |
|
|
197
|
+
|
|
198
|
+
## 范围、数据与计费
|
|
199
|
+
|
|
200
|
+
- **执行和计费:**逐次检查并执行;空结果也可能按所选规则收费。
|
|
201
|
+
- **采样边界:**先发现URL,再逐页检查。tasks数组只允许一个页面,需检查任务级状态并保留运行环境。Lighthouse是实验室测量,不是真实用户Core Web Vitals,也不自动审计全站。
|
|
202
|
+
- **报告规范:**区分原始数据、观察、假设与草稿;缺失事实标未知。
|
|
203
|
+
- **网络和隐私:**服务在本地运行,目录查询和业务输入会发送到 OpenAny。
|
|
204
|
+
|
|
205
|
+
## 开发
|
|
206
|
+
|
|
207
|
+
见英文 [CONTRIBUTING.md](../CONTRIBUTING.md),包含安装、验证及指南维护说明。
|
|
208
|
+
|
|
209
|
+
## 关于 OpenAny
|
|
210
|
+
|
|
211
|
+
[OpenAny](https://openany.si/) 是 B2A(Business-to-Agent)市场,提供 AI 模型、数据和业务 API、MCP 工具以及 ready-to-call Runs。一枚 Key 按调用付费,无需强制月费订阅。
|
|
212
|
+
|
|
213
|
+
使用 search_openany_capabilities 或连接 [OpenAny 通用 MCP](https://mcp.openany.si/) 扩展能力。
|
|
214
|
+
|
|
215
|
+
## 许可证
|
|
216
|
+
|
|
217
|
+
[Apache-2.0](../LICENSE)
|
package/package.json
CHANGED
|
@@ -1,6 +1,63 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openanysi/website-quality-audit-mcp",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "Discover sitemap URLs and inspect individual pages with technical and Lighthouse audit data. Powered by OpenAny.",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"engines": {
|
|
7
|
+
"node": ">=22"
|
|
8
|
+
},
|
|
9
|
+
"license": "Apache-2.0",
|
|
10
|
+
"bin": {
|
|
11
|
+
"website-quality-audit-mcp": "./bin/server.js"
|
|
12
|
+
},
|
|
13
|
+
"files": [
|
|
14
|
+
"bin",
|
|
15
|
+
"src",
|
|
16
|
+
"vertical.config.json",
|
|
17
|
+
"workflows",
|
|
18
|
+
"README.md",
|
|
19
|
+
"docs/README.zh-CN.md",
|
|
20
|
+
"CONTRIBUTING.md",
|
|
21
|
+
"LICENSE",
|
|
22
|
+
"skills"
|
|
23
|
+
],
|
|
24
|
+
"scripts": {
|
|
25
|
+
"test": "node --test test/*.test.mjs",
|
|
26
|
+
"check": "node scripts/check.mjs && node scripts/sync-skill.mjs --check",
|
|
27
|
+
"smoke:package": "node scripts/smoke-package.mjs",
|
|
28
|
+
"sync:skill": "node scripts/sync-skill.mjs"
|
|
29
|
+
},
|
|
30
|
+
"keywords": [
|
|
31
|
+
"website-audit",
|
|
32
|
+
"lighthouse",
|
|
33
|
+
"technical-seo",
|
|
34
|
+
"sitemap",
|
|
35
|
+
"web-performance",
|
|
36
|
+
"mcp",
|
|
37
|
+
"mcp-server",
|
|
38
|
+
"model-context-protocol",
|
|
39
|
+
"openany",
|
|
40
|
+
"claude",
|
|
41
|
+
"cursor",
|
|
42
|
+
"page-audit",
|
|
43
|
+
"lighthouse-audit",
|
|
44
|
+
"ai-agents"
|
|
45
|
+
],
|
|
46
|
+
"repository": {
|
|
47
|
+
"type": "git",
|
|
48
|
+
"url": "git+https://github.com/siopenany/just-mcps.git",
|
|
49
|
+
"directory": "packages/website-quality-audit-mcp"
|
|
50
|
+
},
|
|
51
|
+
"homepage": "https://github.com/siopenany/just-mcps/tree/main/packages/website-quality-audit-mcp#readme",
|
|
52
|
+
"bugs": {
|
|
53
|
+
"url": "https://github.com/siopenany/just-mcps/issues"
|
|
54
|
+
},
|
|
55
|
+
"dependencies": {
|
|
56
|
+
"@openanysi/openany-core": "0.1.2"
|
|
57
|
+
},
|
|
58
|
+
"devDependencies": {
|
|
59
|
+
"@modelcontextprotocol/client": "2.4.0"
|
|
60
|
+
},
|
|
61
|
+
"readme": "# website-quality-audit-mcp: Website Quality Audit MCP\n\nMCP server to discover sitemap URLs and inspect individual pages with technical and Lighthouse audit data. Built for Claude, Cursor and other AI agents. Powered by [OpenAny](https://openany.si/).\n\n[](https://www.npmjs.com/package/@openanysi/website-quality-audit-mcp)\n[](LICENSE)\n[](https://nodejs.org/)\n\nEnglish | [简体中文](docs/README.zh-CN.md)\n\n## Overview\n\nDiscover sitemap URLs and inspect individual pages with technical and Lighthouse audit data. The server provides 3 read-only data tools and three free utility tools over local `stdio`. Your client agent selects calls, interprets evidence and writes reports using its own model. Supply the identifiers and filters listed in Tools Reference; each data call remains independent.\n\n**Best For / Not For**\n\n- **Best For:** sourced comparisons within the supported platform and task scope.\n- **Best For:** turning available records into an evidence table and research brief in Claude, Cursor or another MCP client.\n- **Best For:** analyzing supplied outputs without additional data calls.\n- **Not For:** account automation, publishing, purchases or hidden multi-request workflows.\n- **Not For:** complete population statistics or claims unsupported by the collected sample.\n\n## Table of Contents\n\n- [Quick Start](#quick-start)\n- [Key Features](#key-features)\n- [Example Prompts](#example-prompts)\n- [Why website-quality-audit-mcp?](#why-website-quality-audit-mcp)\n- [What You Can Build & Deliver](#what-you-can-build--deliver)\n- [Tools Reference](#tools-reference)\n- [Built-in Workflow Guides](#built-in-workflow-guides)\n- [End-to-End Example](#end-to-end-example)\n- [FAQ](#faq)\n- [Error Handling & Retries](#error-handling--retries)\n- [Scope, Data & Billing Notes](#scope-data--billing-notes)\n- [Development](#development)\n- [About OpenAny](#about-openany)\n- [License](#license)\n\n## Quick Start\n\n### Prerequisites\n\n- Node.js 22+ and a client supporting local `stdio` MCP servers.\n- An OpenAny API key for data tools: [API Keys](https://openany.si/dashboard/?page=api-keys), [setup guide](https://openany.si/setup.md), [usage and costs](https://openany.si/dashboard/?page=usage).\n- Utility tools work without a key.\n\n### Configure Your Client\n\nFor clients using `mcpServers`, add this to private settings. Other hosts register the same command, arguments and environment through their MCP settings or CLI.\n\n```json\n{\n \"mcpServers\": {\n \"website-quality-audit-mcp\": {\n \"command\": \"npx\",\n \"args\": [\n \"-y\",\n \"@openanysi/website-quality-audit-mcp\"\n ],\n \"env\": {\n \"OPENANY_API_KEY\": \"YOUR_OPENANY_API_KEY\"\n }\n }\n }\n}\n```\n\nStore `OPENANY_API_KEY` in private client settings or the inherited environment. Omit `env` for utility-only use. Keep real keys out of chat and repositories.\n\n### Verify It Works\n\n- **Without an API key:** Inspect `list_sitemap_urls` with `get_tool_info`, then load `get_workflow` with `workflow: \"research\", language: \"en\"`. Explain inputs and pricing without fetching data.\n- **With an API key:** Ask the agent to inspect the relevant tool, request one scoped sample for your question, and preserve sources and missing fields in a research table.\n\n## Key Features\n\n- 3 atomic tools for the operations listed below.\n- Current parameters and prices available through `get_tool_info`.\n- Two English/Chinese workflow guides for research and evidence briefs.\n- A packaged optional companion Skill using the same guide texts.\n- Client-controlled pagination, comparisons and supported CSV/Markdown exports.\n- Broader capability discovery through the OpenAny catalog.\n\n## Example Prompts\n\n- \"Discover links for my website, choose one relevant HTML page, and compare its technical checks with a desktop Lighthouse audit. Return prioritized fixes with evidence.\"\n- \"Compare the records returned by the relevant tools; keep identifiers, dates and missing values.\"\n- \"Turn the collected sample into an evidence brief. Separate observations from hypotheses.\"\n- \"Use only the results I provide. Make no new data calls; organize them into a comparison table.\"\n\n## Why website-quality-audit-mcp?\n\n| What You Care About | How We Handle It | Value to You |\n| --- | --- | --- |\n| Focused scope | Read-only tools for one research domain | A small, inspectable tool set |\n| Spending control | Read current pricing before individual requests | Explicit decisions about each paid call |\n| Evidence quality | Preserve source records and sample limits | Reviewable comparisons and briefs |\n| Flexible reporting | Your client performs analysis and writing | Use your chosen model and file tools |\n\n## What You Can Build & Deliver\n\n| Use Case | How the Agent Runs It | Typical Deliverables |\n| --- | --- | --- |\n| Source collection | Select the relevant tools and request a bounded sample | Linked evidence table |\n| Comparative research | Compare matching records and their scope | Comparison table with missing fields |\n| Evidence brief | Load `evidence_brief` and analyze existing outputs | Markdown brief and next questions |\n\n## Tools Reference\n\nThe server exposes **6 tools**: 3 data tools and 3 free keyless utilities. Each data tool maps to one request. The client decides subsequent calls and pages.\n\n### Data Tools\n\n| Tool | Parameters | Behavior | Typical Returned Fields |\n| --- | --- | --- | --- |\n| `list_sitemap_urls` | `url` (string, required); `type` (string, optional; sitemap, all) | Discover sitemap URLs | `links`; provider-dependent; optional fields may be absent. |\n| `inspect_page` | `tasks` (array, required) | Inspect one page | `url`, `status_code`, `onpage_score`, `checks`, `meta`, `page_timing`; provider-dependent; optional fields may be absent. |\n| `run_lighthouse` | `tasks` (array, required) | Run one Lighthouse audit | `requestedUrl`, `finalUrl`, `categories`, `audits`, `fetchTime`; provider-dependent; optional fields may be absent. |\n\nResponses are passed through rather than normalized into an invented common business schema. Inspect the returned payload before extracting fields or chaining identifiers. Optional fields may be missing. An input cursor is available only where listed above.\n\nDiscover URLs, then audit selected pages individually. Each tasks array contains exactly one page. Check task-level success and retain run/device context. Lighthouse is a laboratory measurement, not field Core Web Vitals or an automatic whole-site audit.\n\nEach audit `tasks` array must contain exactly one item with a non-empty `url`.\n\n`list_sitemap_urls` accepts required `url` and optional `type` (`sitemap` or `all`). Inspect returned links, keep the intended host, and select an HTML page rather than passing a sitemap file into an audit. Audit `tasks` must contain exactly one object with required `url`. `inspect_page` also accepts `enable_javascript`, `browser_preset` and `accept_language` inside that object; `run_lighthouse` accepts `for_mobile`, `categories`, `audits` and `language_code`.\n\n### Utility Tools (Free, No API Key Required)\n\n| Tool | Parameters | Behavior |\n| --- | --- | --- |\n| `get_tool_info` | Required `tool_name` from the data-tool names above | Read current parameters, pricing and limits |\n| `get_workflow` | Required `workflow`; optional `language` (`zh` or `en`, default `zh`) | Return a guide; use `language: \"en\"` for English |\n| `search_openany_capabilities` | Required `query` (1-256 characters); optional `limit` (1-10, default 5) | Search related capabilities without executing them |\n\n## Built-in Workflow Guides\n\n`get_workflow` returns instructions and templates for your client. It makes no data or model call and does not itself generate a report.\n\n| Guide ID | Best For | What It Provides |\n| --- | --- | --- |\n| `research` | Planning and collecting a scoped sample | Call selection, identifier checks and an evidence-table template |\n| `evidence_brief` | Reporting from collected or supplied records | Sourced findings, gaps and next questions |\n\n### Companion Skill (Optional)\n\nThe [companion Skill](skills/website-quality-audit/SKILL.md) contains the same bilingual guides. Install that directory only if your client supports Skills. The MCP guides remain usable independently.\n\n## End-to-End Example\n\n**Prompt:** \"Discover links for my website, choose one relevant HTML page, and compare its technical checks with a desktop Lighthouse audit. Return prioritized fixes with evidence.\"\n\n**How the Agent Executes:**\n\n1. Load `research` with `language: \"en\"` and clarify the question, identifiers and budget.\n2. Inspect `get_tool_info` for each selected data tool.\n3. Make the approved individual calls. Reuse identifiers only after inspecting the actual returned records.\n4. Preserve sources and missing fields, then load `evidence_brief` to summarize observations and hypotheses.\n5. Write Markdown or CSV locally if the client provides file tools.\n\n## FAQ\n\n### How much does website-quality-audit-mcp cost?\n\nThe Apache-2.0 package is free to use. The 3 utility tools are free and keyless; the 3 data tools follow current OpenAny API pricing. Inspect `get_tool_info` before calling. Your client's model costs are separate.\n\n### Does it work with Cursor, Claude Desktop and Claude Code?\n\nYes, it uses standard local `stdio` MCP. The JSON above applies to hosts using `mcpServers`; other clients register the same launch command through their own settings.\n\n### Can I try it without an API key?\n\nYes. Use the three utility tools to read parameters, guides and capability candidates. Data requests require `OPENANY_API_KEY`.\n\n### Does the MCP write the final report?\n\nYour client agent writes the report. `get_workflow` supplies instructions and a template; data tools supply the evidence.\n\n### Does it paginate or retry automatically?\n\nNo. The client selects each subsequent page, and uncertain requests are not replayed automatically. Keep cursors within their original operation and query context.\n\n### What if I need another capability?\n\nUse `search_openany_capabilities` or connect the general [OpenAny MCP](https://mcp.openany.si/). Discovery does not automatically execute or install another service.\n\n### How should I handle timeouts?\n\nKeep the request ID and check the original outcome before another call. A missing final response does not prove that the request was uncharged.\n\n## Error Handling & Retries\n\n| Execution State | Typical Indicators | Billed? | Safe to Retry? |\n| --- | --- | --- | --- |\n| **Failed** | Input or credential rejection before dispatch | No | After correcting the input |\n| **Succeeded** | Returned business data | According to the selected API's billing rule | Do not resubmit the same request |\n| **Uncertain / Timeout** | Final result was not received | Unknown | Check the original request first |\n\n## Scope, Data & Billing Notes\n\n- **Execution & Billing:** Each call is inspected and executed separately. Empty results may incur a charge when the selected rule applies.\n- **Sampling & Data Boundaries:** Discover URLs, then audit selected pages individually. Each tasks array contains exactly one page. Check task-level success and retain run/device context. Lighthouse is a laboratory measurement, not field Core Web Vitals or an automatic whole-site audit.\n- **Reporting Standards:** Separate source data, observations, hypotheses and drafts. Mark unavailable facts as unknown.\n- **Network & Privacy:** The server runs locally; catalog queries and business inputs are sent to OpenAny.\n\n## Development\n\nSee [CONTRIBUTING.md](CONTRIBUTING.md) for setup, verification and guide maintenance.\n\n## About OpenAny\n\n[OpenAny](https://openany.si/) is a **B2A (Business-to-Agent) marketplace** for AI models, data and business APIs, tools/MCP servers and ready-to-call Runs. One OpenAny key provides pay-per-call access without a required monthly subscription.\n\nDiscover additional capabilities with `search_openany_capabilities` or connect the general [OpenAny MCP](https://mcp.openany.si/).\n\n## License\n\n[Apache-2.0](LICENSE)\n",
|
|
62
|
+
"readmeFilename": "README.md"
|
|
63
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: website-quality-audit
|
|
3
|
+
description: "Discover sitemap URLs and inspect individual pages with technical and Lighthouse audit data. Use with this MCP for sourced research and evidence briefs; it does not build servers or perform account operations."
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Website Quality Audit
|
|
7
|
+
|
|
8
|
+
Use the installed `@openanysi/website-quality-audit-mcp` MCP for this task. This Skill supplies client-side research instructions; it does not install or start the server.
|
|
9
|
+
|
|
10
|
+
## Choose a guide
|
|
11
|
+
|
|
12
|
+
- Read [common rules](references/common.en.md) before collecting data, or [中文规则](references/common.zh.md).
|
|
13
|
+
- For question framing, tool selection, identifiers and sample collection, read [research](references/research.en.md) or [中文调研指南](references/research.zh.md).
|
|
14
|
+
- For a report based on existing outputs, read [evidence brief](references/evidence-brief.en.md) or [中文简报指南](references/evidence-brief.zh.md). No new data calls are required merely to write a report.
|
|
15
|
+
|
|
16
|
+
The same guides are available through `get_workflow` with `workflow: "research"` or `workflow: "evidence_brief"`; use `language: "en"` for English.
|
|
17
|
+
|
|
18
|
+
## Available data tools
|
|
19
|
+
|
|
20
|
+
- `list_sitemap_urls`: Discover sitemap URLs.
|
|
21
|
+
- `inspect_page`: Inspect one page.
|
|
22
|
+
- `run_lighthouse`: Run one Lighthouse audit.
|
|
23
|
+
|
|
24
|
+
Inspect `get_tool_info` before each chosen call and follow its actual input schema. Do not invent filters, fields, IDs, cursors or account access. Client-side analysis and supported CSV/Markdown exports use the client's own model and file tools.
|
|
25
|
+
|
|
26
|
+
## Boundaries
|
|
27
|
+
|
|
28
|
+
Keep source links, dates, sample counts and missing values. Separate observations, hypotheses and drafts. Do not infer sales, demand, demographics, safety or financial outcomes from unrelated fields. Stop after uncertain execution or billing and preserve the request ID. Use `search_openany_capabilities` or https://mcp.openany.si/ for capabilities outside this package.
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
# Research rules
|
|
2
|
+
|
|
3
|
+
Inspect get_tool_info before every data tool. Stay within the user's budget. Each tool performs one request; the client chooses subsequent pages. Keep original links, identifiers, collection time, sample size and missing fields. Separate source data, observations, hypotheses and drafts. An empty page is not evidence of zero demand. Stop after an uncertain request; preserve its request ID and inspect the original outcome before another call. Use https://mcp.openany.si/ for unmet capabilities.
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# Website Quality Audit: evidence brief
|
|
2
|
+
|
|
3
|
+
Use the available outputs of `list_sitemap_urls`, `inspect_page`, `run_lighthouse`. Start from collected evidence and ask before spending beyond the agreed scope. No additional request is required to write this brief.
|
|
4
|
+
|
|
5
|
+
## Deliverable
|
|
6
|
+
|
|
7
|
+
1. Research question, platform/region, collection date and sample coverage.
|
|
8
|
+
2. A table of sources and observed values, retaining identifiers and missing fields.
|
|
9
|
+
3. Three to five observations, each linked to evidence. Separate hypotheses from observed facts.
|
|
10
|
+
4. Limitations and unresolved questions. Avoid population estimates from small samples.
|
|
11
|
+
5. Suggested next steps and the precise additional data needed, if any.
|
|
12
|
+
|
|
13
|
+
If drafting content, use confirmed product facts and write original material; sampled opinions are not verified product claims. The client controls writing and local exports.
|
|
14
|
+
|
|
15
|
+
## Domain limits
|
|
16
|
+
|
|
17
|
+
Discover URLs, then audit selected pages individually. Each tasks array contains exactly one page. Check task-level success and retain run/device context. Lighthouse is a laboratory measurement, not field Core Web Vitals or an automatic whole-site audit.
|
|
18
|
+
|
|
19
|
+
## Domain report columns
|
|
20
|
+
|
|
21
|
+
URL | audit/device/time | observed issue or score | evidence | suggested action
|
|
22
|
+
|
|
23
|
+
Discover URLs, then audit selected pages individually. Each tasks array contains exactly one page. Check task-level success and retain run/device context. Lighthouse is a laboratory measurement, not field Core Web Vitals or an automatic whole-site audit.
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# 网站质量与性能审计:证据简报
|
|
2
|
+
|
|
3
|
+
使用 `list_sitemap_urls`, `inspect_page`, `run_lighthouse` 的已有输出。先用已采集证据,超过已批准范围的开销需另行确认;撰写本简报无需新增请求。
|
|
4
|
+
|
|
5
|
+
## 交付结构
|
|
6
|
+
|
|
7
|
+
1. 问题、平台或地区、采集日期与样本范围。
|
|
8
|
+
2. 带来源的观察值表,保留标识及缺失字段。
|
|
9
|
+
3. 三到五项有证据支持的观察,明确区分假设与事实。
|
|
10
|
+
4. 局限与未解决问题,不用小样本推断总体规模。
|
|
11
|
+
5. 下一步及所需的具体新增数据。
|
|
12
|
+
|
|
13
|
+
内容草稿只使用已确认的产品事实并保持原创;评论中的意见不是已核实产品承诺。写作及本地导出由客户端控制。
|
|
14
|
+
|
|
15
|
+
## 领域边界
|
|
16
|
+
|
|
17
|
+
先发现URL,再逐页检查。tasks数组只允许一个页面,需检查任务级状态并保留运行环境。Lighthouse是实验室测量,不是真实用户Core Web Vitals,也不自动审计全站。
|
|
18
|
+
|
|
19
|
+
## 领域报告列
|
|
20
|
+
|
|
21
|
+
URL | audit/device/time | observed issue or score | evidence | suggested action
|
|
22
|
+
|
|
23
|
+
先发现URL,再逐页检查。tasks数组只允许一个页面,需检查任务级状态并保留运行环境。Lighthouse是实验室测量,不是真实用户Core Web Vitals,也不自动审计全站。
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
# Website Quality Audit: research
|
|
2
|
+
|
|
3
|
+
1. Clarify the question, supplied identifiers, marketplace or jurisdiction, dates, sample limits and spending cap.
|
|
4
|
+
2. Inspect the relevant tools: `list_sitemap_urls`, `inspect_page`, `run_lighthouse`. Select only the calls needed for this question.
|
|
5
|
+
3. Run the discovery tool when available, or ask for the exact identifier required by a lookup. Inspect actual records before reusing an ID or URL. Never substitute account, content and product identifiers for one another.
|
|
6
|
+
4. Request one page or record at a time. Carry a cursor only into the same tool and query context. Do not infer additional input parameters from response metadata.
|
|
7
|
+
5. Compare like-for-like records. Keep source links, dates, sample counts and unavailable fields. Use supplied materials without new calls when the user requests it.
|
|
8
|
+
6. Produce a sourced comparison table and an observation-led brief. The client model performs all analysis and writes local CSV/Markdown only when it has file tools.
|
|
9
|
+
|
|
10
|
+
## Evidence table
|
|
11
|
+
|
|
12
|
+
| Record / source link | Identifier | Collected / source date | Observed facts | Missing fields | Research implication |
|
|
13
|
+
| --- | --- | --- | --- | --- | --- |
|
|
14
|
+
|
|
15
|
+
## Stop conditions
|
|
16
|
+
|
|
17
|
+
Stop on missing required input, an unaffordable quote, an uncertain execution or a mismatched identifier. Do not retry to conceal an empty or partial sample. Request missing inputs or use the general OpenAny catalog for capabilities outside this package.
|
|
18
|
+
|
|
19
|
+
## Package scope
|
|
20
|
+
|
|
21
|
+
Discover sitemap URLs and inspect individual pages with technical and Lighthouse audit data.
|
|
22
|
+
|
|
23
|
+
Discover URLs, then audit selected pages individually. Each tasks array contains exactly one page. Check task-level success and retain run/device context. Lighthouse is a laboratory measurement, not field Core Web Vitals or an automatic whole-site audit.
|
|
24
|
+
|
|
25
|
+
## Task-specific method
|
|
26
|
+
|
|
27
|
+
Start with list_sitemap_urls only when URL discovery is needed. Pick one relevant returned URL and pass a one-item tasks array separately to inspect_page and run_lighthouse. Inspect task-level status before extracting findings. Separate technical checks, laboratory scores and your recommendations.
|
|
28
|
+
|
|
29
|
+
URL | audit/device/time | observed issue or score | evidence | suggested action
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# 网站质量与性能审计:调研
|
|
2
|
+
|
|
3
|
+
1. 明确问题、用户提供的标识、平台或地区、时间范围、样本数量和预算。
|
|
4
|
+
2. 检查相关工具:`list_sitemap_urls`, `inspect_page`, `run_lighthouse`。仅选择本次任务需要的调用。
|
|
5
|
+
3. 有搜索工具时先发现记录;详情查询需要准确标识。读取实际结果后再复用 ID 或 URL,账号、内容和商品标识不能混用。
|
|
6
|
+
4. 每次只请求一个页面或一条记录。游标只在相同工具和查询条件下复用,不从返回元数据推导未提供的输入参数。
|
|
7
|
+
5. 同口径比较,保留来源链接、日期、样本量和缺失字段。用户要求仅用已有材料时不发起新调用。
|
|
8
|
+
6. 生成带来源的比较表与简报;分析和写作由客户端模型完成,CSV/Markdown 导出需要客户端文件工具。
|
|
9
|
+
|
|
10
|
+
## 证据表
|
|
11
|
+
|
|
12
|
+
| 记录 / 来源链接 | 标识 | 采集 / 来源日期 | 观察事实 | 缺失字段 | 调研启示 |
|
|
13
|
+
| --- | --- | --- | --- | --- | --- |
|
|
14
|
+
|
|
15
|
+
## 停止条件
|
|
16
|
+
|
|
17
|
+
缺少必填输入、报价超预算、执行状态不明或对象标识不匹配时停止。不要重试来掩盖空样本或部分结果。补充输入或通过 OpenAny 通用目录查找包外能力。
|
|
18
|
+
|
|
19
|
+
## 本包边界
|
|
20
|
+
|
|
21
|
+
先发现URL,再逐页检查。tasks数组只允许一个页面,需检查任务级状态并保留运行环境。Lighthouse是实验室测量,不是真实用户Core Web Vitals,也不自动审计全站。
|
|
22
|
+
|
|
23
|
+
## 本领域方法
|
|
24
|
+
|
|
25
|
+
需要发现URL时先用list_sitemap_urls,从实际结果选一个相关URL,分别以单元素tasks数组调用inspect_page和run_lighthouse。先核对任务级状态,再提取发现;技术检查、实验室评分与建议分开。
|
|
26
|
+
|
|
27
|
+
URL | audit/device/time | observed issue or score | evidence | suggested action
|
package/src/config.js
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { readFile } from 'node:fs/promises';
|
|
2
|
+
|
|
3
|
+
export async function loadDefinition(root = new URL('../', import.meta.url)) {
|
|
4
|
+
const read = async path => {
|
|
5
|
+
const text = await readFile(new URL(path, root), 'utf8');
|
|
6
|
+
if (!text.trim()) throw new Error(`Empty bundled asset: ${path}`);
|
|
7
|
+
return text;
|
|
8
|
+
};
|
|
9
|
+
const manifest = JSON.parse(await read('package.json'));
|
|
10
|
+
const config = JSON.parse(await read('vertical.config.json'));
|
|
11
|
+
if (config.packageName !== manifest.name || !manifest.version || !config.instructions?.trim() ||
|
|
12
|
+
!Array.isArray(config.bindings) || !config.bindings.length ||
|
|
13
|
+
new Set(config.bindings.map(x => x.name)).size !== config.bindings.length ||
|
|
14
|
+
!Array.isArray(config.workflows) || !config.workflows.length) throw new Error('Invalid bundled configuration.');
|
|
15
|
+
const commonRules = {};
|
|
16
|
+
for (const language of ['zh', 'en']) {
|
|
17
|
+
const path = `workflows/common.${language}.md`;
|
|
18
|
+
if (config.commonRules?.[language] !== path) throw new Error('Invalid common guide path.');
|
|
19
|
+
commonRules[language] = await read(path);
|
|
20
|
+
}
|
|
21
|
+
const ids = new Set(), filenames = new Set(['common']), workflows = [];
|
|
22
|
+
for (const item of config.workflows) {
|
|
23
|
+
const filename = String(item.id).replaceAll('_', '-');
|
|
24
|
+
if (!/^[a-z][a-z0-9_-]{0,63}$/.test(item.id) || filenames.has(filename) || ids.has(item.id) || !item.version) throw new Error('Invalid workflow.');
|
|
25
|
+
ids.add(item.id);
|
|
26
|
+
filenames.add(filename);
|
|
27
|
+
const instructions = {};
|
|
28
|
+
for (const language of ['zh', 'en']) {
|
|
29
|
+
const path = `workflows/${filename}.${language}.md`;
|
|
30
|
+
if (item.files?.[language] !== path) throw new Error('Invalid workflow path.');
|
|
31
|
+
instructions[language] = await read(path);
|
|
32
|
+
}
|
|
33
|
+
workflows.push({ id: item.id, version: item.version, instructions });
|
|
34
|
+
}
|
|
35
|
+
return { bindings: config.bindings, workflows, commonRules, instructions: config.instructions,
|
|
36
|
+
serverInfo: { name: manifest.name, version: manifest.version } };
|
|
37
|
+
}
|
package/src/server.js
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { createClient } from '@openanysi/openany-core';
|
|
2
|
+
import { createMcpServer, startStdioServer } from '@openanysi/openany-core/mcp';
|
|
3
|
+
import { loadDefinition } from './config.js';
|
|
4
|
+
|
|
5
|
+
export async function createServer({ clientOptions = {}, stdio = false } = {}) {
|
|
6
|
+
const { bindings, serverInfo, instructions, workflows, commonRules } = await loadDefinition();
|
|
7
|
+
const client = createClient({ ...clientOptions, bindings });
|
|
8
|
+
let server;
|
|
9
|
+
try {
|
|
10
|
+
const options = { ...serverInfo, instructions, workflows, commonRules };
|
|
11
|
+
server = stdio ? await startStdioServer(client, options) : createMcpServer(client, options);
|
|
12
|
+
} catch (error) { await client.close(); throw error; }
|
|
13
|
+
let closing;
|
|
14
|
+
const close = () => closing ??= Promise.resolve().then(async () => {
|
|
15
|
+
try { await server.close(); } finally { await client.close(); }
|
|
16
|
+
});
|
|
17
|
+
return { client, server, close };
|
|
18
|
+
}
|