Repository navigation
Description
Description of the bug
skills/cookie-debugging/SKILL.md (Step "Deep Audit: Lighthouse Third-Party Cookies") runs lighthouse_audit with outputDirPath: "/tmp/lh-report" and then reads /tmp/lh-report/report.json, and skills/a11y-debugging/SKILL.md gives the same directory as its outputDirPath example. With an MCP client that does not negotiate roots and default server flags, file output is limited to the OS temp directory, which on macOS is the per-user $TMPDIR under /var/folders/..., not /tmp. The documented call fails with Access denied, and the follow-up report.json command has nothing to read. A client whose roots do not include /tmp gets the same denial on any OS.
Actual behavior
On both tested builds the call with outputDirPath: "/tmp/lh-report" returned isError: true:
1.10.1: Error: Access denied: path /tmp/lh-report (canonical: /private/tmp/lh-report) is not within any of the configured workspace roots.
main: Error: Access denied: path "/tmp/lh-report" (canonical: "/private/tmp/lh-report") is not within any of the configured workspace roots.
/tmp/lh-report was not created. The control call without outputDirPath succeeded and listed its reports under the temp directory, for example /var/folders/<...>/T/chrome-devtools-mcp-<random>/report.json. The default root is os.tmpdir() (DEFAULT_FILESYSTEM_ROOT in src/config/mcp-options.ts; docs/configuration.md, --allowUnrestrictedPaths: "By default, file-writing tools are restricted to the OS temp directory when no roots are configured"). Not executed: on Linux, where os.tmpdir() is normally /tmp, the documented path would be allowed for a client without roots.
Reproduction
- Serve any HTML page from a loopback server (port shown as
PORT); the result does not depend on page content. - Start each tested build over stdio with
--headless --isolated --no-usage-statistics --no-performance-crux, from a client without therootscapability, and send:
{"name":"navigate_page","arguments":{"pageId":1,"url":"http://127.0.0.1:PORT/"}}
{"name":"lighthouse_audit","arguments":{"pageId":1,"mode":"navigation","outputDirPath":"/tmp/lh-report"}}
{"name":"lighthouse_audit","arguments":{"pageId":1,"mode":"navigation"}}Expectation
The cookie-debugging skill (skills/cookie-debugging/SKILL.md:104-107) instructs: "Run lighthouse_audit with mode: "navigation" and outputDirPath: "/tmp/lh-report"", then node -e "const r=require('/tmp/lh-report/report.json'); ...". The a11y-debugging skill (skills/a11y-debugging/SKILL.md:22) says "Set outputDirPath (e.g., /tmp/lh-report) to save the full JSON report". Following either step under the server's default configuration should save report.json where the next step reads it.
MCP configuration
--headless --isolated --no-usage-statistics --no-performance-crux unless the reproduction states otherwise (update checks disabled with CHROME_DEVTOOLS_MCP_NO_UPDATE_CHECKS=1).
Chrome DevTools MCP version
1.10.1 (npm) and main 5ddb0a3 (local build)
Chrome version
154.0.8037.98 (stable)
Node version
v22.23.2
Operating system
macOS 27.0
Environment details
- Release build:
chrome-devtools-mcp@1.10.1from npm. mainbuild: local build ofmainat 5ddb0a3.- Google Chrome 154.0.8037.98 (stable), Node v22.23.2, macOS 27 (
os.tmpdir()resolves to/private/var/folders/<...>/T). - MCP client: a minimal stdio client that does not declare the
rootscapability. - Both skill files are identical at tag
chrome-devtools-mcp-v1.10.1and onmain.
Evidence
- Expected source:
skills/cookie-debugging/SKILL.md:104-107andskills/a11y-debugging/SKILL.md:22. - Failure source:
lighthouse_auditresults from both tested builds quoted under Actual behavior; default root insrc/config/mcp-options.ts(DEFAULT_FILESYSTEM_ROOT = [os.tmpdir()]) and the denial message insrc/McpContext.ts. - Evidence provenance: observed
- Local verification: reproduced
- Reproduction completeness: complete
The full open and closed issue and PR corpus was screened as of 2026-10-06. Related but distinct: #2917 (the no-roots startup warning that would explain the temp-directory limit never prints under default flags) and #2909 (CLI path restriction) concern the restriction's behavior and messaging, not these skill examples; #2906 and #2920 cover other lines of the cookie-debugging skill, and open PR #2922 does not change these lines. No issue mentions /tmp/lh-report.
Fix check
Failing now: the cookie-debugging deep-audit step and the a11y-debugging outputDirPath example, followed as written with a client without roots on macOS, return Access denied and leave no report.json for the next command. Restored: following each skill's Lighthouse report step as written, under default server flags and a client without roots on macOS, produces a report.json that the skill's next command can read. Control: the call without outputDirPath keeps saving its reports under the OS temp directory.
Activity
docs(skills): remove invalid outputDir flag from lighthouse_audit cal…
chore(main): release chrome-devtools-mcp 1.11.0 (#2823)