Support resending captured Fetch and XHR requests

Abierto
#3,142 1 comentario 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
35/100
Tipo de issue
Nueva funcionalidad
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
devtools, typescript
Área
devtools

Línea de trabajo

Start from the existing list_network_requests and get_network_request tools, which return the reqid and pageId the new resend_network_request tool would take. Find where NetworkManager.resendRequest() from DevTools can be called for a captured Fetch or XHR request, and reject other request types. Done means the tool is registered as mutating and non-idempotent and only acknowledges the attempt. The author wants scope feedback before a PR, so confirm that first.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

collecting-feedback feature
Is your feature request related to a problem? Please describe.

When debugging a network request through MCP, I want to resend it after investigating a failure or changing the application state, then compare the responses.

Currently, I need to reproduce the application interaction that triggered the request or manually reconstruct it with evaluate_script. A resend tool would make this workflow easier.

Describe the solution you'd like

Add a resend_network_request tool that accepts a pageId and a reqid returned by list_network_requests.

The tool would:

  • Support captured Fetch and XHR requests.
  • Reuse DevTools’ NetworkManager.resendRequest() implementation.
  • Reject unsupported request types.
  • Acknowledge the resend attempt without claiming success.

Users would then use list_network_requests to find the new request and get_network_request to inspect its response.

Resending may repeat server-side changes, such as creating another order. The tool should therefore be marked as mutating and non-idempotent.

Describe alternatives you've considered
  • Repeat the UI interaction that triggered the request. This requires reproducing the application workflow.
  • Use evaluate_script to construct a request manually. This requires reconstructing the request details.
  • Resend manually from the DevTools Network panel. This requires leaving the MCP workflow.
Additional context

I would like feedback on the use case and scope before submitting a PR.

Lenguaje dominante
TypeScript
Estrellas
59.8k
Forks
4.8k
Merge medio
2 d 10 h
PR fusionados (30 d)
162

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de ChromeDevTools/chrome-devtools-mcp

Todos los issues de ChromeDevTools/chrome-devtools-mcp

Issues similares

Más issues de TypeScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.