Skip to content

Commit 8ce4888

Browse files
docs: improve Cursor install instructions (#58)
Adds an install to cursor button (also fixes windows support in docs generation).
1 parent b830b43 commit 8ce4888

File tree

3 files changed

+12
-3
lines changed

3 files changed

+12
-3
lines changed

.prettierrc.cjs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,5 @@ module.exports = {
1414
arrowParens: 'avoid',
1515
singleAttributePerLine: true,
1616
htmlWhitespaceSensitivity: 'strict',
17+
endOfLine: 'lf',
1718
};

README.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,15 @@ claude mcp add chrome-devtools npx chrome-devtools-mcp@latest
7777

7878
<details>
7979
<summary>Cursor</summary>
80-
Follow https://docs.cursor.com/en/context/mcp#using-mcp-json and use the config provided above.
80+
81+
**Click the button to install:**
82+
83+
[<img src="https://cursor.com/deeplink/mcp-install-dark.svg" alt="Install in Cursor">](https://cursor.com/en/install-mcp?name=chrome-devtools&config=eyJjb21tYW5kIjoibnB4IGNocm9tZS1kZXZ0b29scy1tY3BAbGF0ZXN0In0%3D)
84+
85+
**Or install manually:**
86+
87+
Go to `Cursor Settings` -> `MCP` -> `New MCP Server`. Use the config provided above.
88+
8189
</details>
8290

8391
<details>

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
"scripts": {
1111
"build": "tsc && node --experimental-strip-types scripts/post-build.ts",
1212
"typecheck": "tsc --noEmit",
13-
"format": "eslint --cache --fix . ;prettier --write --cache .",
14-
"check-format": "eslint --cache .; prettier --check --cache .;",
13+
"format": "eslint --cache --fix . && prettier --write --cache .",
14+
"check-format": "eslint --cache . && prettier --check --cache .;",
1515
"docs": "npm run build && npm run docs:generate && npm run format",
1616
"docs:generate": "node --experimental-strip-types scripts/generate-docs.ts",
1717
"start": "npm run build && node build/src/index.js",

0 commit comments

Comments
 (0)