Your local agent has the protocol to read cloud state and the skill to write Terraform. It still shouldn't be allowed to touch your infrastructure.

Published: 2026-03-17

URL: https://sumantthakur.substack.com/p/the-mcp-illusion-why-agentic-ides


The AI coding landscape has shifted entirely. We are no longer in the era of “autocomplete.” We have entered the era of the Agentic IDE. Whether you are using Cursor, Windsurf, or a terminal-native agent like Claude Code, the abstraction has moved up. We aren’t just generating boilerplate text anymore; we are orchestrating workflows.

At the center of this shift are two massive breakthroughs that have finally solved the AI context problem: The Model Context Protocol (MCP) and Agent Skills. But by solving the context problem, we’ve accidentally introduced a massive security flaw into modern DevOps. We are giving local silicon workers direct access to production state, bypassing the very governance pipelines we spent a decade building. Thanks for reading Autonomous AI Architect! Subscribe for free to receive new posts and support my work.

The Plumbing vs. The Brain To understand why this is dangerous, you have to understand how modern agents are built. First, there is MCP (Model Context Protocol). This is the plumbing. It’s an open standard that allows an AI model to connect directly to external systems. Through an MCP server, your local agent can query Jira, read a live PostgreSQL database, or—crucially—pull your live AWS configurations directly into your editor.

Second, there are Agent Skills. If MCP is the plumbing, Skills are the brain. Through package managers like skills.sh, developers can inject high-density instructions into their agent. These skills teach the agent how to write the code, what your specific naming conventions are, and how your custom modules work.

The old argument that “AI doesn’t understand your cloud state” is officially dead. Between MCP pulling the live data, and Agent Skills providing the architectural rules, your local agent is fully aware.

The Illusion of Safety Let’s look at how developers are using these two technologies to write Infrastructure as Code (IaC) today. An engineer opens their IDE. They have an AWS MCP server running, and they’ve installed their team’s Terraform Agent Skill. They prompt: “Update our staging RDS instance to use our standard KMS encryption key. Read the current cloud state first to verify the instance ID.” The agent uses MCP to query the AWS API and realizes the database is currently unencrypted.

It then uses its Terraform Skill to write the perfectly compliant HCL code. Finally, it prompts the user in the terminal: Execute terraform apply? (Y/n). The engineer hits Y. It feels like the ultimate developer experience.

It is actually a decentralized orchestration nightmare. Share The Decentralized Nightmare When you rely on local Agentic IDEs to execute infrastructure changes, three critical control layers break immediately:

  1. State Locking Fails Infrastructure state is a shared reality. When multiple local agents use MCP to read state and then apply changes directly from engineers’ laptops, you introduce massive race conditions that corrupt state files and trigger deployment deadlocks.
  1. Policy Bypass Your company’s HashiCorp Sentinel or Open Policy Agent (OPA) rules live in your centralized CI/CD pipeline. By executing via a local terminal agent, the AI bypassed your security governance entirely. It operated outside the panopticon.
  1. The Invisible Blast Radius Let’s look back at the KMS encryption example. Changing a database to storage_encrypted = true after creation is an immutable change in AWS. The agent used MCP to read the state correctly, and its Skill wrote valid syntax. But the underlying cloud API still demands a destroy and recreate operation.

The engineer blindly approved the local tool call, and terabytes of data were wiped. The agent had the data and the instructions, but it lacked the centralized architectural context to stop a destructive blast radius. Leave a comment Intent Belongs in the IDE. Execution Belongs in the Pipeline.

There is a fundamental difference between giving an AI the tools to write code, and giving an AI a governance framework to deploy it. Agentic IDEs, MCP, and Agent Skills are fantastic for drafting intent. They make writing the Pull Request faster than ever.

But infrastructure automation should never be executed by a local client pinging APIs. It must be progressively constrained through a centralized pipeline. If we are going to let autonomous swarms manage infrastructure, we have to split the brain.

The IDE generates the plan; a centralized orchestration layer executes it. A true Agentic DevOps architecture requires: Centralized State Authority: Agents cannot run apply locally. They must propose plans to a centralized runner that enforces strict queuing and state locking. Runtime Governance (The Guardian Gate): Before any agent’s code touches the cloud, it must pass through a mandatory, centralized policy engine. If a local agent hallucinates a destructive action, the pipeline must mathematically block it.

Human-in-the-Loop (HITL) Validation: Instead of prompting a user with a vague Execute? (Y/n) in a terminal, the system should generate a deterministic deployment plan containing the exact cost estimates and policy validation results for a human architect to approve.

The Takeaway Agent Skills and MCP are incredible milestones for individual productivity. They finally give our agents the context they need to write good code. But DevOps is a team sport played on a highly volatile field. Context without guardrails equals chaos. We don’t need local agents with direct execution privileges. We need centralized orchestration systems that enforce governance, ensuring that no matter how capable the local agent gets, the deployment pipeline remains secure, observable, and strictly controlled.

A Quick Note: The exact centralized orchestration layer I described above is what my team and I are currently building at Flurit.ai. We are designing the industry’s first Agentic DevOps Orchestrator that natively separates local intent from governed execution. If your team is struggling to safely deploy into production infrastructure, we are opening up early access soon. Join the waitlist here.