@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
package/CONTRIBUTING.md
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
# Contributing
|
|
2
|
+
|
|
3
|
+
Use Node.js 22 or later. In the monorepo, install dependencies from the repository root and select the relevant workspace:
|
|
4
|
+
|
|
5
|
+
```sh
|
|
6
|
+
npm ci --ignore-scripts
|
|
7
|
+
npm test --workspace @openanysi/<slug>
|
|
8
|
+
npm run check --workspace @openanysi/<slug>
|
|
9
|
+
npm run smoke:package --workspace @openanysi/<slug>
|
|
10
|
+
```
|
|
11
|
+
|
|
12
|
+
Replace `<slug>` with the package's actual name. The monorepo uses `packages/*` and a shared root lockfile; do not generate a child lockfile or initialize Git inside each package. For a standalone checkout, run the package's scripts without `--workspace`. Package smoke verifies the governing lockfile and manifest files remain unchanged.
|
|
13
|
+
|
|
14
|
+
## Runtime and tool changes
|
|
15
|
+
|
|
16
|
+
The package maps atomic tools to current OpenAny API contracts through the shared SDK. Keep credentials, contract versions, transport, error handling and referrals in that SDK. Read the installed SDK's exports and types before changing integration code; inspect its installed version with `npm ls @openanysi/openany-core`.
|
|
17
|
+
|
|
18
|
+
Update the tool configuration, contract fixtures, relevant guides and public tool table together. Preserve required inputs and input mappings. The client controls combinations, sampling, each page, analysis and export. A replacement API with a different output scope needs an explicit tool/guide change.
|
|
19
|
+
|
|
20
|
+
## Guides and optional companion Skills
|
|
21
|
+
|
|
22
|
+
Maintain both English and Chinese task guides. When a companion Skill is included, keep its references and generated MCP guides synchronized using the package's declared commands; otherwise edit the bundled guides directly. Do not document a command that the package does not provide. A bundled Skill is optional and does not automatically connect an MCP.
|
|
23
|
+
|
|
24
|
+
Check the current runtime's actual workflow-language default. English examples should explicitly select `language: "en"`. Updating prose does not change a runtime default.
|
|
25
|
+
|
|
26
|
+
## Public documentation
|
|
27
|
+
|
|
28
|
+
Keep the README focused on tasks, setup, tool parameters and one short Limitations & Billing section. Use supplier-neutral copy. Put implementation instructions here and private test results outside public-facing documentation. Keep genuine source and billing evidence available for maintainers without presenting it as marketing copy.
|
|
29
|
+
|
|
30
|
+
Use unversioned scoped npx examples and credential placeholders. Link to OpenAny key setup and current pricing. Separate utility-only no-key trials from paid data prompts. README relative links must exist in the npm tarball; use absolute public URLs for repository-only material.
|
|
31
|
+
|
|
32
|
+
## Verification and packaging
|
|
33
|
+
|
|
34
|
+
Local tests use captured contracts and clearly synthetic business responses. They verify protocol behavior and mapping; they do not establish supplier availability. Real calls require the task's existing authorization and private credentials. Preserve unknown outcomes and check original request IDs before another paid request. Do not replay calls for timing samples.
|
|
35
|
+
|
|
36
|
+
Package smoke installs a temporary tarball outside the checkout. It checks assets, documentation links, startup and guides without making paid business calls. If offline dependency metadata is missing, prepare an isolated npm cache rather than changing the user's default cache or bypassing checks.
|
|
37
|
+
|
|
38
|
+
Run anonymous live or public-release checks only when the package provides the relevant command or the authoring toolkit is available. Record exact versions and results privately. A local tarball test, registry check, npm-page render and real provider read are separate evidence.
|
|
39
|
+
|
|
40
|
+
## Release
|
|
41
|
+
|
|
42
|
+
Review package name, version, bin, dependency source, license, tarball contents and README. Preserve fixed dependency versions in package metadata without repeating them in public copy. npm README content changes with a new published version; a Git push alone does not refresh it.
|
|
43
|
+
|
|
44
|
+
Complete local checks and obtain approval for the specific package and version before publishing. Keep publishing credentials in private process configuration, outside the repository and tarball. After publishing, verify the exact public registry version, packaged documentation and a clean public installation, then update the release tracker with actual results. A staged version or an incomplete registry verification remains pending. If tracker writeback fails, retry that step without publishing the package again.
|
|
45
|
+
|
|
46
|
+
From the monorepo root, publish only the approved package with `npm publish --workspace @openanysi/<slug> --access public`. The private root package is not a release artifact. Keep `repository.directory` set to `packages/<slug>` and avoid publishing unrelated workspaces.
|
|
47
|
+
|
|
48
|
+
## Companion Skill
|
|
49
|
+
|
|
50
|
+
Edit the canonical files in `workflows/`, then run `npm run sync:skill` in this workspace. `npm run check` verifies that the packaged companion references match those canonical files. Keep user keys and business verification records outside the package.
|
package/LICENSE
ADDED
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work
|
|
38
|
+
(an example is provided in the Appendix below).
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and Derivative Works thereof.
|
|
47
|
+
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original version of the Work and any modifications or additions
|
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
+
|
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
+
subsequently incorporated within the Work.
|
|
65
|
+
|
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
|
72
|
+
|
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
+
where such license applies only to those patent claims licensable
|
|
79
|
+
by such Contributor that are necessarily infringed by their
|
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
+
institute patent litigation against any entity (including a
|
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
+
or contributory patent infringement, then any patent licenses
|
|
86
|
+
granted to You under this License for that Work shall terminate
|
|
87
|
+
as of the date such litigation is filed.
|
|
88
|
+
|
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
+
modifications, and in Source or Object form, provided that You
|
|
92
|
+
meet the following conditions:
|
|
93
|
+
|
|
94
|
+
(a) You must give any other recipients of the Work or
|
|
95
|
+
Derivative Works a copy of this License; and
|
|
96
|
+
|
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
|
98
|
+
stating that You changed the files; and
|
|
99
|
+
|
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
|
102
|
+
attribution notices from the Source form of the Work,
|
|
103
|
+
excluding those notices that do not pertain to any part of
|
|
104
|
+
the Derivative Works; and
|
|
105
|
+
|
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
|
108
|
+
include a readable copy of the attribution notices contained
|
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
|
111
|
+
of the following places: within a NOTICE text file distributed
|
|
112
|
+
as part of the Derivative Works; within the Source form or
|
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
|
114
|
+
within a display generated by the Derivative Works, if and
|
|
115
|
+
wherever such third-party notices normally appear. The contents
|
|
116
|
+
of the NOTICE file are for informational purposes only and
|
|
117
|
+
do not modify the License. You may add Your own attribution
|
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
+
that such additional attribution notices cannot be construed
|
|
121
|
+
as modifying the License.
|
|
122
|
+
|
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
|
124
|
+
may provide additional or different license terms and conditions
|
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
+
the conditions stated in this License.
|
|
129
|
+
|
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
+
this License, without any additional terms or conditions.
|
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
+
the terms of any separate license agreement you may have executed
|
|
136
|
+
with Licensor regarding such Contributions.
|
|
137
|
+
|
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
+
except as required for reasonable and customary use in describing the
|
|
141
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
+
|
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
|
152
|
+
|
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
|
158
|
+
incidental, or consequential damages of any character arising as a
|
|
159
|
+
result of this License or out of the use or inability to use the
|
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
+
other commercial damages or losses), even if such Contributor
|
|
163
|
+
has been advised of the possibility of such damages.
|
|
164
|
+
|
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
+
or other liability obligations and/or rights consistent with this
|
|
169
|
+
License. However, in accepting such obligations, You may act only
|
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
+
of your accepting any such warranty or additional liability.
|
|
175
|
+
|
|
176
|
+
END OF TERMS AND CONDITIONS
|
|
177
|
+
|
|
178
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
179
|
+
|
|
180
|
+
To apply the Apache License to your work, attach the following
|
|
181
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
182
|
+
replaced with your own identifying information. (Don't include
|
|
183
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
184
|
+
comment syntax for the file format. We also recommend that a
|
|
185
|
+
file or class name and description of purpose be included on the
|
|
186
|
+
same "printed page" as the copyright notice for easier
|
|
187
|
+
identification within third-party archives.
|
|
188
|
+
|
|
189
|
+
Copyright [yyyy] [name of copyright owner]
|
|
190
|
+
|
|
191
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
|
+
you may not use this file except in compliance with the License.
|
|
193
|
+
You may obtain a copy of the License at
|
|
194
|
+
|
|
195
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
196
|
+
|
|
197
|
+
Unless required by applicable law or agreed to in writing, software
|
|
198
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
199
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
200
|
+
See the License for the specific language governing permissions and
|
|
201
|
+
limitations under the License.
|
package/README.md
CHANGED
|
@@ -1,3 +1,219 @@
|
|
|
1
|
-
#
|
|
1
|
+
# website-quality-audit-mcp: Website Quality Audit MCP
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
MCP 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/).
|
|
4
|
+
|
|
5
|
+
[](https://www.npmjs.com/package/@openanysi/website-quality-audit-mcp)
|
|
6
|
+
[](LICENSE)
|
|
7
|
+
[](https://nodejs.org/)
|
|
8
|
+
|
|
9
|
+
English | [简体中文](docs/README.zh-CN.md)
|
|
10
|
+
|
|
11
|
+
## Overview
|
|
12
|
+
|
|
13
|
+
Discover 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.
|
|
14
|
+
|
|
15
|
+
**Best For / Not For**
|
|
16
|
+
|
|
17
|
+
- **Best For:** sourced comparisons within the supported platform and task scope.
|
|
18
|
+
- **Best For:** turning available records into an evidence table and research brief in Claude, Cursor or another MCP client.
|
|
19
|
+
- **Best For:** analyzing supplied outputs without additional data calls.
|
|
20
|
+
- **Not For:** account automation, publishing, purchases or hidden multi-request workflows.
|
|
21
|
+
- **Not For:** complete population statistics or claims unsupported by the collected sample.
|
|
22
|
+
|
|
23
|
+
## Table of Contents
|
|
24
|
+
|
|
25
|
+
- [Quick Start](#quick-start)
|
|
26
|
+
- [Key Features](#key-features)
|
|
27
|
+
- [Example Prompts](#example-prompts)
|
|
28
|
+
- [Why website-quality-audit-mcp?](#why-website-quality-audit-mcp)
|
|
29
|
+
- [What You Can Build & Deliver](#what-you-can-build--deliver)
|
|
30
|
+
- [Tools Reference](#tools-reference)
|
|
31
|
+
- [Built-in Workflow Guides](#built-in-workflow-guides)
|
|
32
|
+
- [End-to-End Example](#end-to-end-example)
|
|
33
|
+
- [FAQ](#faq)
|
|
34
|
+
- [Error Handling & Retries](#error-handling--retries)
|
|
35
|
+
- [Scope, Data & Billing Notes](#scope-data--billing-notes)
|
|
36
|
+
- [Development](#development)
|
|
37
|
+
- [About OpenAny](#about-openany)
|
|
38
|
+
- [License](#license)
|
|
39
|
+
|
|
40
|
+
## Quick Start
|
|
41
|
+
|
|
42
|
+
### Prerequisites
|
|
43
|
+
|
|
44
|
+
- Node.js 22+ and a client supporting local `stdio` MCP servers.
|
|
45
|
+
- 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).
|
|
46
|
+
- Utility tools work without a key.
|
|
47
|
+
|
|
48
|
+
### Configure Your Client
|
|
49
|
+
|
|
50
|
+
For clients using `mcpServers`, add this to private settings. Other hosts register the same command, arguments and environment through their MCP settings or CLI.
|
|
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
|
+
Store `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.
|
|
70
|
+
|
|
71
|
+
### Verify It Works
|
|
72
|
+
|
|
73
|
+
- **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.
|
|
74
|
+
- **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.
|
|
75
|
+
|
|
76
|
+
## Key Features
|
|
77
|
+
|
|
78
|
+
- 3 atomic tools for the operations listed below.
|
|
79
|
+
- Current parameters and prices available through `get_tool_info`.
|
|
80
|
+
- Two English/Chinese workflow guides for research and evidence briefs.
|
|
81
|
+
- A packaged optional companion Skill using the same guide texts.
|
|
82
|
+
- Client-controlled pagination, comparisons and supported CSV/Markdown exports.
|
|
83
|
+
- Broader capability discovery through the OpenAny catalog.
|
|
84
|
+
|
|
85
|
+
## Example Prompts
|
|
86
|
+
|
|
87
|
+
- "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."
|
|
88
|
+
- "Compare the records returned by the relevant tools; keep identifiers, dates and missing values."
|
|
89
|
+
- "Turn the collected sample into an evidence brief. Separate observations from hypotheses."
|
|
90
|
+
- "Use only the results I provide. Make no new data calls; organize them into a comparison table."
|
|
91
|
+
|
|
92
|
+
## Why website-quality-audit-mcp?
|
|
93
|
+
|
|
94
|
+
| What You Care About | How We Handle It | Value to You |
|
|
95
|
+
| --- | --- | --- |
|
|
96
|
+
| Focused scope | Read-only tools for one research domain | A small, inspectable tool set |
|
|
97
|
+
| Spending control | Read current pricing before individual requests | Explicit decisions about each paid call |
|
|
98
|
+
| Evidence quality | Preserve source records and sample limits | Reviewable comparisons and briefs |
|
|
99
|
+
| Flexible reporting | Your client performs analysis and writing | Use your chosen model and file tools |
|
|
100
|
+
|
|
101
|
+
## What You Can Build & Deliver
|
|
102
|
+
|
|
103
|
+
| Use Case | How the Agent Runs It | Typical Deliverables |
|
|
104
|
+
| --- | --- | --- |
|
|
105
|
+
| Source collection | Select the relevant tools and request a bounded sample | Linked evidence table |
|
|
106
|
+
| Comparative research | Compare matching records and their scope | Comparison table with missing fields |
|
|
107
|
+
| Evidence brief | Load `evidence_brief` and analyze existing outputs | Markdown brief and next questions |
|
|
108
|
+
|
|
109
|
+
## Tools Reference
|
|
110
|
+
|
|
111
|
+
The 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.
|
|
112
|
+
|
|
113
|
+
### Data Tools
|
|
114
|
+
|
|
115
|
+
| Tool | Parameters | Behavior | Typical Returned Fields |
|
|
116
|
+
| --- | --- | --- | --- |
|
|
117
|
+
| `list_sitemap_urls` | `url` (string, required); `type` (string, optional; sitemap, all) | Discover sitemap URLs | `links`; provider-dependent; optional fields may be absent. |
|
|
118
|
+
| `inspect_page` | `tasks` (array, required) | Inspect one page | `url`, `status_code`, `onpage_score`, `checks`, `meta`, `page_timing`; provider-dependent; optional fields may be absent. |
|
|
119
|
+
| `run_lighthouse` | `tasks` (array, required) | Run one Lighthouse audit | `requestedUrl`, `finalUrl`, `categories`, `audits`, `fetchTime`; provider-dependent; optional fields may be absent. |
|
|
120
|
+
|
|
121
|
+
Responses 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.
|
|
122
|
+
|
|
123
|
+
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.
|
|
124
|
+
|
|
125
|
+
Each audit `tasks` array must contain exactly one item with a non-empty `url`.
|
|
126
|
+
|
|
127
|
+
`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`.
|
|
128
|
+
|
|
129
|
+
### Utility Tools (Free, No API Key Required)
|
|
130
|
+
|
|
131
|
+
| Tool | Parameters | Behavior |
|
|
132
|
+
| --- | --- | --- |
|
|
133
|
+
| `get_tool_info` | Required `tool_name` from the data-tool names above | Read current parameters, pricing and limits |
|
|
134
|
+
| `get_workflow` | Required `workflow`; optional `language` (`zh` or `en`, default `zh`) | Return a guide; use `language: "en"` for English |
|
|
135
|
+
| `search_openany_capabilities` | Required `query` (1-256 characters); optional `limit` (1-10, default 5) | Search related capabilities without executing them |
|
|
136
|
+
|
|
137
|
+
## Built-in Workflow Guides
|
|
138
|
+
|
|
139
|
+
`get_workflow` returns instructions and templates for your client. It makes no data or model call and does not itself generate a report.
|
|
140
|
+
|
|
141
|
+
| Guide ID | Best For | What It Provides |
|
|
142
|
+
| --- | --- | --- |
|
|
143
|
+
| `research` | Planning and collecting a scoped sample | Call selection, identifier checks and an evidence-table template |
|
|
144
|
+
| `evidence_brief` | Reporting from collected or supplied records | Sourced findings, gaps and next questions |
|
|
145
|
+
|
|
146
|
+
### Companion Skill (Optional)
|
|
147
|
+
|
|
148
|
+
The [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.
|
|
149
|
+
|
|
150
|
+
## End-to-End Example
|
|
151
|
+
|
|
152
|
+
**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."
|
|
153
|
+
|
|
154
|
+
**How the Agent Executes:**
|
|
155
|
+
|
|
156
|
+
1. Load `research` with `language: "en"` and clarify the question, identifiers and budget.
|
|
157
|
+
2. Inspect `get_tool_info` for each selected data tool.
|
|
158
|
+
3. Make the approved individual calls. Reuse identifiers only after inspecting the actual returned records.
|
|
159
|
+
4. Preserve sources and missing fields, then load `evidence_brief` to summarize observations and hypotheses.
|
|
160
|
+
5. Write Markdown or CSV locally if the client provides file tools.
|
|
161
|
+
|
|
162
|
+
## FAQ
|
|
163
|
+
|
|
164
|
+
### How much does website-quality-audit-mcp cost?
|
|
165
|
+
|
|
166
|
+
The 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.
|
|
167
|
+
|
|
168
|
+
### Does it work with Cursor, Claude Desktop and Claude Code?
|
|
169
|
+
|
|
170
|
+
Yes, 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.
|
|
171
|
+
|
|
172
|
+
### Can I try it without an API key?
|
|
173
|
+
|
|
174
|
+
Yes. Use the three utility tools to read parameters, guides and capability candidates. Data requests require `OPENANY_API_KEY`.
|
|
175
|
+
|
|
176
|
+
### Does the MCP write the final report?
|
|
177
|
+
|
|
178
|
+
Your client agent writes the report. `get_workflow` supplies instructions and a template; data tools supply the evidence.
|
|
179
|
+
|
|
180
|
+
### Does it paginate or retry automatically?
|
|
181
|
+
|
|
182
|
+
No. The client selects each subsequent page, and uncertain requests are not replayed automatically. Keep cursors within their original operation and query context.
|
|
183
|
+
|
|
184
|
+
### What if I need another capability?
|
|
185
|
+
|
|
186
|
+
Use `search_openany_capabilities` or connect the general [OpenAny MCP](https://mcp.openany.si/). Discovery does not automatically execute or install another service.
|
|
187
|
+
|
|
188
|
+
### How should I handle timeouts?
|
|
189
|
+
|
|
190
|
+
Keep the request ID and check the original outcome before another call. A missing final response does not prove that the request was uncharged.
|
|
191
|
+
|
|
192
|
+
## Error Handling & Retries
|
|
193
|
+
|
|
194
|
+
| Execution State | Typical Indicators | Billed? | Safe to Retry? |
|
|
195
|
+
| --- | --- | --- | --- |
|
|
196
|
+
| **Failed** | Input or credential rejection before dispatch | No | After correcting the input |
|
|
197
|
+
| **Succeeded** | Returned business data | According to the selected API's billing rule | Do not resubmit the same request |
|
|
198
|
+
| **Uncertain / Timeout** | Final result was not received | Unknown | Check the original request first |
|
|
199
|
+
|
|
200
|
+
## Scope, Data & Billing Notes
|
|
201
|
+
|
|
202
|
+
- **Execution & Billing:** Each call is inspected and executed separately. Empty results may incur a charge when the selected rule applies.
|
|
203
|
+
- **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.
|
|
204
|
+
- **Reporting Standards:** Separate source data, observations, hypotheses and drafts. Mark unavailable facts as unknown.
|
|
205
|
+
- **Network & Privacy:** The server runs locally; catalog queries and business inputs are sent to OpenAny.
|
|
206
|
+
|
|
207
|
+
## Development
|
|
208
|
+
|
|
209
|
+
See [CONTRIBUTING.md](CONTRIBUTING.md) for setup, verification and guide maintenance.
|
|
210
|
+
|
|
211
|
+
## About OpenAny
|
|
212
|
+
|
|
213
|
+
[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.
|
|
214
|
+
|
|
215
|
+
Discover additional capabilities with `search_openany_capabilities` or connect the general [OpenAny MCP](https://mcp.openany.si/).
|
|
216
|
+
|
|
217
|
+
## License
|
|
218
|
+
|
|
219
|
+
[Apache-2.0](LICENSE)
|
package/bin/server.js
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import { createServer } from '../src/server.js';
|
|
3
|
+
|
|
4
|
+
try {
|
|
5
|
+
const handle = await createServer({ stdio: true });
|
|
6
|
+
const shutdown = () => {
|
|
7
|
+
void handle.close().catch(() => {
|
|
8
|
+
process.stderr.write('MCP shutdown failed.\n');
|
|
9
|
+
process.exitCode = 1;
|
|
10
|
+
});
|
|
11
|
+
};
|
|
12
|
+
process.once('SIGINT', shutdown);
|
|
13
|
+
process.once('SIGTERM', shutdown);
|
|
14
|
+
handle.server.server.onclose = shutdown;
|
|
15
|
+
} catch {
|
|
16
|
+
process.stderr.write('MCP startup failed; check the package assets and supported Node.js version.\n');
|
|
17
|
+
process.exitCode = 1;
|
|
18
|
+
}
|