How do you stop an AI coding agent from installing an MCP server that will never get a patch?
A coding agent will install a package name from memory. Allow one MCP server per service, and reject archived packages before they run.
1 min readDEV GroupApplied AI · Security
The package name is untrusted
A developer asks a coding agent to set up a GitHub MCP. The agent picks a package name from training data: an archived reference server that will never receive a security update, even after the service owner publishes an official server. A security research report published around 3 November 2026 found, across multiple coding harnesses, about 98% of documented sessions installed a deprecated MCP reference server. Those servers had four high-severity flaws, including remote code execution in a browser-style server. Maintainers said no patch is coming, because the repository is archived. Deprecated npm packages still install through npx, with no lockfile entry. Composition analysis, endpoint detection, and manifests miss them. One agent saw the deprecation notice on npm, installed anyway, and did not warn the user. Asking the agent to look the package up first does not fix this.
Allow one server per service
Treat the package name the agent chooses as untrusted. Approve one MCP server package, or one binary, per external service, on an allowlist the harness or a pre-execution hook enforces. Refuse any MCP config or install that is not on the list. Treat deprecation and archive status as a hard reject before approval. Inventory MCP configs on developer machines the same way you inventory tokens. Allowlists, inventory, and the enforcement around them are software work, and that is where we fit.
- Related: deciding whether an AI agent's action actually runs
- Related: why an AI agent's tool list can't be its permission system
- Related: keeping a dependency install from running with developer-machine secrets
- How we work: scope, prototype, ship, run
- Running coding agents with MCP in your org? Start a conversation
Sources
- Security research report on deprecated MCP servers installed by coding agents. Security research report. November 3, 2026.
Was this useful?
Related notes
Applied AI2 min read
How do you keep an AI coding agent's saved approvals from committing secrets?
An agent that remembers an approval can save a secret into a file inside the repo. Keep that file out of git, and do not approve the literal command.
- Agents
- Secrets
- CI
Applied AI1 min read
How do you catch an AI feature that is confidently wrong while monitoring stays green?
Uptime stays green while an AI feature is confidently wrong. Measure whether the answer was right, and gate releases on real failures.
- Evaluation
- Monitoring
- Agents
Product engineering2 min read
How do you catch an API you depend on being retired before it starts returning errors?
Cloudflare, Databricks, Penneo and Meta all retired API features in November 2026. Inventory what you call, track sunset dates, and test fallbacks.
- Dependencies
- API contracts
- Deprecations
- Monitoring