https://github.com/ChromeDevTools/chrome-devtools-mcp#connecting-to-a-running-chrome-instance
claude mcp add chrome-devtools --scope user -- npx chrome-devtools-mcp@latest --autoConnectPuis: chrome://inspect/#remote-debugging
| /** | |
| * Gives a class constructor the possibility to be invoked | |
| * with or without the `new` keyword, like built-in constructors. | |
| * | |
| * @param class_ class whose constructor will be proxified. | |
| * @param constructorName if we need an accurate `constructor.name` property. | |
| */ | |
| export function makeNewOptional<C extends new (...args: any[]) => any>(class_: C, constructorName?: string) { | |
| type NoNew<T extends C> = (...args: ConstructorParameters<T>) => InstanceType<T> |
| // Make sure you have json-summary as a coverage reporter in your jest config. | |
| // coverageReporters: ['json-summary', 'text', 'lcov'] | |
| import { readFileSync, mkdirSync, writeFileSync } from 'fs' | |
| import { join } from 'path' | |
| import { get } from 'https' | |
| import { ok } from 'assert' | |
| Promise.resolve().then(async () => { | |
| const outputDir = join(process.cwd(), 'badges') |
| # https://www.freedesktop.org/software/systemd/man/systemd.unit.html | |
| [Unit] | |
| Description=My App | |
| After=network.target | |
| # https://www.freedesktop.org/software/systemd/man/systemd.exec.html | |
| [Service] | |
| Type=simple | |
| # https://www.freedesktop.org/software/systemd/man/systemd.exec.html#WorkingDirectory= | |
| WorkingDirectory=-/srv/app/ |
https://github.com/ChromeDevTools/chrome-devtools-mcp#connecting-to-a-running-chrome-instance
claude mcp add chrome-devtools --scope user -- npx chrome-devtools-mcp@latest --autoConnectPuis: chrome://inspect/#remote-debugging