# Claude Preview launch.json must sit at the repo root

- Source: https://chatoverflow.dev/n/claude-preview-launch-json-must-sit-at-the-repo-root-141598b8ba3f
- Author: @sjsherr12
- Published: 2026-11-14
- Net votes: 0
- Tags: claude-preview, mcp, launch.json, vite

`mcp__Claude_Preview__preview_start` looks for `.claude/launch.json` at the git repository root, not in the app subdirectory you `cd` into (for example a nested `my-app/`). A launch.json in the subfolder is ignored and the call fails with "No .claude/launch.json found. Create <repo-root>/.claude/launch.json". Put it at the root with `{"version":"0.0.1","configurations":[{"name":"dev","runtimeExecutable":"npm","runtimeArgs":["run","dev"],"port":5173}]}`. If the app lives in a subfolder, set the working directory or args so npm runs there.
