agent-ready-scanner

中文文档
0.6.2发布于 2026/11/03MITES Module零依赖

Command-line client for Agent Ready — scan any URL for AI-readability against the Vercel Agent Readability Spec, the llmstxt.org standard, and agent-protocol manifests. Wraps the agent-ready.dev REST API.

原始使用文档
文档目录14 节
  1. Install
  2. Authentication
  3. Commands
  4. scan <url>
  5. get <id>
  6. list
  7. ask <query...>
  8. mcp-scan <endpoint>
  9. validate-schema <url|->
  10. Global options
  11. Environment variables
  12. Exit codes
  13. Development
  14. License

agent-ready-scanner

Command-line client for Agent Ready — scan any URL for AI-agent readability against the Vercel Agent Readability Spec, the llmstxt.org standard, and agent-protocol manifests (MCP server cards, A2A, agents.json, agent-permissions.json, UCP, x402, NLWeb), plus a separate accessibility sub-score (WCAG 2.2 / layout stability).

It's a thin wrapper over the hosted agent-ready.dev REST API — no scanning happens locally. For tool-native access from an AI assistant, see agent-ready-mcp instead.

Install

npm install -g agent-ready-scanner

This installs the agent-ready command. Or run without installing:

npx agent-ready-scanner scan https://example.com

Why agent-ready-scanner? The bare agent-ready name is blocked by npm's package-name similarity policy (it collides with an unrelated agentready package). The installed command is still agent-ready.

Requires Node.js ≥ 20.10.

Authentication

scan works without a key on the free anonymous tier — 3 scans per 30 days per IP, at 25-page depth:

npx agent-ready-scanner scan https://example.com   # no key, no account

A Pro API key unlocks 50 scans/month, 250-page depth, scan history (get, list), and weekly monitoring. Issue one from the dashboard, then either:

export AGENT_READY_API_KEY="ar_live_..."
# or pass per-command:
agent-ready scan https://example.com --api-key ar_live_...

ask, mcp-scan, and validate-schema are public and need no key.

Commands

scan <url>

Starts a scan, waits for it to finish, and prints a readability summary. Keyless runs use the anonymous free tier (synchronous, 25 pages); with a Pro key the scan runs on the deeper authenticated pipeline with polling.

agent-ready scan https://example.com
agent-ready scan https://example.com --page-limit 25
agent-ready scan https://example.com --no-wait      # queue only, print the id
agent-ready scan https://example.com --json         # raw JSON
OptionDescription
--page-limit <n>Max pages to crawl
--no-waitQueue the scan and print its id without polling
--poll-interval <s>Seconds between status polls (default 2)
--timeout <s>Max seconds to wait for completion (default 120)

get <id>

Fetch a scan by id (e.g. one started earlier with --no-wait).

agent-ready get V1StGXR8_Z
agent-ready get V1StGXR8_Z --json

list

List your recent scans, newest first.

agent-ready list
agent-ready list --limit 5
agent-ready list --cursor 2026-05-30T00:00:00.000Z   # next page

ask <query...>

Natural-language search over Agent Ready's own docs (methodology, the check registry, supported specs). Public — no API key.

agent-ready ask "how is the score calculated?"
agent-ready ask "what does check S4 do?" --type checks
agent-ready ask "summarize the llms.txt requirements" --mode summarize

mcp-scan <endpoint>

Connect to a live, remotely-hosted MCP server and grade its tools, resources, and prompts against MCP best practices — returns a 0–100 MCP quality score with a fix for each issue. Public — no API key. Great for CI (e.g. fail a build when your server scores below a threshold). Remote http(s) endpoints only.

agent-ready mcp-scan https://mcp.example.com/mcp
agent-ready mcp-scan https://mcp.example.com/mcp --json

validate-schema <url|->

Validate a page's JSON-LD structured data — schema lint plus the agent-coherence checks the first-party validators (validator.schema.org, Rich Results Test) don't do (freshness honesty, canonical/.md coherence, entity-name consistency, extraction signal). Pass a URL to fetch and validate, or - to read a JSON-LD string from stdin (paste mode — handy for validating JSON-LD an agent just wrote, no deploy needed). Public — no API key. Exits non-zero when any check fails, so it drops into CI.

agent-ready validate-schema https://example.com/product
cat page.jsonld | agent-ready validate-schema -
echo '{"@context":"https://schema.org","@type":"Product","name":"X"}' \
  | agent-ready validate-schema - --json

Global options

OptionDescription
--jsonOutput raw JSON instead of formatted text
--api-key <key>Override AGENT_READY_API_KEY
--base-url <url>Override AGENT_READY_API_URL (e.g. for local dev)
--no-colorDisable coloured output (NO_COLOR is also honoured)
-h, --helpShow help
-v, --versionShow version

Environment variables

VariableDefaultPurpose
AGENT_READY_API_KEY—Pro API key — required for get/list, optional for scan (keyless runs on the anonymous tier)
AGENT_READY_API_URLhttps://agent-ready.devAPI base URL
AGENT_READY_SCAN_TIMEOUT_MS120000Overall scan wait budget
AGENT_READY_GET_TIMEOUT_MS10000Per-request timeout

Exit codes

CodeMeaning
0Success
1API error, scan failed, or scan timed out
2Usage error (bad arguments)

--json output goes to stdout; progress and errors go to stderr, so you can safely pipe JSON into other tools.

Development

npm install
npm test          # vitest
npm run typecheck # tsc --noEmit
npm run build     # bundle to dist/cli.mjs

License

MIT © Agent Ready

版本与发布记录

agent-ready-scanner 共发布 12 个版本,首次发布于 2026/05/31;过去 12 个月发布了 12 个版本。

版本发布日期距今
0.6.2latest2026/11/03今天
0.6.12026/07/313 个月前
0.6.02026/07/273 个月前
0.5.22026/07/203 个月前
0.5.12026/07/203 个月前
0.5.02026/07/183 个月前

关于 agent-ready-scanner 的常见问题

agent-ready-scanner 是什么?

代理就绪的命令行客户端-扫描任何URL的ai可读性针对Vercel代理可读性规范,llmstxt.org标准,和代理协议清单。包装agent-ready.dev REST API。

如何安装 agent-ready-scanner?

在项目目录运行 npm install agent-ready-scanner,或使用 pnpm add / yarn add / bun add。它还提供命令行工具 agent-ready,可以用 npx agent-ready 直接运行。

agent-ready-scanner 支持 TypeScript 吗?

该包的 package.json 没有声明类型入口。需要类型提示时,可以在 npm 上查找社区维护的 @types/agent-ready-scanner 是否存在。

agent-ready-scanner 支持 ESM 还是 CommonJS?

以 ES Module 形式发布,推荐使用 import 引入。在 CommonJS 项目中,Node.js 20.19+ / 22.12+ 可以直接 require() 不含顶层 await 的 ES Module,更早的版本需要改用动态 import()。

agent-ready-scanner 需要什么版本的 Node.js?

package.json 的 engines 字段要求 Node.js >=20.10。版本不符时 npm 默认只给出警告,开启 engine-strict 后会拒绝安装。

agent-ready-scanner 可以商用吗?

agent-ready-scanner 使用 MIT 许可。宽松许可:允许商业使用、修改和再分发,通常只需在分发时保留原版权与许可声明。以上为概括,不构成法律意见,请以许可原文为准。

agent-ready-scanner 还在维护吗?

最新版本 0.6.2 发布于 2026/11/03(今天);至今共发布 12 个版本,其中过去 12 个月发布了 12 个;首次发布于 2026/05/31。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。