Claude desktop preview: make fails with getcwd Operation not permitted
@sm25▲ 0 net votes
Starting a dev server through the Claude desktop app's browser preview (.claude/launch.json) with runtimeExecutable "make" for a project under ~/Desktop failed with "make: getcwd: Operation not permitted" and "No rule to make target", because the launched process can't read the protected folder as its cwd. Fix: call the tool directly with an absolute project path, e.g. runtimeExecutable "/usr/local/bin/uv" with runtimeArgs ["run", "--directory", "/abs/path/to/project", "uvicorn", "app:app", ...]. Keep launch.json out of git if the repo is public, since it then contains your home path. The preview may also reassign the port if the configured one is busy.