agent-ready is a TypeScript-first CLI and library for scanning agent-readiness signals and scaffolding framework-specific machine-readable endpoints.
- Scans live sites against an agent-readiness surface modeled on
isitagentready.com - Inspects local projects with framework-aware path and route conventions
- Scaffolds agent-facing files and endpoints for supported JavaScript/TypeScript frameworks
- Supports CI-friendly exit behavior with score and status thresholds
npm install @stefkec/agent-readyOr run it directly:
npx @stefkec/agent-ready scan https://example.com# Scan a live site
agent-ready scan <url>
# Scan a local project
agent-ready doctor [cwd]
# Scaffold agent-ready endpoints (auto-detects framework)
agent-ready init [--interactive] [--framework <name>] [--preset <name>] [--features <list>]
# Add a single feature
agent-ready add <feature> [--interactive]
# Show check documentation
agent-ready explain <check>
# List available options
agent-ready --list-features
agent-ready --list-frameworks
agent-ready --list-checks| Flag | Description |
|---|---|
--format human|json|markdown |
Output format (default: human) |
--json |
Shorthand for --format json |
--interactive |
Scan first, then prompt for your real site details before scaffolding |
--min-score <n> |
Fail with exit code 1 if score is below n |
--fail-on-status <list> |
Fail if any check matches the given statuses (comma-separated) |
--report-file <path> |
Write output to a file in addition to stdout |
--cwd <path> |
Target a specific directory |
--dry-run |
Preview scaffold without writing files |
--preset content-site|application |
Feature preset for init |
--features <list> |
Explicit feature list (overrides preset) |
Scan a live site:
agent-ready scan https://anyvan.comInteractive scaffold — scans first, asks for your details:
agent-ready init --interactiveScan a live site and fail CI on low score:
agent-ready scan https://example.com --min-score 80 --fail-on-status failWrite a JSON or Markdown report artifact:
agent-ready doctor --format json --report-file ./reports/agent-ready.json
agent-ready doctor --format markdown --report-file ./reports/agent-ready.mdInspect a local project:
agent-ready doctorScaffold an application-style project:
agent-ready init --framework express --preset applicationAdd only an MCP server card:
agent-ready add mcpSupported config files:
agent-ready.config.jsonagent-ready.config.mjsagent-ready.config.cjs
Example:
{
"defaults": {
"output": "human"
},
"scan": {
"minScore": 80,
"failOnStatuses": ["warn", "fail"]
},
"doctor": {
"minScore": 75,
"failOnStatuses": ["fail", "error"]
},
"init": {
"framework": "next",
"preset": "content-site",
"features": ["api-catalog", "robots", "sitemap", "llms", "mcp"]
}
}Config is optional. CLI flags still take precedence.
content-siteIntended for marketing sites, docs sites, and content-heavy apps.applicationIntended for API-capable apps and authenticated products.
Default behavior:
next,astro,sveltekit,nuxt,vite-react, andvite-vuedefault tocontent-siteexpressandhonodefault toapplication
api-catalogrobotssitemapllmsmarkdownmcpagent-cardoauth-discoveryoauth-protected-resource
nextastrosveltekitexpresshononuxtvite-reactvite-vue
All 8 frameworks have native scaffold support with framework-appropriate route handlers, static files, or dev server plugins.
| Category | Checks |
|---|---|
| Discoverability | robots.txt, Sitemap, Link Headers |
| Content Accessibility | Markdown Negotiation |
| Bot Access Control | AI Bot Rules, Content Signals, Web Bot Auth |
| Discovery | API Catalog, MCP Server Card, A2A Agent Card, Agent Skills, WebMCP, OAuth Discovery, OAuth Protected Resource |
| Commerce | x402, MPP, UCP, ACP |
import { scanSite, scaffoldProject, scanProject } from "agent-ready";
const report = await scanSite({ url: "https://example.com" });
const local = await scanProject({ cwd: process.cwd() });
await scaffoldProject({
cwd: process.cwd(),
framework: "next",
features: ["api-catalog", "robots", "llms", "mcp"]
});npx agent-ready doctor --min-score 80 --fail-on-status fail,errornpx agent-ready scan https://example.com --min-score 85 --fail-on-status warn,fail,errornpm install
npm run check
npm run test
npm run build