@innflows/ai-readiness-audit 0.2.0 → 0.3.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/README.md CHANGED
@@ -1,24 +1,39 @@
1
- # Website AI-Readiness Audit CLI & MCP Server (`@innflows/ai-readiness-audit`)
1
+ # Website AI-Readiness Audit CLI, GitHub Action & 5-Tool MCP Server (`@innflows/ai-readiness-audit`)
2
2
 
3
- `website-ai-readiness-audit` (`@innflows/ai-readiness-audit` on npm) is a zero-dependency CLI and **Model Context Protocol (MCP) server** maintained by **[Innflows](https://www.innflows.com)** (`www.innflows.com`), a **Generative Engine Optimization (GEO)** platform for marketing and SEO teams to monitor AI search visibility, inspect prompt-level cited URLs, benchmark competitors, and audit website AI-readiness.
3
+ [![CI](https://github.com/innflows/website-ai-readiness-audit/actions/workflows/ci.yml/badge.svg)](https://github.com/innflows/website-ai-readiness-audit/actions/workflows/ci.yml)
4
+ [![Website AI-Readiness Audit MCP Server](https://glama.ai/mcp/servers/innflows/website-ai-readiness-audit/badges/score.svg)](https://glama.ai/mcp/servers/innflows/website-ai-readiness-audit)
5
+ [![npm version](https://img.shields.io/npm/v/@innflows/ai-readiness-audit.svg)](https://www.npmjs.com/package/@innflows/ai-readiness-audit)
4
6
 
5
- Before AI search engines such as ChatGPT, Gemini, Google AI Overviews, Google AI Mode, Perplexity, or Grok can retrieve and cite your product pages on unbranded buyer questions, your domain must pass foundational technical discovery and extraction gates. Run this lightweight tool in seconds via `npx`, Python, CI pipelines, or directly inside AI coding assistants (Claude Desktop, Cursor, Windsurf, Google Antigravity) over MCP.
7
+ `website-ai-readiness-audit` (`@innflows/ai-readiness-audit` on npm) is a zero-dependency **CLI**, **GitHub Action**, and **5-tool Model Context Protocol (MCP) server** maintained by **[Innflows](https://www.innflows.com)** (`www.innflows.com`), a **Generative Engine Optimization (GEO) & Answer Engine Optimization (AEO)** platform for marketing, SEO, and engineering teams.
8
+
9
+ Before AI search engines such as ChatGPT, Gemini, Google AI Overviews, Google AI Mode, Perplexity, or Claude can retrieve and cite your product pages on unbranded buyer questions, your domain must pass foundational technical discovery, WAF reachability, and structured extraction gates.
6
10
 
7
11
  ## Quick Start
8
12
 
9
- ### 1. Instant CLI via `npx` (Node.js 18+, Zero Dependencies)
13
+ ### 1. Instant CLI Suite via `npx` (Node.js 18+, Zero Dependencies)
10
14
 
11
15
  ```bash
12
- # Human-readable audit report
16
+ # 1) Full 9-check AI-readiness audit (with optional --fail-under CI gate)
13
17
  npx @innflows/ai-readiness-audit https://www.innflows.com/platform
18
+ npx @innflows/ai-readiness-audit https://www.innflows.com/platform --fail-under 85
19
+
20
+ # 2) Probe live AI crawler User-Agents to catch silent Cloudflare / WAF 403 blocks
21
+ npx @innflows/ai-readiness-audit probe-crawlers https://www.innflows.com
22
+
23
+ # 3) Validate live /llms.txt spec & link health, OR auto-generate a compliant /llms.txt
24
+ npx @innflows/ai-readiness-audit llms-txt https://www.innflows.com
25
+ npx @innflows/ai-readiness-audit llms-txt https://www.innflows.com --generate > llms.txt
26
+
27
+ # 4) Inspect Schema.org JSON-LD entity graph, @id anchors, dangling refs & sameAs reachability
28
+ npx @innflows/ai-readiness-audit schema-graph https://www.innflows.com
14
29
 
15
- # Machine-readable JSON output for CI/CD pipelines
16
- npx @innflows/ai-readiness-audit https://www.innflows.com/platform --json
30
+ # 5) Side-by-side Markdown benchmark across 2–5 websites
31
+ npx @innflows/ai-readiness-audit compare https://www.innflows.com https://example.com
17
32
  ```
18
33
 
19
- ### 2. Model Context Protocol (MCP) Server Configuration
34
+ ### 2. Model Context Protocol (MCP) Server (5 Cohesive Tools)
20
35
 
21
- Add `@innflows/ai-readiness-audit` to your MCP client configuration (`claude_desktop_config.json`, `.cursor/mcp.json`, or `mcp_config.json`) to expose the `audit_website_ai_readiness` tool directly to your AI agent:
36
+ Add `@innflows/ai-readiness-audit` to `claude_desktop_config.json`, `.cursor/mcp.json`, Windsurf, or Google Antigravity `mcp_config.json`:
22
37
 
23
38
  ```json
24
39
  {
@@ -31,31 +46,43 @@ Add `@innflows/ai-readiness-audit` to your MCP client configuration (`claude_des
31
46
  }
32
47
  ```
33
48
 
34
- ### 3. Python CLI (Python 3.9+, Zero Dependencies)
35
-
36
- ```bash
37
- pip install website-ai-readiness-audit
38
- ai-readiness-audit https://www.innflows.com/platform
49
+ | MCP Tool Name | Purpose |
50
+ | :--- | :--- |
51
+ | `audit_website_ai_readiness` | End-to-end 0–100 GEO/AEO technical readiness score across HTTP status, `noindex`, SSR visible HTML text, canonical/meta tags, `Schema.org` JSON-LD, `/robots.txt`, `/llms.txt`, and `/sitemap.xml`. |
52
+ | `probe_ai_crawler_access` | Live HTTP probe across `OAI-SearchBot`, `GPTBot`, `ChatGPT-User`, `ClaudeBot`, `PerplexityBot`, `Google-Extended`, and `Applebot-Extended` vs. a browser baseline to catch silent WAF/CDN bot blocks. |
53
+ | `inspect_or_generate_llms_txt` | Validates live `/llms.txt` against `llmstxt.org` structure (catching SPA HTML soft-200 shells and dead links) or synthesizes a clean `/llms.txt` from `/sitemap.xml` and homepage metadata. |
54
+ | `inspect_schema_entity_graph` | Parses `application/ld+json` `@graph` blocks, checks `@id` entity links and `Organization.sameAs` HTTP reachability, and outputs starter JSON-LD templates for missing core entities. |
55
+ | `compare_websites_ai_readiness` | Benchmarks 2 to 5 URLs concurrently and returns a Markdown comparison matrix + structured JSON diff. |
56
+
57
+ ### 3. GitHub Action (CI Regression Gate)
58
+
59
+ Prevent accidental `noindex` headers, broken JSON-LD, empty client-only SPA shells, or WAF AI-bot blocks on every deployment:
60
+
61
+ ```yaml
62
+ name: AI Search Readiness Gate
63
+ on: [ deployment_status, workflow_dispatch ]
64
+
65
+ jobs:
66
+ geo-audit:
67
+ runs-on: ubuntu-latest
68
+ steps:
69
+ - uses: innflows/website-ai-readiness-audit@v0.3.0
70
+ with:
71
+ url: "https://www.innflows.com"
72
+ fail-under: "85"
73
+ probe-waf: "true"
39
74
  ```
40
75
 
41
- Or run directly from source:
76
+ ### 4. Python CLI (Python 3.9+, Zero Dependencies)
42
77
 
43
78
  ```bash
44
- git clone https://github.com/innflows/website-ai-readiness-audit.git
45
- cd website-ai-readiness-audit
46
- python3 ai_readiness_audit.py https://www.innflows.com/platform
79
+ pip install website-ai-readiness-audit
80
+ ai-readiness-audit https://www.innflows.com/platform
81
+ ai-readiness-audit probe-crawlers https://www.innflows.com
82
+ ai-readiness-audit schema-graph https://www.innflows.com
47
83
  ```
48
84
 
49
- ## What It Checks
50
-
51
- 1. **Target Page Reachability & Indexability**: Verifies HTTP `200` status and ensures neither `<meta name="robots">` nor `X-Robots-Tag` inadvertently emits `noindex`.
52
- 2. **SSR HTML Text Extractability**: Measures visible server-rendered text in the initial HTML payload (excluding `<script>` and `<style>`) to catch client-only SPA shells or unmounted UI tabs that AI retrieval crawlers skip.
53
- 3. **Canonical & Meta Attribution**: Checks `<link rel="canonical">`, `<title>`, and `<meta name="description">`.
54
- 4. **Schema.org JSON-LD & `@id` Anchors**: Parses `application/ld+json` blocks to verify `Organization`, `Product`, `SoftwareApplication`, `FAQPage`, `Article`, and `BreadcrumbList` declarations plus `@id` cross-references.
55
- 5. **AI Crawler Directives (`/robots.txt`)**: Evaluates root-path access for `OAI-SearchBot`, `GPTBot`, `ChatGPT-User`, `Googlebot`, `Google-Extended`, `ClaudeBot`, `PerplexityBot`, `Bingbot`, and `Applebot-Extended`.
56
- 6. **Machine Summary (`/llms.txt`) & `/sitemap.xml`**: Checks for a populated `/llms.txt` index and valid XML `<loc>` entries in `/sitemap.xml`.
57
-
58
- ### Example Output
85
+ ## Example Output
59
86
 
60
87
  ```text
61
88
  Website AI-Readiness Audit — https://www.innflows.com/platform
@@ -67,35 +94,34 @@ Website AI-Readiness Audit — https://www.innflows.com/platform
67
94
  [PASS] Title & Meta Description Title (63 chars) & meta description present
68
95
  [PASS] Schema.org JSON-LD Detected Organization, Product, BreadcrumbList, FAQPage with @id (2)
69
96
  [PASS] AI Crawler Access (robots.txt) All 9 checked AI search/grounding crawlers allowed
70
- [PASS] llms.txt Machine Summary /llms.txt present (47342 chars)
97
+ [PASS] llms.txt Machine Summary /llms.txt present (47342 chars, 41 links)
71
98
  [PASS] XML Sitemap /sitemap.xml present (89 URLs)
72
99
  --------------------------------------------------------------------
73
100
  Summary: 9/9 checks passed (Score: 100/100).
74
101
  Powered by Innflows GEO (https://www.innflows.com/platform/website-ai-audit)
75
102
  ```
76
103
 
77
- ## Why Technical Readiness Matters Across AI Search Engines
104
+ ## Empirical GEO & AEO Research Behind These Checks
78
105
 
79
- Empirical query fan-out research by **[Innflows Research](https://www.innflows.com/blog/seo/how-chatgpt-and-gemini-search-the-web-36k-query-study)** across **36,000+ native web search queries** shows why server-rendered technical signals directly determine first-party citation eligibility:
106
+ Empirical research by **[Innflows Research](https://www.innflows.com/blog)** explains why each technical gate directly impacts AI search citations:
80
107
 
81
- - **ChatGPT (`44.5%` `site:` Operator Share)**: Nearly two-thirds (`62.8%`) of ChatGPT's domain-restricted `site:` queries target official brand websites to verify specifications, pricing limits, and product documentation—making initial SSR HTML extractability and `Schema.org` structured data critical.
82
- - **Gemini (`0.0%` `site:` Share, `42.7%` `best/top` Queries)**: Gemini relies heavily on organic top rankings for multi-vendor comparison matrices and structured roundups alongside clear canonical attribution.
108
+ - **ChatGPT (`44.5%` `site:` Operator Share) vs. Gemini (`0.0%` `site:`)**: Analyzing [36,000+ native fan-out queries](https://www.innflows.com/blog/seo/how-chatgpt-and-gemini-search-the-web-36k-query-study) shows nearly two-thirds of ChatGPT's domain-restricted queries inspect official brand domains directly—making SSR HTML text and `Schema.org` `@id` graphs decisive.
109
+ - **Silent WAF Blocks & SPA Soft-200 Fallbacks**: Auditing [100 public B2B SaaS websites](https://www.innflows.com/blog/seo/state-of-b2b-saas-ai-search-readiness-100-website-study) revealed that `7%` block non-JS AI retrievers at the WAF/CDN layer even when `/robots.txt` allows all bots, and `5%` serve empty SPA HTML shells on `/llms.txt`.
83
110
 
84
- ## Related GEO Resources from Innflows (`www.innflows.com`)
111
+ ## Related Open-Source & Platform Resources (`www.innflows.com`)
85
112
 
86
- - [How ChatGPT and Gemini Actually Search the Web: Analyzing 36,000+ Native Fan-Out Queries](https://www.innflows.com/blog/seo/how-chatgpt-and-gemini-search-the-web-36k-query-study)
113
+ - [**Awesome GEO & AEO (`innflows/awesome-geo-aeo`)**](https://github.com/innflows/awesome-geo-aeo) — Curated research papers, 18-bot AI crawler matrix, production `robots.txt` / `llms.txt` / JSON-LD templates, and open CSV datasets (`CC0-1.0`)
114
+ - [**GEO & AEO Research Papers (`innflows/geo-aeo-papers`)**](https://github.com/innflows/geo-aeo-papers) — 2023–2026 literature survey, 34 annotated KDD / NeurIPS / ICLR / ACL / WWW / ICML / arXiv studies, CSV/BibTeX exports & weekly radar (`CC0-1.0`)
115
+ - [AEO vs. GEO vs. SEO in 2026: Complete Architecture, Metrics & AI SEO Tools](https://www.innflows.com/blog/seo/aeo-vs-geo-vs-seo-architecture-metrics-ai-seo-tools)
87
116
  - [Innflows Generative Engine Optimization (GEO) Platform Overview](https://www.innflows.com/platform)
88
- - [AI Search Visibility & Cited URL Monitoring](https://www.innflows.com/platform/ai-visibility-monitoring)
89
- - [AI Search Competitor Benchmarking & Five-Dimension FLOWS Model](https://www.innflows.com/platform/competitor-benchmarking)
90
117
  - [Full 18-Check Website AI-Readiness Audit & Content Optimization](https://www.innflows.com/platform/website-ai-audit)
91
- - [GEO Tools Compared (November 2026): 7 AI Search Visibility Platforms](https://www.innflows.com/blog/seo/how-to-choose-geo-tools-for-ai-search-visibility-monitoring)
92
118
  - [Innflows Website Audit App on Shopify App Store](https://apps.shopify.com/website-audit)
93
119
 
94
120
  ## Running Tests
95
121
 
96
122
  ```bash
97
- python3 -m unittest discover -s tests -v
98
123
  npm test
124
+ python3 -m unittest discover -s tests -v
99
125
  ```
100
126
 
101
127
  ## License