Diagnostica y resuelve fugas de memoria en aplicaciones JavaScript/Node.js capturando, comparando e inspeccionando heap snapshots.
- Costo de contexto al activarse
- 1k tok
- Tamaño del paquete
- 2 archivos
- Última actualización
- ayer
Usa Chrome DevTools MCP y su documentación para solucionar problemas de conexión y de target cuando fallan list_pages, new_page o navigate_page.
en todo el repo
0–100, la ruta de este skill
último commit aquí
últimos 90 días
50 tok en reposo
7 KB
Funciona con cualquier agente que lea SKILL.md
npx -y skills add ChromeDevTools/chrome-devtools-mcp --skill troubleshooting --agent claude-codeSe instala solo en este repositorio.
Di cualquiera de estas frases y el agente debería cargar este skill.
You are acting as a troubleshooting wizard to help the user configure and fix their Chrome DevTools MCP server setup. When this skill is triggered (e.g., because list_pages, new_page, or navigate_page failed, or the server wouldn't start), follow this step-by-step diagnostic process:
Your first action should be to locate and read the MCP configuration file. Search for the following files in the user's workspace: .mcp.json, gemini-extension.json, .claude/settings.json, .vscode/launch.json, or .gemini/settings.json.
If you find a configuration file, read and interpret it to identify potential issues such as:
--autoConnect in incompatible environments.If you cannot find any of these files, only then should you ask the user to provide their configuration file content.
Before reading documentation or suggesting configuration changes, check if the error message matches one of the following common patterns.
Could not find DevToolsActivePortThis error is highly specific to the --autoConnect feature. It means the MCP server cannot find the file created by a running, debuggable Chrome instance. This is not a generic connection failure.
Your primary goal is to guide the user to ensure Chrome is running and properly configured. Do not immediately suggest switching to --browserUrl. Follow this exact sequence:
chrome://inspect/#remote-debugging, and make sure the 'Enable remote debugging' checkbox is checked."list_pages tool. This is the simplest and safest way to verify if the connection is now successful. Do not retry the original, more complex command yet.list_pages succeeds, the problem is resolved. If it still fails with the same error, then you can proceed to the more advanced steps like suggesting --browserUrl or checking for sandboxing issues.If the server starts successfully but list_pages returns an empty list or creates a new profile instead of connecting to the existing Chrome instance, check for typos in the arguments.
--autoBronnect instead of --autoConnect.If the server starts successfully but only a limited subset of tools (like list_pages, get_console_message, lighthouse_audit, take_heapsnapshot) are available, this is likely because the MCP client is enforcing a read-only mode.
All tools in chrome-devtools-mcp are annotated with readOnlyHint: true (for safe, non-modifying tools) or readOnlyHint: false (for tools that modify browser state, like emulate, click, navigate_page). To access the full suite of tools, the user must disable read-only mode in their MCP client (e.g., by exiting "Plan Mode" in Gemini CLI or adjusting their client's tool safety settings).
If the tools related to extensions (like install_extension) are not available, or if the extensions you load are not functioning:
--categoryExtensions flag: Ensure this flag is passed in the MCP server configuration to enable the extension category tools.--auto-connect, --browserUrl).Identify other error messages from the failed tool call or the MCP initialization logs:
Target closed--slim which only enables navigation and screenshot tools).pageId: Page-scoped tools require a pageId argument. Call list_pages to find active page IDs.ProtocolError: Network.enable timed out or The socket connection was closed unexpectedlyError [ERR_MODULE_NOT_FOUND]: Cannot find moduleRead the contents of https://github.com/ChromeDevTools/chrome-devtools-mcp/blob/main/docs/troubleshooting.md to map the error to a known issue. Pay close attention to:
--autoConnect handshakes, timeouts, and requirements (requires running Chrome 144+).Based on the exact error and the user's environment (OS, MCP client), formulate the correct MCP configuration snippet. Check if they need to:
--browser-url=http://127.0.0.1:9222 instead of --autoConnect (e.g. if they are in a sandboxed environment like Claude Desktop).chrome://inspect/#remote-debugging) and accept the connection prompt. Ask the user to verify this is enabled if using --autoConnect.--logFile <absolute_path_to_log_file> to capture debug logs for analysis.startup_timeout_ms (e.g. to 20000) if using Codex on Windows.If you are unsure of the user's configuration, ask the user to provide their current MCP server JSON configuration.
If the issue is still unclear, run diagnostic commands to test the server directly:
npx chrome-devtools-mcp@latest --help to verify the installation and Node.js environment.DEBUG=* npx chrome-devtools-mcp@latest --logFile=/tmp/cdm-test.log to capture verbose logs. Analyze the output for errors.If https://github.com/ChromeDevTools/chrome-devtools-mcp/blob/main/docs/troubleshooting.md does not cover the specific error, check if the gh (GitHub CLI) tool is available in the environment. If so, search the GitHub repository for similar issues:
gh issue list --repo ChromeDevTools/chrome-devtools-mcp --search "<error snippet>" --state all
Alternatively, you can recommend that the user checks https://github.com/ChromeDevTools/chrome-devtools-mcp/issues and https://github.com/ChromeDevTools/chrome-devtools-mcp/discussions for help.
Reproducido de ChromeDevTools/chrome-devtools-mcp bajo licencia Apache-2.0. Leer esta página en markdown.
1 archivo en el paquete. Solo se lee SKILL.md al activarse — las referencias se cargan si el skill decide que las necesita.
Puede requerir acceso al archivo de configuración MCP del usuario y, opcionalmente, al CLI `gh` para buscar issues.
Este repo incluye 6 skills. Si instalas uno, normalmente ya tienes los demás.
Diagnostica y resuelve fugas de memoria en aplicaciones JavaScript/Node.js capturando, comparando e inspeccionando heap snapshots.
Usa Chrome DevTools vía MCP para depuración eficiente, resolución de problemas y automatización del navegador. No aplica al modo --slim de configuración MCP.
Usa este skill para escribir scripts de shell o correr comandos de shell que automaticen el navegador u otras tareas de Chrome DevTools por CLI.
Usa Chrome DevTools por MCP para depuración y auditoría de accesibilidad (a11y) siguiendo las guías de web.dev. Úsalo al probar HTML semántico, ARIA, foco, teclado, tap targets y contraste.
Guía la depuración y optimización del Largest Contentful Paint (LCP) usando las herramientas de Chrome DevTools MCP.
Usa Chrome DevTools vía MCP para depuración eficiente, resolución de problemas y automatización del navegador. No aplica al modo --slim de configuración MCP.
Usa este skill para escribir scripts de shell o correr comandos de shell que automaticen el navegador u otras tareas de Chrome DevTools por CLI.
Guía la depuración y optimización del Largest Contentful Paint (LCP) usando las herramientas de Chrome DevTools MCP.