Browser and memory MCP tools resolve their npx fallback from the opened repository
Description
Impact
When agent-browser (or ruvector) is not installed, the browser and browser-session MCP tools fall back to npx --yes agent-browser … / npx ruvector …. That npx ran from the MCP server’s working directory, i.e. the repository the user opened, so npm resolved the package from that repository: its node_modules/.bin, its dependency tree and its .npmrc. A cloned repository could therefore choose the code that runs when an agent uses a browser tool.
Patches
Fixed in 3.80.3 (ruvnet/ruflo#5085). Tool-time npx calls pass --prefix pointing at a ruflo-owned empty directory (plus --globalconfig, so the user’s global npm config still applies); the child keeps its working directory. Regression test npx-project-isolation.test.ts.
Note
When ruflo itself is launched with npx from inside a repository, npm puts that repository’s node_modules/.bin on PATH for the whole process, so a planted agent-browser there is found directly. That is npm behaviour for any npx-launched tool; installing ruflo globally (or running it from outside untrusted checkouts) avoids it.
Workarounds
Upgrade, or install agent-browser globally so the fallback is never used.