This repository contains an MCP server and CLI for Chrome DevTools.
- Use only scripts from
package.jsonto run commands. - Use
npm run buildto run tsc and test build. - Use
npm run testto build and run tests, run all tests to verify correctness. - Use
npm run test path-to-test.tsto build and run a single test file, for example,npm run test tests/McpContext.test.ts. - Use
npm run formatto fix formatting and get linting errors.
- Do not use
anytype. - Do not use
askeyword for type casting. - Do not use
!operator for type assertion. - Do not use
// @ts-ignorecomments. - Do not use
// @ts-nocheckcomments. - Do not use
// @ts-expect-errorcomments. - Prefer
for..ofinstead offorEach.