Support resending captured Fetch and XHR requests

Aperta
#3,142 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
35/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
devtools, typescript
Ambito
devtools

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.

Lingua principale
TypeScript
Stelle
59.8k
Fork
4.8k
Merge medio
2g 10h
PR unite (30g)
162

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di ChromeDevTools/chrome-devtools-mcp

Tutte le issue di ChromeDevTools/chrome-devtools-mcp

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.