WDIO_MCP_TOOLS=code: a fixed code-mode tool set (session, navigate, snapshot, query_docs, run_code)
I maintainer di solito rispondono entro 2 giorni
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 22/100
- Tipo di issue
- Funzionalità
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Attiva
- Stack tecnologico
- typescript
- Ambito
- devtools, testing-qa
Direzione di ricerca
Start with the tool-set selection behind WDIO_MCP_TOOLS and the run_code opt-in (--allow-code / WDIO_MCP_RUN_CODE), then read docs/architecture/run-code-proposal.md for decision 4. Done means code lists only the five listed tools, and it fails at startup with a clear message when the run_code opt-in is missing. The mobile and Electron question is still open, so check with maintainers before deciding it.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Target: feature/v5. Status: proposal. Depends on: #197 and its decision-4 eval (docs/architecture/run-code-proposal.md, on the docs/run-code-proposal branch). Ship only if the eval beats #203.
Idea. A fixed, small tool set for clients that drive the session with run_code (#197): WDIO_MCP_TOOLS=code lists only
| Tool | Role |
|---|---|
start_session / close_session |
lifecycle |
navigate |
load a page |
snapshot |
search the page: refs, roles, names |
query_docs |
search the WebdriverIO API |
run_code |
execute: loops, waits, assertions; returns only what it prints |
This is the same shape as Cloudflare's Code Mode: a search tool and an execute tool, both taking code, with a fixed footprint however many operations exist. Here, snapshot and query_docs already cover the search half. Today src/toolsets.ts:54 knows only WDIO_MCP_TOOLS=all, so this set is not implemented.
Measured on the run_code branch, not main (tools/list, WDIO_MCP_RUN_CODE=1). The default (17 tools, 18,095 characters) and the full set match main:
| Tool set | Definitions |
|---|---|
Every tool (all, 42) |
46,666 chars (~13k tokens) |
| Default (17) | 18,095 chars (~5k tokens) |
code (6) |
10,273 chars (~3k tokens) |
start_session is 5,134 of the 10,273, so #205 reduces this set further. The definitions aren't where most of the saving is. Most of it is intermediate data that stays in run_code instead of passing through the model, which this set makes the main path.
Needs
- Refuse at startup.
WDIO_MCP_TOOLS=codewithout--allow-codeorWDIO_MCP_RUN_CODEfails at startup with a clear message. It must not silently list a set with norun_code. enable_toolsisn't listed. The set is fixed by design.- Open decision, before implementation: mobile and Electron. Should the set include
get_elementsand the gesture tools (tap_element,swipe, …) for mobile and Electron sessions? Gestures are reachable fromrun_codethrough WebdriverIO, but agents may still benefit fromget_elements. Pick one and state it here.
How to judge it. Add it as its own case in the decision-4 eval (#197) and compare it with listing every tool for tool search (#203). Count tokens, turns, success, and how often the model's run_code calls fail.
Security. Same as run_code: opt-in, because the code runs in the server process. See webdriverio/webdriverio#16495 (opt-in restricted context) and webdriverio/webdriverio#16496 (isolation as a session feature).
- Lingua principale
- TypeScript
- Stelle
- 45
- Fork
- 20
- Merge medio
- 2g 9h
- PR unite (30g)
- 16
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Nessuna 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 webdriverio/mcp
-
Issue templates with a required 'MCP client' fieldForse già presa @Winify l’ha presa 4 giorni fa. Apertaenhancement
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
webdriverio/mcp#208 ·
I maintainer di solito rispondono entro 2 giorni
-
v5: record per-step code from the @wdio/session agent history and drop MCP's per-action templatesAperta
Difficoltà 4/5 3-5 giorni Idoneità per principianti 30/100
webdriverio/mcp#214 ·
I maintainer di solito rispondono entro 2 giorni
-
Generated code skips switch_context, rotate_device, hide_keyboard, switch_tab and emulate_deviceForse già presa @VB-Blue l’ha presa 2 giorni fa. Aperta
Difficoltà 3/5 1-2 giorni Idoneità per principianti 78/100
webdriverio/mcp#213 ·
I maintainer di solito rispondono entro 2 giorni
-
bug
Difficoltà 3/5 1-2 giorni Idoneità per principianti 48/100
webdriverio/mcp#209 · 1 commento ·
I maintainer di solito rispondono entro 2 giorni
-
enhancement
Difficoltà 3/5 Mezza giornata Idoneità per principianti 65/100
webdriverio/mcp#206 ·
I maintainer di solito rispondono entro 2 giorni
Tutte le issue di webdriverio/mcp
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
I maintainer di solito rispondono entro 1 giorno
-
rel: fix
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
Deltares/fews-web-oc#2400 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
ardia-browser/ardia#4426 ·
I maintainer di solito rispondono entro 1 giorno
-
Bug report: isValidISODateDashOnly accepts text before or after the date-timeForse già presa @bardrop l’ha presa oggi. Aperta
Difficoltà 1/5 1-3 ore Idoneità per principianti 88/100
pnp/cli-microsoft365#7713 ·
I maintainer di solito rispondono entro 1 giorno
-
Diagram: Journey Type: Bug / Error
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
mermaid-js/mermaid-v13#1293 ·
I maintainer di solito rispondono entro 1 giorno