RFC: GraphQL Support for Chrome DevTools MCP
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Idoneità per principianti
- 25/100
- Tipo di issue
- Funzionalità
- Chiarezza
- Da chiarire
- Stato di attività
- Ferma
- Stack tecnologico
- graphql
- Ambito
- api, backend-api-design, tooling
Direzione di ricerca
Questo è un RFC, non un’attività di implementazione, quindi inizia esaminando il modello di interazione MCP attuale e l’issue relativa al CLI wrapper referenziata nella proposta. Chiarisci lo schema GraphQL, il suo rapporto con gli strumenti Console e Network esistenti e l’ambito di una prima implementazione prima di individuare le modifiche al codice; il lavoro è completato quando la proposta ha un design concordato e un perimetro di implementazione definito.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Is your feature request related to a problem? Please describe.
This is an Request For Comments issue. This is a proposal that we would like to get feedback on, before proceeding with implementation. Please add your thoughts and upvotes.
The current MCP interaction model creates a "chatty" and observation-heavy protocol. While the CLI wrapper (https://github.com/ChromeDevTools/chrome-devtools-mcp/issues/797) successfully addresses Action Batching by allowing agents to execute sequences of commands in a single bash script, agents still face a bottleneck in Data Orchestration.
To diagnose a failure or gather context, an agent currently must perform multiple "Read" calls—such as list_console_messages, list_network_requests, and take_snapshot. This leads to:
Over-fetching: Agents receive massive JSON blobs with irrelevant metadata, consuming excessive context window tokens.
Observation Latency: Multiple round-trips are required to assemble a complete picture of the browser state.
Disjointed Relationships: Agents must manually "join" related data, such as connecting a console error to the specific network request that triggered it.
Describe the solution you'd like
I would like to discuss the introduction of a query_devtools tool that provides a GraphQL interface to the browser state.
This tool would allow agents to act as "frontends," performing high-density, single-turn data fetches where they "cherry-pick" only the exact attributes needed from multiple sources like console and network data.
Example agent-authored query:
{
currentPage {
url
# Only get errors, and only get the message + stack
consoleLogs(level: "error") {
message
stackTrace
}
# Link network failures to their specific response codes
networkRequests(filter: "failed") {
url
status
method
}
}
}
Key Benefits:
- Token Efficiency: Agents can request specific fields, preventing "token explosion" from large, unoptimized resource reads.
- Relational Depth: The schema would allow agents to "walk" the graph—for instance, fetching the initiator script source of a failed network request in the same call as the request itself.
- Self-Healing Documentation: Agents can use GraphQL introspection to discover the schema, similar to how they use
--helpfor the CLI, reducing hallucinations regarding available data fields.
Describe alternatives you've considered
MCP Resources: While the standard MCP Resource spec is excellent for fetching specific "file-like" resources, it lacks the ability to filter fields or join multiple data types in a single request, which can lead to the "chatty" behavior we are trying to solve.
Extended CLI Flags: We could add more complex flags to CLI commands (e.g., chrome-devtools list_network_requests --include-console-errors), but this would lead to a bloated interface that is harder for agents to learn and maintain compared to a typed schema.
Status Quo (Single Tool Calls): Continuing to rely on granular tool calls keeps the protocol simple but keeps latency high and limits the "advanced mode" capabilities of the most capable agents.
Additional context
Relationship to the CLI Wrapper
The GraphQL tool is the "Observation" counterpart to the CLI's "Action".
The CLI (): Allows agents to write logic-heavy scripts to perform tasks, such as retrying a form submission if a username is taken.
The GraphQL Tool (query_devtools): Allows agents to gather the specific, multi-domain data needed to write those scripts or to debug them when they fail, all in one trip.
Together, they transform the agent from a "remote controller" clicking one button at a time into a "script writer" capable of high-level browser orchestration.
- Lingua principale
- TypeScript
- Stelle
- 59.8k
- Fork
- 4.8k
- Merge medio
- 2g 10h
- PR unite (30g)
- 162
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di ChromeDevTools/chrome-devtools-mcp
-
feature
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 78/100
ChromeDevTools/chrome-devtools-mcp#3689 ·
I maintainer di solito rispondono entro 1 giorno
-
`evaluate_script` `sourcePath` http(s) URLs are mangled into `file://` pathsForse di nuovo libera Una pull request per questa issue è stata chiusa senza essere unita. Apertacollecting-feedback
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
ChromeDevTools/chrome-devtools-mcp#3453 · 3 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
collecting-feedback feature
Difficoltà 2/5 Mezza giornata Idoneità per principianti 76/100
ChromeDevTools/chrome-devtools-mcp#3225 · 3 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
`wait_for` never finds visible text whose HTML source contains line breaks or repeated spacesApertaconfirmed p3
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
ChromeDevTools/chrome-devtools-mcp#2947 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Project Migration: Moving to devtools-frontendForse già presa Una pull request collegata a questa issue è aperta o già unita. Aperta
Difficoltà 5/5 Più di una settimana Idoneità per principianti 1/100
ChromeDevTools/chrome-devtools-mcp#3648 ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di ChromeDevTools/chrome-devtools-mcp
Issue simili
-
bug engine
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
frostney/GocciaScript#2539 ·
I maintainer di solito rispondono entro 1 giorno
-
Fish Audio Live calls fail to start: `Unknown callback "onNotice"` from @fishaudio/agent-clientForse già presa @NEAL3K l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 83/100
milind-soni/OpenMausBot#8345 ·
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
ardia-browser/ardia#6142 ·
I maintainer di solito rispondono entro 1 giorno
-
[Bug]: Team (channel) avatars render noticeably smaller than agent avatars in the sidebar gridApertabug from-app needs-triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
nightly-labs/openbot#21303 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
Lin-arm/GKD_subscription#530 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno