Applied AI

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.

Sources

  • Security research report on deprecated MCP servers installed by coding agents. Security research report. November 3, 2026.

Was this useful?

Get in touch

Seeing one of these in your system?

Describe what exists today and where it breaks. We will come back with a technical point of view and a scoped first step.