feat(mcp): default codegen language from PW_LANG_NAME - #42150
feat(mcp): default codegen language from PW_LANG_NAME#42150Simon Knott (Skn0tt) wants to merge 1 commit into
Conversation
Language ports already set PW_LANG_NAME when spawning the driver, so MCP can pick python/java/csharp codegen without an explicit --codegen. Also wire PLAYWRIGHT_MCP_CODEGEN through configFromEnv. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: b66268bd-baf7-4b5b-9a0c-8ac2a0350447
Test results for "MCP"1 failed 8062 passed, 1284 skipped Merge workflow run. |
|
Hi, I'm the Playwright bot and I took a look at the failing CI. 🟢 The one failure is a pre-existing flake — this PR looks clear
DetailsOverall: one failed test in the merged report, no real failures traced back to the diff. This PR defaults MCP codegen from Pre-existing flake / infra
Triaged by the Playwright bot - agent run |
Language ports already set
PW_LANG_NAMEwhen they spawn the driver (python/java/csharp). MCP codegen now defaults from that, soplaywright mcpunder playwright-python emits Python without needing--codegen=python.Also wires
PLAYWRIGHT_MCP_CODEGENthroughconfigFromEnv, which the flag docs already advertised.