From f1599f4cea38ebe2fa14e7edc3873410dd45cdf5 Mon Sep 17 00:00:00 2001 From: Sebastian Benz Date: Mon, 22 Sep 2025 11:03:27 +0200 Subject: [PATCH] docs: add cursor install button in the readme Also fix formatter scripts on windows --- .prettierrc.cjs | 1 + README.md | 10 +++++++++- package.json | 4 ++-- 3 files changed, 12 insertions(+), 3 deletions(-) diff --git a/.prettierrc.cjs b/.prettierrc.cjs index 16a1c6ff..b1741335 100644 --- a/.prettierrc.cjs +++ b/.prettierrc.cjs @@ -14,4 +14,5 @@ module.exports = { arrowParens: 'avoid', singleAttributePerLine: true, htmlWhitespaceSensitivity: 'strict', + endOfLine: 'lf', }; diff --git a/README.md b/README.md index ce545a39..16cbf7b8 100644 --- a/README.md +++ b/README.md @@ -77,7 +77,15 @@ claude mcp add chrome-devtools npx chrome-devtools-mcp@latest
Cursor - Follow https://docs.cursor.com/en/context/mcp#using-mcp-json and use the config provided above. + +**Click the button to install:** + +[Install in Cursor](https://cursor.com/en/install-mcp?name=chrome-devtools&config=eyJjb21tYW5kIjoibnB4IGNocm9tZS1kZXZ0b29scy1tY3BAbGF0ZXN0In0%3D) + +**Or install manually:** + +Go to `Cursor Settings` -> `MCP` -> `New MCP Server`. Use the config provided above. +
diff --git a/package.json b/package.json index 5310b7bd..36709e82 100644 --- a/package.json +++ b/package.json @@ -10,8 +10,8 @@ "scripts": { "build": "tsc && node --experimental-strip-types scripts/post-build.ts", "typecheck": "tsc --noEmit", - "format": "eslint --cache --fix . ;prettier --write --cache .", - "check-format": "eslint --cache .; prettier --check --cache .;", + "format": "eslint --cache --fix . && prettier --write --cache .", + "check-format": "eslint --cache . && prettier --check --cache .;", "docs": "npm run build && npm run docs:generate && npm run format", "docs:generate": "node --experimental-strip-types scripts/generate-docs.ts", "start": "npm run build && node build/src/index.js",