# lighthouse-mcp-server - Doramagic AI Context Pack

> Positioning: a pre-install experience and judgment asset. It helps the host AI get off to a good start, but it does not mean the project has already been installed, run, or validated.

## Sufficiency Principle

- **Sufficiency over compression**: The AI Context Pack should be sufficient for the host AI to understand the project's value, capability boundaries, entrypoints, risks, and evidence sources before starting work; it may be layered, but it does not aim for the shortest possible summary.
- **Compression policy**: Compress only noise and duplication, never context that affects judgment or the quality of the work.

## How the Host AI Should Use This

You are reading the AI Context Pack that Doramagic compiled for lighthouse-mcp-server. Treat it as pre-work context: help the user understand who it fits, what it can do, how to start, what must be verified after install, and where the risks are. Do not claim that you have already installed, run, or executed the target project.

## Claim Consumption Rules

- **Fact source**: Repo Evidence + Claim/Evidence Graph; the Human Wiki only supplies salience, terminology, and narrative structure.
- **Minimum status for a fact**: `supported`
- `supported`: May be used as a project fact, but the answer must cite the claim_id and evidence path.
- `weak`: Usable only as a low-confidence lead; the user must be asked to keep verifying.
- `inferred`: Usable only for risk notes or open questions; must not be packaged as a project fact.
- `unverified`: Must not be used as fact; state clearly that evidence is insufficient.
- `contradicted`: Must show the conflicting sources and must not force a single version on the user's behalf.

## Who It Fits Best

- **Developers already using host AIs such as Claude/Codex/Cursor/Gemini**: The README or plugin config mentions multiple host AIs. Evidence: `README.md` Claim: `clm_0002` supported 0.86

## What It Can Do

- **Command-Line Startup or Install Flow** (Verify after install): The project documentation contains runnable commands; real use requires running them in a local or host environment. Evidence: `README.md` Claim: `clm_0001` supported 0.86

## How to Start

- `npx @danielsogl/lighthouse-mcp@latest --chrome-path /usr/bin/google-chrome` Evidence: `README.md` Claim: `clm_0003` supported 0.86

## Continue-or-Stop Decision Card

- **Current recommendation**: Sandbox-trial permissions first
- **Why**: The project has signals of install commands, host configuration, or local writes; do not go straight into your primary environment—trial it in isolation first.

### 30-Second Read

- **What to do now**: Sandbox-trial permissions first
- **Minimum safe next step**: Run Prompt Preview first; if you still want to install, trial only in an isolated environment
- **Do not trust yet**: Tool permission boundaries cannot be trusted before install.
- **Continuing will touch**: Command execution, Local environment or project files, Host AI context

### What You Can Trust Now

- **Target-audience signal: Developers already using host AIs such as Claude/Codex/Cursor/Gemini** (supported): Backed by a supported claim or project evidence, but that still is not the same as real install results. Evidence: `README.md` Claim: `clm_0002` supported 0.86
- **Capability exists: Command-Line Startup or Install Flow** (supported): You can trust that the project contains signals of this capability; whether it fits your specific task still needs trial or after-install verification. Evidence: `README.md` Claim: `clm_0001` supported 0.86
- **There are Quick Start / install-command signals** (supported): You can trust that the docs mention a startup or install entrypoint; do not run it directly in your primary environment because of that. Evidence: `README.md` Claim: `clm_0003` supported 0.86

### What You Cannot Trust Yet

- **Tool permission boundaries cannot be trusted before install.** (unverified): MCP/tool projects usually touch files, the network, the browser, or external APIs, so permissions and logs must be checked for real.
- **Real output quality cannot be trusted before install.** (unverified): Prompt Preview can only show how it guides you; it cannot prove result quality in the real project.
- **Host AI version compatibility cannot be trusted before install.** (unverified): Host loading rules and version differences across Claude, Cursor, Codex, Gemini, and others must be verified in a real environment.
- **That it will not pollute your existing host AI's behavior cannot be trusted directly.** (inferred): Skill, plugin, and AGENTS/CLAUDE/GEMINI instructions may change the host AI's default behavior.
- **Safe rollback cannot be assumed by default.** (unverified): Unless the project clearly provides uninstall and recovery instructions, verify in an isolated environment first.
- **After a real install, is it compatible with the user's current host AI version?** (unverified): Compatibility can only be verified in the actual host environment.
- **Does the project's output quality meet the user's specific task?** (unverified): The pre-install preview can only show flow and boundaries; it cannot replace real evaluation.
- **Do the install commands require network access, permissions, or global writes?** (unverified): This affects install risk in both enterprise and personal environments. Evidence: `README.md`

### What Continuing Will Touch

- **Command execution**: Package managers, network downloads, the local plugin directory, project config, or the user's home directory. Why: Running the very first command can already change your environment; decide whether it is worth running first. Evidence: `README.md`
- **Local environment or project files**: Install results, plugin caches, project config, or local dependency directories. Why: The write scope and rollback path cannot be proven before install and need isolated verification. Evidence: `README.md`
- **Host AI context**: The AI Context Pack, Prompt Preview, Skill routing, risk rules, and project facts. Why: Importing context affects the host AI's later judgment, so avoid packaging unverified items as facts.

### Minimum Safe Next Steps

- **Run Prompt Preview first**: Use a pre-install interactive trial to judge whether the way of working fits; it needs no authorization or environment change. (applies when: Applies to any project, especially when output quality is unknown.)
- **Trial-install only in an isolated directory or a test account**: Avoid letting install commands pollute your primary host AI, real projects, or home directory. (applies when: When there are signals of command execution, plugin config, or local writes.)
- **After install, verify just one minimal task**: Verify loading, compatibility, output quality, and rollback first, then decide whether to use it deeply. (applies when: When moving from a trial into a real workflow.)

### Exit Plan

- **Preserve the pre-install state**: Record the original host config and project state so you can later judge whether it is recoverable.
- **Record the install commands and written paths**: Without clear uninstall instructions, you at least need to know which directories or configs to clean up manually.
- **If there is no rollback path, do not enter your primary environment**: No rollback is a blocker before continuing; do not proceed on trust or luck.

## What Can Only Be Previewed

- Explain who the project fits and what it can do
- Demonstrate a typical conversation flow based on project docs
- Help the user decide whether it is worth installing or researching further

## What Must Be Verified After Install

- Actually installing the Skill, plugin, or CLI
- Running scripts, modifying local files, or accessing external services
- Verifying real output quality, performance, and compatibility

## Boundary & Risk Decision Card

- **Mistaking the pre-install preview for a real run**: The user may overestimate how much configuration, permission, and compatibility verification the project has already done. Mitigation: Clearly separate prompt_preview_can_do from runtime_required. Claim: `clm_0004` inferred 0.45
- **Command execution will modify the local environment**: Install commands may write to the user's home directory, the host plugin directory, or project configuration. Mitigation: Run in an isolated environment or a test account first. Evidence: `README.md` Claim: `clm_0005` supported 0.86
- **To confirm**: After a real install, is it compatible with the user's current host AI version?. Why: Compatibility can only be verified in the actual host environment.
- **To confirm**: Does the project's output quality meet the user's specific task?. Why: The pre-install preview can only show flow and boundaries; it cannot replace real evaluation.
- **To confirm**: Do the install commands require network access, permissions, or global writes?. Why: This affects install risk in both enterprise and personal environments.

## Pre-Work Working Context

### Loading Order

- First read how_to_use.host_ai_instruction to establish the boundaries of this pre-install judgment asset.
- Read claim_graph_summary to confirm facts come from the Claim/Evidence Graph, not the Human Wiki narrative.
- Then read intended_users, capabilities, and quick_start_candidates to judge whether the user is a match.
- When you need to carry out a concrete task, check role_skill_index first, then evidence_index.
- For real install, file modification, network access, performance, or compatibility questions, turn to risk_card and boundaries.runtime_required.

### Task Routes

- **Command-Line Startup or Install Flow**: State that this is an after-install capability first, then give a pre-install checklist. Boundary: Must be verified after a real install or run. Evidence: `README.md` Claim: `clm_0001` supported 0.86

### Context Scale

- Total files: 48
- Important-file coverage: 40/48
- Evidence index entries: 40
- Role / Skill entries: 3

### Handling Insufficient Evidence

- **missing_evidence**: State that evidence is insufficient and ask the user for the target file, a README section, or after-install verification records; do not fill in facts.
- **out_of_scope_request**: State that the task is beyond the current AI Context Pack's evidence scope and suggest the user check the Human Manual or verify after a real install.
- **runtime_request**: Provide a pre-install checklist and command sources, but do not run commands for the user or claim they have been run.
- **source_conflict**: Show the conflicting sources side by side, mark them as unverified, and do not force a single version.

## Prompt Recipes

### Fit assessment

- Goal: Judge whether this project fits the user's current task.
- Expected output: A fit conclusion, key reasons, evidence citations, what can be previewed before install, what must be verified after install, and a next-step recommendation.

```text
Based on the AI Context Pack for lighthouse-mcp-server, ask me 3 necessary questions first, then judge whether it fits my task. The answer must cover: who it fits, what it can do, what it cannot do, whether it is worth installing, and where the evidence comes from. Every project fact must cite evidence_refs, source_paths, or a claim_id.
```

### Pre-install experience

- Goal: Let the user feel the core workflow before installing, while avoiding packaging the preview as real capability or a marketing promise.
- Expected output: An experience script with boundary labels, an after-install verification checklist, and a cautious recommendation; with no real-run promises or strong marketing language.

```text
Treat lighthouse-mcp-server as a pre-install experience asset, not an already-installed tool or a real runtime environment.

Output exactly four parts:
1. Ask me 3 necessary questions first.
2. Give an "experience script": use the three labels [Previewable before install], [Must verify after install], and [Insufficient evidence] to show how it might guide the workflow.
3. Give an after-install verification checklist: list which capabilities can only be confirmed after a real install, real host loading, and a real project run.
4. Give a cautious recommendation: only "worth researching/trialing further", "add information before deciding", or "not recommended to continue"; do not endorse the project.

Hard boundaries:
- Do not claim you have installed, run, executed tests, modified files, or produced real results.
- Do not write promise-like phrasing such as "auto-adapts", "guarantees passing", "perfect fit", or "strongly recommend installing".
- If you describe how it works after install, you must use a conditional such as "if installed successfully and the host loads the Skill correctly, it might...".
- The experience script may only be written as "example lines / hypothetical flow": use "might ask / might suggest / might show", not "has written, has generated, has passed, is running, is generating".
- Prompt Preview does not hand out install commands; if the user is ready to trial, only prompt them to read Quick Start and the Risk Card first and to verify in an isolated environment.
- Every project fact must come from a supported claim, evidence_refs, or source_paths; inferred/unverified items can only be risks or open questions.

```

### Role / Skill selection

- Goal: Pick the best-matching asset from the project's roles or Skills.
- Expected output: A list of candidate roles or Skills, each with an applicable scenario, evidence paths, risk boundary, and whether after-install verification is needed.

```text
Read role_skill_index and recommend 3-5 of the most relevant roles or Skills for my target task. For each recommendation, state the applicable scenario, likely output, risk boundary, and evidence_refs.
```

### Risk pre-check

- Goal: Identify environment, permission, rule-conflict, and quality risks before installing or adopting.
- Expected output: A checklist of environment, permission, dependency, license, host-conflict, quality risk, and unknown items.

```text
Based on risk_card, boundaries, and quick_start_candidates, give me a pre-install risk pre-check list. Do not run commands for me; only explain what I should check, why, and what impact a failure would have.
```

### Host AI kickoff instruction

- Goal: Turn the project context into a host AI instruction for the start of a conversation.
- Expected output: A pre-work instruction with clear boundaries and clear evidence citations, suitable to copy to a host AI.

```text
Based on the AI Context Pack for lighthouse-mcp-server, generate a pre-work instruction I can paste to my host AI. This instruction must obey not_runtime=true and must not claim the project has been installed, run, or produced real results.
```

## Role / Skill Index

- Indexed 3 role / Skill / project-doc entries.

- **Lighthouse MCP Server** (project_doc): ! NPM Version https://img.shields.io/npm/v/@danielsogl/lighthouse-mcp?style=flat-square https://www.npmjs.com/package/@danielsogl/lighthouse-mcp ! License: MIT https://img.shields.io/badge/License-MIT-blue.svg?style=flat-square ./LICENSE ! Node Version https://img.shields.io/node/v/@danielsogl/lighthouse-mcp?style=flat-square https://nodejs.org ! CI https://img.shields.io/github/actions/workflow/status/danielsogl/li… Activation hint: Reference this when the user needs to understand the project's structure, install path, or boundaries. Evidence: `README.md`
- **Changelog** (project_doc): 1.5.0 https://github.com/danielsogl/lighthouse-mcp-server/compare/lighthouse-mcp-v1.4.0...lighthouse-mcp-v1.5.0 2026-04-05 Activation hint: Reference this when the user needs to understand the project's structure, install path, or boundaries. Evidence: `CHANGELOG.md`
- **Security Policy** (project_doc): Please do not report security vulnerabilities through public GitHub issues. Activation hint: Reference this when the user needs to understand the project's structure, install path, or boundaries. Evidence: `SECURITY.md`

## Evidence Index

- Indexed 40 evidence entries.

- **Lighthouse MCP Server** (documentation): ! NPM Version https://img.shields.io/npm/v/@danielsogl/lighthouse-mcp?style=flat-square https://www.npmjs.com/package/@danielsogl/lighthouse-mcp ! License: MIT https://img.shields.io/badge/License-MIT-blue.svg?style=flat-square ./LICENSE ! Node Version https://img.shields.io/node/v/@danielsogl/lighthouse-mcp?style=flat-square https://nodejs.org ! CI https://img.shields.io/github/actions/workflow/status/danielsogl/lighthouse-mcp-server/ci.yml?branch=main&style=flat-square https://github.com/danielsogl/lighthouse-mcp-server/actions ! Coverage https://img.shields.io/codecov/c/github/danielsogl/lighthouse-mcp-server?style=flat-square https://codecov.io/gh/danielsogl/lighthouse-mcp-server ! Spon… Evidence: `README.md`
- **Package** (package_manifest): { "name": "@danielsogl/lighthouse-mcp", "version": "1.5.0", "description": "A comprehensive Model Context Protocol MCP server that provides web performance auditing, accessibility testing, SEO analysis, security assessment, and Core Web Vitals monitoring using Google Lighthouse. Enables LLMs and AI agents to perform detailed website analysis with 13+ specialized tools.", "main": "dist/index.js", "bin": { "lighthouse-mcp-server": "dist/index.js" }, "publishConfig": { "access": "public" }, "scripts": { "build": "tsc", "start": "node dist/index.js", "dev": "tsx src/index.ts", "prepare": "is-ci husky", "prepublishOnly": "npm run build", "lint": "eslint .", "lint:fix": "eslint . --fix", "test":… Evidence: `package.json`
- **License** (source_file): Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files the "Software" , to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: Evidence: `LICENSE`
- **Smoke Profile** (source_file): import { parseArgs } from "node:util"; import { parseCliArgs } from "../src/cli.js"; import { setChromeLaunchConfig } from "../src/chrome-config.js"; import { runLighthouseAudit } from "../src/lighthouse-core.js"; ⋮---- type Device = "desktop" "mobile"; ⋮---- type SmokeOptions = { url?: string; device?: Device; categories?: string ; throttling?: boolean; }; ⋮---- async function main ⋮---- function parseSmokeArgs argv: string : SmokeOptions ⋮---- function printUsage Evidence: `scripts/smoke-profile.ts`
- **Chrome Config** (source_file): import { existsSync, mkdirSync } from "node:fs"; import { CHROME FLAGS } from "./lighthouse-constants.js"; ⋮---- export type ChromeLaunchConfig = { headless?: boolean; userDataDir?: string; profileDirectory?: string; remoteDebuggingPort?: number; extraChromeFlags?: string ; chromePath?: string; }; ⋮---- export function setChromeLaunchConfig config: ChromeLaunchConfig ⋮---- export function getChromeLaunchConfig : ChromeLaunchConfig ⋮---- export function buildChromeFlags config: ChromeLaunchConfig : string ⋮---- export function buildChromeLaunchOptions config: ChromeLaunchConfig ⋮---- export function getChromeLaunchOptions ⋮---- export function isProfileConfig config: ChromeLaunchConfig ⋮----… Evidence: `src/chrome-config.ts`
- **Cli** (source_file): import { parseArgs } from "node:util"; import { basename, dirname } from "node:path"; import { ChromeLaunchConfig } from "./chrome-config.js"; ⋮---- export function parseCliArgs argv: string : ChromeLaunchConfig ⋮---- function parsePort value: unknown : number undefined Evidence: `src/cli.ts`
- **Index** (source_file): import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js"; import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js"; import { registerAuditTools, registerPerformanceTools, registerAnalysisTools, registerSecurityTools, } from "./tools/index.js"; import { registerPrompts } from "./prompts.js"; import { registerResources } from "./resources.js"; import { readFileSync } from "fs"; import { join, dirname } from "path"; import { fileURLToPath } from "url"; import { parseCliArgs } from "./cli.js"; import { setChromeLaunchConfig } from "./chrome-config.js"; ⋮---- async function main Evidence: `src/index.ts`
- **Lighthouse Analysis** (source_file): import { runRawLighthouseAudit } from "./lighthouse-core.js"; import { SECURITY AUDITS, DEFAULTS } from "./lighthouse-constants.js"; ⋮---- export async function findUnusedJavaScript url: string, device: "desktop" "mobile" = "desktop", minBytes = DEFAULTS.MIN UNUSED JS BYTES, ⋮---- function categorizeResourceType item: Record : string ⋮---- export async function analyzeResources url: string, device: "desktop" "mobile" = "desktop", resourceTypes?: string , minSize = DEFAULTS.MIN RESOURCE SIZE KB, ⋮---- export async function getSecurityAudit url: string, device: "desktop" "mobile" = "desktop", checks?: string Evidence: `src/lighthouse-analysis.ts`
- **Lighthouse Core** (source_file): import lighthouse from "lighthouse"; ⋮---- import { LighthouseResult, LighthouseAuditResult } from "./types.js"; import { SCREEN DIMENSIONS, THROTTLING CONFIG, KEY METRICS } from "./lighthouse-constants.js"; import { getChromeLaunchConfig, getChromeLaunchOptions, isProfileConfig } from "./chrome-config.js"; ⋮---- async function withRemoteDebuggingLock runAudit: = Promise : Promise ⋮---- export async function launchChrome ⋮---- export function getScreenEmulation device: "desktop" "mobile" ⋮---- export function buildLighthouseOptions port: number, device: "desktop" "mobile", categories?: string , throttling = false, disableStorageReset = false, ⋮---- export async function runRawLighthouseAudi… Evidence: `src/lighthouse-core.ts`
- **Lighthouse Performance** (source_file): import { runLighthouseAudit, runRawLighthouseAudit } from "./lighthouse-core.js"; import { BUDGET METRIC MAPPINGS, LCP OPPORTUNITIES, DEFAULTS } from "./lighthouse-constants.js"; ⋮---- export async function getPerformanceScore url: string, device: "desktop" "mobile" = "desktop" ⋮---- export async function getCoreWebVitals url: string, device: "desktop" "mobile" = "desktop", threshold?: { lcp?: number; fid?: number; cls?: number }, ⋮---- export async function compareMobileDesktop url: string, categories?: string , throttling = false ⋮---- export async function checkPerformanceBudget url: string, device: "desktop" "mobile" = "desktop", budget: { performanceScore?: number; firstContentfulPaint… Evidence: `src/lighthouse-performance.ts`
- **Prompts** (source_file): import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js"; import { z } from "zod"; ⋮---- export function registerPrompts server: McpServer Evidence: `src/prompts.ts`
- **Resources** (source_file): import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js"; ⋮---- export function registerResources server: McpServer Evidence: `src/resources.ts`
- **Schemas** (source_file): import { z } from "zod"; Evidence: `src/schemas.ts`
- **Types** (source_file): export interface LighthouseCategory { title: string; score: number; description: string; auditRefs?: Array ; } ⋮---- export interface LighthouseAudit { title: string; description?: string; numericValue?: number; displayValue?: string; score: number null; scoreDisplayMode?: string; details?: { items?: Record ; key: string : unknown; }; } ⋮---- export interface LighthouseResult { lhr: { finalDisplayedUrl: string; fetchTime: string; lighthouseVersion: string; userAgent: string; categories: Record ; audits: Record ; }; } ⋮---- export interface LighthouseAuditResult { url: string; fetchTime: string; version: string; userAgent: string; device: string; categories: Record ; metrics: Record ; } Evidence: `src/types.ts`
- **Analysis** (source_file): import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js"; import { resourceAnalysisSchema, unusedJavaScriptSchema } from "../schemas.js"; import { findUnusedJavaScript, analyzeResources } from "../lighthouse-analysis.js"; ⋮---- function createStructuredAnalysis title: string, data: Record , summary?: string ⋮---- export function registerAnalysisTools server: McpServer Evidence: `src/tools/analysis.ts`
- **Audit** (source_file): import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js"; import { runLighthouseAudit } from "../lighthouse-core.js"; import { getAccessibilityScore, getSeoAnalysis, checkPwaReadiness } from "../lighthouse-categories.js"; import { auditParamsSchema, detailedAuditSchema } from "../schemas.js"; ⋮---- interface StructuredResponse { summary: string; data: Record ; recommendations?: string ; } ⋮---- function createStructuredAudit type: string, url: string, device: string, data: Record , recommendations?: string , : StructuredResponse ⋮---- export function registerAuditTools server: McpServer Evidence: `src/tools/audit.ts`
- **Performance** (source_file): import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js"; import { basicAuditSchema, coreWebVitalsSchema, compareDevicesSchema, performanceBudgetSchema, lcpOpportunitiesSchema, } from "../schemas.js"; import { getPerformanceScore, getCoreWebVitals, compareMobileDesktop, checkPerformanceBudget, getLcpOpportunities, } from "../lighthouse-performance.js"; ⋮---- interface StructuredResponse { summary: string; data: Record ; recommendations?: string ; } ⋮---- function createStructuredPerformance type: string, url: string, device: string, data: Record , recommendations?: string , : StructuredResponse ⋮---- export function registerPerformanceTools server: McpServer Evidence: `src/tools/performance.ts`
- **Security** (source_file): import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js"; import { securityAuditSchema } from "../schemas.js"; import { getSecurityAudit } from "../lighthouse-analysis.js"; ⋮---- interface StructuredResponse { summary: string; data: Record ; recommendations?: string ; } ⋮---- function createStructuredSecurity type: string, url: string, device: string, data: Record , recommendations?: string , : StructuredResponse ⋮---- export function registerSecurityTools server: McpServer Evidence: `src/tools/security.ts`
- **Changelog** (documentation): 1.5.0 https://github.com/danielsogl/lighthouse-mcp-server/compare/lighthouse-mcp-v1.4.0...lighthouse-mcp-v1.5.0 2026-04-05 Evidence: `CHANGELOG.md`
- **Security Policy** (documentation): Please do not report security vulnerabilities through public GitHub issues. Evidence: `SECURITY.md`
- **.Prettierrc** (structured_config): { "semi": true, "singleQuote": false, "tabWidth": 2, "trailingComma": "all", "printWidth": 120 } Evidence: `.prettierrc.json`
- **.Release Please Manifest** (structured_config): { ".": "1.5.0" } Evidence: `.release-please-manifest.json`
- **Release Please Config** (structured_config): { "$schema": "https://raw.githubusercontent.com/googleapis/release-please/main/schemas/config.json", "packages": { ".": { "release-type": "node", "package-name": "@danielsogl/lighthouse-mcp", "bump-minor-pre-major": false, "bump-patch-for-minor-pre-major": false, "draft": false, "prerelease": false, "initial-version": "1.0.0", "changelog-sections": { "type": "feat", "section": "Features" }, { "type": "fix", "section": "Bug Fixes" }, { "type": "chore", "section": "Miscellaneous Chores", "hidden": false }, { "type": "docs", "section": "Documentation" }, { "type": "style", "section": "Styles", "hidden": true }, { "type": "refactor", "section": "Code Refactoring" }, { "type": "perf", "section":… Evidence: `release-please-config.json`
- **Renovate** (structured_config): { "$schema": "https://docs.renovatebot.com/renovate-schema.json", "extends": "config:recommended", ":semanticCommits", ":dependencyDashboard", ":rebaseStalePrs", ":separateMajorReleases", ":combinePatchMinorReleases", ":ignoreUnstable", ":prImmediately", ":updateNotScheduled", ":automergeDisabled", ":maintainLockFilesWeekly", ":prConcurrentLimit10" , "platformAutomerge": true, "rangeStrategy": "bump", "semanticCommits": "enabled", "timezone": "Europe/Berlin", "schedule": "before 6am on monday" , "labels": "dependencies" , "assignees": "danielsogl" , "reviewers": "danielsogl" , "packageRules": { "matchManagers": "npm" , "matchUpdateTypes": "patch", "minor" , "automerge": true, "platformAutom… Evidence: `renovate.json`
- **Tsconfig** (structured_config): { "compilerOptions": { "target": "ES2022", "module": "Node16", "moduleResolution": "Node16", "outDir": "./dist", "rootDir": "./src", "forceConsistentCasingInFileNames": true, "strict": true, "skipLibCheck": true, "declaration": true, "esModuleInterop": true, "allowSyntheticDefaultImports": true, "resolveJsonModule": true, "allowImportingTsExtensions": false, "noEmit": false, "types": "node" }, "include": "src/ / " , "exclude": "node modules", "dist", "coverage", " / .test.ts", " / .spec.ts" } Evidence: `tsconfig.json`
- **Build outputs** (source_file): Environment variables .env .env.local .env.production Evidence: `.gitignore`
- **Pre Commit** (source_file): npx lint-staged Evidence: `.husky/pre-commit`
- **Pre Push** (source_file): npm run test:run Evidence: `.husky/pre-push`
- **Chrome Config.Test** (source_file): import { describe, it, expect, vi, afterEach } from "vitest"; import { join } from "node:path"; import { buildChromeFlags, buildChromeLaunchOptions, isProfileConfig } from "./chrome-config"; import { CHROME FLAGS } from "./lighthouse-constants"; Evidence: `src/chrome-config.test.ts`
- **Cli.Test** (source_file): import { describe, it, expect } from "vitest"; import { basename, dirname, join } from "node:path"; import { parseCliArgs } from "./cli"; Evidence: `src/cli.test.ts`
- **Lighthouse Analysis.Test** (source_file): import { describe, it, expect, vi, beforeEach } from "vitest"; import { findUnusedJavaScript, analyzeResources, getSecurityAudit } from "./lighthouse-analysis"; ⋮---- import { SECURITY AUDITS, DEFAULTS } from "./lighthouse-constants"; Evidence: `src/lighthouse-analysis.test.ts`
- **Lighthouse Categories.Test** (source_file): import { describe, it, expect, vi, beforeEach } from "vitest"; import { getAccessibilityScore, getSeoAnalysis, checkPwaReadiness } from "./lighthouse-categories"; Evidence: `src/lighthouse-categories.test.ts`
- **Lighthouse Categories** (source_file): import { runLighthouseAudit, getDetailedAuditResults } from "./lighthouse-core.js"; ⋮---- export async function getAccessibilityScore url: string, device: "desktop" "mobile" = "desktop", includeDetails = false, ⋮---- export async function getSeoAnalysis url: string, device: "desktop" "mobile" = "desktop", includeDetails = false ⋮---- export async function checkPwaReadiness url: string, device: "desktop" "mobile" = "desktop", includeDetails = false Evidence: `src/lighthouse-categories.ts`
- **Lighthouse Constants.Test** (source_file): import { describe, it, expect } from "vitest"; import { CHROME FLAGS, SCREEN DIMENSIONS, THROTTLING CONFIG, KEY METRICS, LCP OPPORTUNITIES, SECURITY AUDITS, BUDGET METRIC MAPPINGS, DEFAULTS, } from "./lighthouse-constants"; Evidence: `src/lighthouse-constants.test.ts`
- **Lighthouse Core.Test** (source_file): import { describe, it, expect } from "vitest"; import { getScreenEmulation, buildLighthouseOptions, filterAuditsByCategory, formatCategoryScores, extractKeyMetrics, } from "./lighthouse-core"; import { SCREEN DIMENSIONS } from "./lighthouse-constants"; Evidence: `src/lighthouse-core.test.ts`
- **Lighthouse Performance.Test** (source_file): import { describe, it, expect, vi, beforeEach } from "vitest"; import { getPerformanceScore, getCoreWebVitals, compareMobileDesktop, checkPerformanceBudget, getLcpOpportunities, } from "./lighthouse-performance"; ⋮---- import { DEFAULTS, LCP OPPORTUNITIES } from "./lighthouse-constants"; Evidence: `src/lighthouse-performance.test.ts`
- **Prompts.Test** (source_file): import { describe, it, expect, vi } from "vitest"; import { registerPrompts } from "./prompts"; Evidence: `src/prompts.test.ts`
- **Resources.Test** (source_file): import { describe, it, expect, vi } from "vitest"; import { registerResources } from "./resources"; Evidence: `src/resources.test.ts`
- **Schemas.Test** (source_file): import { describe, it, expect } from "vitest"; import { baseSchemas, coreWebVitalsSchema, performanceBudgetSchema } from "./schemas"; Evidence: `src/schemas.test.ts`
- **Vitest.Config** (source_file): import { defineConfig } from "vitest/config"; import { resolve } from "path"; import { fileURLToPath } from "url"; Evidence: `vitest.config.ts`

## Rules the Host AI Must Follow

- **Treat this asset as pre-work context, not a runtime environment.**: The AI Context Pack contains only an evidence-backed understanding of the project, not the project's executable state. Evidence: `README.md`, `package.json`, `LICENSE`
- **When answering the user, distinguish what can be previewed from what can only be verified after install.**: The consumer value of the pre-install experience comes from reducing bad installs and misjudgments, not from pretending to be a real run. Evidence: `README.md`, `package.json`, `LICENSE`

## Questions the User Should Answer First

- Which host AI or local environment do you plan to use it in?
- Do you just want to experience the workflow first, or are you ready to actually install?
- What matters most to you: install cost, output quality, or conflicts with your existing rules?

## Acceptance Checks

- Every capability claim can be traced back to a file path in evidence_refs.
- AI_CONTEXT_PACK.md does not package previews as a real run.
- The user can understand who it fits, what it can do, how to start, and the risk boundaries within 3 minutes.

---

## Doramagic Context Augmentation

The following sections strengthen the repository context for a host AI. Human Manual data is a reading route, and pitfall notes become operating constraints.

## Human Manual Outline

Usage rule: this is only a reading route and salience signal, not factual authority. Concrete claims must still return to repo evidence or Claim Graph.

Host AI hard rules:
- Do not treat page titles, section order, summaries, or importance values as factual project evidence.
- When explaining the Human Manual outline, state that it is only a reading route or salience signal.
- Capability, installation, compatibility, runtime state, and risk claims must cite repo evidence, source paths, or Claim Graph.

- **Project Overview & System Architecture**: importance `high`
  - source_paths: src/index.ts, src/cli.ts, src/types.ts, src/lighthouse-core.ts, package.json
- **Tool Reference: Audit, Performance, Analysis & Security**: importance `high`
  - source_paths: src/tools/index.ts, src/tools/audit.ts, src/tools/performance.ts, src/tools/analysis.ts, src/tools/security.ts
- **Chrome & Browser Configuration**: importance `high`
  - source_paths: src/chrome-config.ts, src/cli.ts, scripts/smoke-profile.ts, src/lighthouse-core.ts, src/index.ts
- **Schemas, Prompts & Reference Resources**: importance `medium`
  - source_paths: src/schemas.ts, src/prompts.ts, src/resources.ts, src/types.ts

## Repo Inspection Evidence

- repo_clone_verified: true
- repo_inspection_verified: true
- repo_commit: `db8e1d54933f42e3d344e3cffd1dc7a6eb75f39a`
- inspected_files: `README.md`, `package.json`, `src/chrome-config.test.ts`, `src/chrome-config.ts`, `src/cli.test.ts`, `src/cli.ts`, `src/index.ts`, `src/lighthouse-analysis.test.ts`, `src/lighthouse-analysis.ts`, `src/lighthouse-categories.test.ts`, `src/lighthouse-categories.ts`, `src/lighthouse-constants.test.ts`, `src/lighthouse-constants.ts`, `src/lighthouse-core.test.ts`, `src/lighthouse-core.ts`, `src/lighthouse-performance.test.ts`, `src/lighthouse-performance.ts`, `src/prompts.test.ts`, `src/prompts.ts`, `src/resources.test.ts`

Host AI hard rules:
- Without repo_clone_verified=true, do not claim that the source code has been read.
- Without repo_inspection_verified=true, do not write README, docs, or package-file conclusions as facts.
- Without quick_start_verified=true, do not claim that the Quick Start path has run successfully.

## Doramagic Pitfall Constraints

These rules come from Doramagic discovery, validation, or compilation findings. The host AI must treat them as operating constraints, not background notes.

### Constraint 1: Installation risk requires verification

- Trigger: Developers should check this installation risk before relying on the project: Dependency Dashboard
- Host AI rule: Before packaging this project, run the relevant install/config/quickstart check for: Dependency Dashboard. Context: Observed when using node
- Why it matters: Developers may fail before the first successful local run: Dependency Dashboard
- Evidence: failure_mode_cluster:github_issue | https://github.com/danielsogl/lighthouse-mcp-server/issues/1
- Hard boundary: Do not present this pitfall as solved, verified, or ignorable unless later evidence explicitly closes it.

### Constraint 2: Installation risk requires verification

- Trigger: Developers should check this installation risk before relying on the project: lighthouse-mcp: v1.2.18
- Host AI rule: Before packaging this project, run the relevant install/config/quickstart check for: lighthouse-mcp: v1.2.18. Context: Source discussion did not expose a precise runtime context.
- Why it matters: Upgrade or migration may change expected behavior: lighthouse-mcp: v1.2.18
- Evidence: failure_mode_cluster:github_release | https://github.com/danielsogl/lighthouse-mcp-server/releases/tag/lighthouse-mcp-v1.2.18
- Hard boundary: Do not present this pitfall as solved, verified, or ignorable unless later evidence explicitly closes it.

### Constraint 3: Installation risk requires verification

- Trigger: Developers should check this installation risk before relying on the project: lighthouse-mcp: v1.2.19
- Host AI rule: Before packaging this project, run the relevant install/config/quickstart check for: lighthouse-mcp: v1.2.19. Context: Source discussion did not expose a precise runtime context.
- Why it matters: Upgrade or migration may change expected behavior: lighthouse-mcp: v1.2.19
- Evidence: failure_mode_cluster:github_release | https://github.com/danielsogl/lighthouse-mcp-server/releases/tag/lighthouse-mcp-v1.2.19
- Hard boundary: Do not present this pitfall as solved, verified, or ignorable unless later evidence explicitly closes it.

### Constraint 4: Installation risk requires verification

- Trigger: Developers should check this installation risk before relying on the project: lighthouse-mcp: v1.2.20
- Host AI rule: Before packaging this project, run the relevant install/config/quickstart check for: lighthouse-mcp: v1.2.20. Context: Source discussion did not expose a precise runtime context.
- Why it matters: Upgrade or migration may change expected behavior: lighthouse-mcp: v1.2.20
- Evidence: failure_mode_cluster:github_release | https://github.com/danielsogl/lighthouse-mcp-server/releases/tag/lighthouse-mcp-v1.2.20
- Hard boundary: Do not present this pitfall as solved, verified, or ignorable unless later evidence explicitly closes it.

### Constraint 5: Installation risk requires verification

- Trigger: Developers should check this installation risk before relying on the project: lighthouse-mcp: v1.2.21
- Host AI rule: Before packaging this project, run the relevant install/config/quickstart check for: lighthouse-mcp: v1.2.21. Context: Source discussion did not expose a precise runtime context.
- Why it matters: Upgrade or migration may change expected behavior: lighthouse-mcp: v1.2.21
- Evidence: failure_mode_cluster:github_release | https://github.com/danielsogl/lighthouse-mcp-server/releases/tag/lighthouse-mcp-v1.2.21
- Hard boundary: Do not present this pitfall as solved, verified, or ignorable unless later evidence explicitly closes it.

### Constraint 6: Installation risk requires verification

- Trigger: Developers should check this installation risk before relying on the project: lighthouse-mcp: v1.3.0
- Host AI rule: Before packaging this project, run the relevant install/config/quickstart check for: lighthouse-mcp: v1.3.0. Context: Source discussion did not expose a precise runtime context.
- Why it matters: Upgrade or migration may change expected behavior: lighthouse-mcp: v1.3.0
- Evidence: failure_mode_cluster:github_release | https://github.com/danielsogl/lighthouse-mcp-server/releases/tag/lighthouse-mcp-v1.3.0
- Hard boundary: Do not present this pitfall as solved, verified, or ignorable unless later evidence explicitly closes it.

### Constraint 7: Installation risk requires verification

- Trigger: Developers should check this installation risk before relying on the project: lighthouse-mcp: v1.3.1
- Host AI rule: Before packaging this project, run the relevant install/config/quickstart check for: lighthouse-mcp: v1.3.1. Context: Observed when using node
- Why it matters: Upgrade or migration may change expected behavior: lighthouse-mcp: v1.3.1
- Evidence: failure_mode_cluster:github_release | https://github.com/danielsogl/lighthouse-mcp-server/releases/tag/lighthouse-mcp-v1.3.1
- Hard boundary: Do not present this pitfall as solved, verified, or ignorable unless later evidence explicitly closes it.

### Constraint 8: Installation risk requires verification

- Trigger: Developers should check this installation risk before relying on the project: lighthouse-mcp: v1.3.3
- Host AI rule: Before packaging this project, run the relevant install/config/quickstart check for: lighthouse-mcp: v1.3.3. Context: Observed when using node
- Why it matters: Upgrade or migration may change expected behavior: lighthouse-mcp: v1.3.3
- Evidence: failure_mode_cluster:github_release | https://github.com/danielsogl/lighthouse-mcp-server/releases/tag/lighthouse-mcp-v1.3.3
- Hard boundary: Do not present this pitfall as solved, verified, or ignorable unless later evidence explicitly closes it.

### Constraint 9: Installation risk requires verification

- Trigger: Developers should check this installation risk before relying on the project: lighthouse-mcp: v1.5.0
- Host AI rule: Before packaging this project, run the relevant install/config/quickstart check for: lighthouse-mcp: v1.5.0. Context: Observed when using node
- Why it matters: Upgrade or migration may change expected behavior: lighthouse-mcp: v1.5.0
- Evidence: failure_mode_cluster:github_release | https://github.com/danielsogl/lighthouse-mcp-server/releases/tag/lighthouse-mcp-v1.5.0
- Hard boundary: Do not present this pitfall as solved, verified, or ignorable unless later evidence explicitly closes it.
