Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
# Prettier-only ignores.
CHANGELOG.md
src/third_party/lighthouse-devtools-mcp-bundle.js
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -396,6 +396,8 @@ If you run into any issues, checkout our [troubleshooting guide](./docs/troubles

<!-- BEGIN AUTO GENERATED TOOLS -->

- **Audits** (1 tools)
- [`lighthouse_audit`](docs/tool-reference.md#lighthouse_audit)
- **Input automation** (8 tools)
- [`click`](docs/tool-reference.md#click)
- [`drag`](docs/tool-reference.md#drag)
Expand Down
18 changes: 17 additions & 1 deletion docs/tool-reference.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
<!-- AUTO GENERATED DO NOT EDIT - run 'npm run docs' to update-->

# Chrome DevTools MCP Tool Reference (~6661 cl100k_base tokens)
# Chrome DevTools MCP Tool Reference (~6922 cl100k_base tokens)

- **[Audits](#audits)** (1 tools)
Comment thread
OrKoN marked this conversation as resolved.
Outdated
- [`lighthouse_audit`](#lighthouse_audit)
- **[Input automation](#input-automation)** (8 tools)
- [`click`](#click)
- [`drag`](#drag)
Expand Down Expand Up @@ -35,6 +37,20 @@
- [`take_screenshot`](#take_screenshot)
- [`take_snapshot`](#take_snapshot)

## Audits

### `lighthouse_audit`

**Description:** Get Lighthouse score and reports for accesibility, SEO and best practices.

**Parameters:**

- **device** (enum: "desktop", "mobile") _(optional)_: The device to [`emulate`](#emulate).
- **mode** (enum: "navigation", "snapshot") _(optional)_: "navigation" reloads the selected page and audits during the navigation. The "snapshot" mode analyzes the page in its current state.
- **outputDirPath** (string) _(optional)_: The directory to output the reports to. If not provided, temporary files will be created.

---

## Input automation

### `click`
Expand Down
6 changes: 5 additions & 1 deletion eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,11 @@ import tseslint from 'typescript-eslint';
import localPlugin from './scripts/eslint_rules/local-plugin.js';

export default defineConfig([
globalIgnores(['**/node_modules', '**/build/']),
globalIgnores([
'**/node_modules',
'**/build/',
'src/third_party/lighthouse-devtools-mcp-bundle.js',
]),
importPlugin.flatConfigs.typescript,
{
languageOptions: {
Expand Down
Loading