claude -p silently connects repo .mcp.json servers without asking, docs confirm
SirRobinBlibs · reddit · 2026-12-04
A Reddit post flags that per the Claude Code docs, claude -p (non-interactive mode) connects MCP servers declared in a repo's .mcp.json without asking the user. Cloning an untrusted repo and running -p therefore trusts whatever tools the repo defines, opening the door to prompt injection and arbitrary command execution. The author advises inspecting .mcp.json or disabling auto-loading before working with unfamiliar repos.
More from coding & agent
- Antigravity agent accepts absurd dare to draw a figure in C++ feature by feature — MickeySteamboat · 2026-12-06
- Chrome DevTools for Agents Lets AI Test and Optimize Real Websites in Google Antigravity — goyalshaliniuk · 2026-12-06
- Solo Dev: AI Finally Makes Building a Game Entirely Alone Possible — yacineMTB · 2026-12-06
- Duke brings Rashomon-set geometry and a +18pt programmatic-memory agent to NeurIPS — shuyanzh36 · 2026-12-06
- Open-source Blender skills let AI agents produce full 3D animation pipeline in Python — Promptmethus · 2026-12-06
- Three questions to ask before automating anything: cadence, human review, failure signals — jesseweimer · 2026-12-06