Scaling DevOps with AI: MCP, AI Agents & Platform Engineering
Originally published on Naveed Ahmed's Engineering Blog . DevOps teams have been automating infrastructure for years. We have Terraform, Kubernetes, CI/CD pipelines, and dozens of monitoring tools. Yet engineers still spend a surprising amount of time investigating repetitive alerts, reviewing conf

Posted on Oct 29 • Originally published at blog.naveedkumbhar.com
Originally published on Naveed Ahmed's Engineering Blog.
DevOps teams have been automating infrastructure for years.
We have Terraform, Kubernetes, CI/CD pipelines, and dozens of monitoring tools.
Yet engineers still spend a surprising amount of time investigating repetitive alerts, reviewing configuration changes, and collecting context during incidents.
AI agents may help reduce that workload.
But giving an AI agent access to production infrastructure introduces a different problem: how do you make sure it acts safely?
I recently explored this question while writing about scaling DevOps in the age of AI.
Here are the most important architectural lessons.
Traditional automation works well when the steps are known.
AI can help with tasks where engineers first need to collect and interpret context.
For example, an AI-assisted incident workflow might:
That can reduce investigation effort, provided the output is checked against actual system evidence.
The important distinction is that proposing a fix and safely executing a fix are separate responsibilities.
Model Context Protocol (MCP) provides a standardized way for AI applications to work with external tools.
For DevOps teams, that might mean exposing narrowly scoped diagnostic operations instead of a general-purpose production terminal.
get_pod_events(namespace, pod) get_deployment_history(namespace, deployment) query_prometheus(metric, time_range) get_recent_application_errors(service) Enter fullscreen mode Exit fullscreen mode However, MCP doesn't automatically enforce security.
The server implementing these tools must apply authentication, authorization, parameter validation, rate limits, and auditing.
A read-only Kubernetes service account is a better starting point than cluster-admin credentials.
Not every infrastructure action carries the same risk.
I prefer separating automation into three levels.
These controls must be enforced outside the language model.
You can use tools such as Open Policy Agent to evaluate structured requests, but a policy decision must still be enforced by the execution service.
Even a Pod restart can cause problems, so production change automation needs workload-aware safeguards.
Imagine an application starts returning 5xx errors immediately after deployment.
kubectl get pods -n production kubectl describe deployment api -n production kubectl rollout history deployment/api -n production kubectl get events -n production --sort-by =.lastTimestamp Enter fullscreen mode Exit fullscreen mode It could then correlate that information with application logs, traces, and recent code changes.
The result might be a concise incident briefing containing:
That's useful even if the agent never executes a production mutation.
AI-generated infrastructure is only as useful as the standards around it.
Without reusable patterns, different services can end up with inconsistent security settings, readiness probes, resource limits, and monitoring.
An internal developer platform can provide approved templates, reusable modules, and controlled self-service workflows.
AI agents can work within those boundaries instead of generating a completely new infrastructure design for every request.
This is where platform engineering becomes important: it creates reliable building blocks for engineers and automation alike.
Read Scaling DevOps in the Age of AI: Full Architecture Guide
AI may change how DevOps work gets done, but it doesn't remove the need for engineering judgment.
The opportunity is to automate repetitive investigation, create reliable self-service systems, and reserve human attention for decisions that truly need it.
Would you allow AI to execute production changes, or keep it restricted to diagnosis and recommendations?
Written by Naveed Ahmed — Lead DevOps & Platform Architect
Engineering Blog | GitHub | Kubernetes Mastery