Subscribe to the Non-Human & AI Identity Journal

What breaks when MCP connections are added to coding assistants without review?

The trust boundary expands beyond the repository into ticketing systems, databases, wikis, and external APIs. If those connections are not inventoried and owned, security teams lose visibility into what data the agent can reach and where it can send it. That makes access review incomplete and offboarding unreliable.

Why This Matters for Security Teams

Adding MCP connections to a coding assistant is not just a productivity change. It creates a wider execution path from code to business systems, and that path often includes ticketing, databases, internal docs, and external APIs. Once those tools are exposed, the assistant can read, combine, and sometimes act on data that sits far outside the repository. That is why access review, offboarding, and data handling controls must extend to the model context boundary, not stop at source control.

The risk is not theoretical. NHIMG research on The State of MCP Server Security 2025 found that only 18% of mcp server deployments implement any form of access scoping for tool permissions, and 53% expose credentials through hard-coded values in configuration files. In other words, many environments are connecting powerful tools before they have even decided who owns them or what the assistant is allowed to do with them.

This is where traditional review processes break down. The repository may be approved, but the connected systems are not, and the assistant inherits whatever those tools can reach. That gap is exactly what current guidance in OWASP Agentic AI Top 10 is trying to surface for autonomous and tool-using systems. In practice, many security teams encounter overprivileged assistant workflows only after data has already moved through an unreviewed MCP path.

How It Works in Practice

The first thing that breaks is the assumption that the assistant only needs repository-level trust. An MCP-enabled coding assistant can chain tools, query internal knowledge stores, open tickets, call APIs, and retrieve secrets if those connectors are not tightly scoped. That means the effective trust boundary moves from the codebase to every system the model can touch. Current best practice is to inventory each MCP server, assign an owner, classify the data it exposes, and define whether the assistant is read-only, write-capable, or able to trigger side effects.

Security teams usually get better results when they treat each connection as a separate control plane item. That includes:

  • Documenting every MCP server and the business purpose it serves.
  • Mapping each tool to the minimum data scope and minimum action scope.
  • Requiring review for any connector that can write, delete, approve, or export data.
  • Separating development, staging, and production connectors so assistants do not inherit broad production access by default.
  • Using short-lived secrets and scoped tokens instead of static credentials in configuration files.

This aligns with NIST SP 800-53 Rev 5 Security and Privacy Controls, especially access enforcement, least privilege, and configuration management. It also matches NHIMG’s analysis in Analysis of Claude Code Security, where tool-mediated code assistants are only as safe as the systems they are allowed to call.

The operational point is simple: if the assistant can reach a system, it can potentially misuse that system through prompt injection, overbroad permissions, or accidental tool selection. These controls tend to break down when MCP servers are added ad hoc to fast-moving engineering workflows because no one performs a complete connector review before the assistant is put into daily use.

Common Variations and Edge Cases

Tighter MCP review often increases delivery friction, so organisations have to balance speed against governance overhead. That tradeoff is real, especially when engineering teams want to connect many tools quickly. Best practice is evolving, but there is no universal standard yet for how granular MCP approval should be across internal, third-party, and temporary connectors.

One common edge case is the “read-only” connector that later becomes write-capable through a configuration change. Another is a shared MCP server used by multiple assistants, where ownership is unclear and revocation is slow. A third is indirect exposure: the assistant may not have direct access to a database, but it can still reach that data through a wiki export, ticket attachment, or API response.

For that reason, governance should focus on both capability and context. Reviewers need to ask whether the tool can return sensitive data, whether it can trigger irreversible actions, and whether the permission can be revoked independently of the code assistant. The emerging guidance in OWASP Agentic Applications Top 10 is to treat every tool connection as part of the attack surface, not as a harmless productivity plugin. That becomes especially important when assistants are connected to external SaaS systems or environments with weak secret hygiene.

Where this guidance breaks down most often is in legacy environments with shared service accounts and no per-tool audit trail, because there is no reliable way to tell which connector actually performed the action.

Standards & Framework Alignment

This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.

OWASP Agentic AI Top 10, CSA MAESTRO and OWASP Non-Human Identity Top 10 address the attack and risk surface, while NIST AI RMF and NIST CSF 2.0 set the governance and control requirements practitioners need to meet.

Framework Control / Reference Relevance
OWASP Agentic AI Top 10 Tooling and permissions exposure Covers risky assistant-to-tool connections and overbroad action paths.
CSA MAESTRO Agentic governance and policy enforcement Directly addresses governance gaps in autonomous, tool-using AI systems.
NIST AI RMF Supports risk management for AI systems whose behaviour can shift at runtime.
OWASP Non-Human Identity Top 10 NHI-03 Addresses secret handling and credential exposure in MCP-connected systems.
NIST CSF 2.0 PR.AC-4 Least-privilege access review is essential once assistants inherit tool access.

Apply AI RMF governance to define accountable owners, monitoring, and escalation paths for MCP-enabled assistants.