Ai4
Binding language models to structured MCP tool interfaces eliminates platform engineering toil by enabling self-service triage, automated Prometheus pruning, and drift reconciliation.
AI-assisted summary of AI-Driven Platform Engineering With Philo — original source. Check the original for full context.
Source published:
Detailed notes
## Background Published by Ai4 on YouTube on August 20, 2026, this presentation features Nitish Mane, an Infrastructure Engineer at Philo. According to the page description, the session explores how platform engineering teams leverage the Model Context Protocol (MCP) and frameworks like FastMCP across cloud-native tools to eliminate operational toil, speed up incident response, and enable self-service infrastructure.
## TL;DR Nitish Mane demonstrates how Philo applies AI agents powered by the Model Context Protocol (MCP) to transform cloud infrastructure operations and empower service developers. The talk walks through concrete MCP integrations across the stack, including Kubernetes pod and network debugging, Prometheus cardinality optimization via Grafana, autonomous Terraform drift detection, and automated on-call handoffs and postmortems with PagerDuty. Mane concludes by showing how to build custom, secure internal MCP servers using FastMCP with built-in RBAC, pagination, and PII redaction guardrails.
## Atmosphere & style The presentation carries a pragmatic, relatable conference vibe grounded in the shared operational headaches of platform engineering, DevOps, and on-call rotations. Mane speaks in an approachable, engineer-to-engineer style, validating common frustrations like repetitive Slack triage and 1:00 AM shift handoffs with humor and real-world war stories. The overall arc feels empowering and reassuring, demystifying AI agents from speculative hype into deterministic, structured tools that meaningfully reduce burnout.
## Key takeaways - [00:04](https://www.youtube.com/watch?v=zxQRuDs-gkU&t=4s) The primary goal of AI-driven platform engineering at Philo is to eliminate repetitive operational triage questions and empower service developers to debug their own workloads self-sufficiently. - [01:55](https://www.youtube.com/watch?v=zxQRuDs-gkU&t=115s) The Model Context Protocol (MCP) replaces stochastic LLM guesswork and raw API hallucinations with structured, deterministic tool definitions bound to explicit platform actions. - [03:04](https://www.youtube.com/watch?v=zxQRuDs-gkU&t=184s) Kubernetes MCP servers transform cluster debugging into self-service workflows by autonomously diagnosing unschedulable pending pods, networking ingress route failures, and config rollout triggers. - [05:23](https://www.youtube.com/watch?v=zxQRuDs-gkU&t=323s) Integrating Grafana, Loki, and Tempo via official MCP servers enables natural-language telemetry querying, bypassing the need to hand-craft intricate PromQL or LogQL queries during incident triage. - [06:44](https://www.youtube.com/watch?v=zxQRuDs-gkU&t=404s) Philo resolves Prometheus Out Of Memory (OOM) crashes by using Grafana MCP to inventory active dashboard metrics, identify unused scrape targets, and generate relabeling configs to drop unneeded time series. - [09:05](https://www.youtube.com/watch?v=zxQRuDs-gkU&t=545s) Embedding an `agent.md` context file within Terraform module directories provides AI models with explicit repository conventions, approved providers, and architectural layouts. - [09:05](https://www.youtube.com/watch?v=zxQRuDs-gkU&t=545s) Autonomous daily drift detection agents leverage Terraform MCP to evaluate plans against cloud state, generating targeted `terraform import` blocks for unmanaged resources and mitigating change anxiety. - [10:54](https://www.youtube.com/watch?v=zxQRuDs-gkU&t=654s) Argo CD MCP servers surface synchronization errors such as immutable storage class edits, missing container tags, and multi-cloud configuration discrepancies across AWS, GCP, and OCI. - [12:41](https://www.youtube.com/watch?v=zxQRuDs-gkU&t=761s) PagerDuty MCP acts as the primary operational entry point, automating overnight shift handoffs by aggregating Slack discussions and alert history into structured Notion documentation. - [13:43](https://www.youtube.com/watch?v=zxQRuDs-gkU&t=823s) Incident postmortems are streamlined by using PagerDuty MCP to automatically reconstruct participant timelines, acknowledgement metrics, and diagnostic tool links. - [15:11](https://www.youtube.com/watch?v=zxQRuDs-gkU&t=911s) GitLab MCP servers provide structured, AI-native schemas that outperform raw CLI text outputs when feeding failed CI/CD pipeline job logs and complex merge requests into LLMs for root-cause analysis. - [16:29](https://www.youtube.com/watch?v=zxQRuDs-gkU&t=989s) The n8n MCP server enables automated pre-scaling and load testing workflows ahead of high-traffic broadcast surges, such as the *Yellowstone* finale, while extending automation to non-technical teams. - [17:42](https://www.youtube.com/watch?v=zxQRuDs-gkU&t=1062s) Custom MCP servers built with FastMCP allow safe querying of sensitive internal systems like Amazon RDS by enforcing PII redaction, strict RBAC, and response pagination before data reaches the model context. - [17:42](https://www.youtube.com/watch?v=zxQRuDs-gkU&t=1062s) Any standard OpenAPI microservice specification can be automatically converted into an MCP server without manually hand-crafting protocol boilerplate.
## Detailed walkthrough ### [00:04](https://www.youtube.com/watch?v=zxQRuDs-gkU&t=4s) Introduction to Philo and the Platform Engineering Reality
Nitish Mane introduces himself as a cloud infrastructure engineer working on the backend at Philo. When mingling in the hallways before the session, he noticed that many attendees were unfamiliar with what Philo actually does, so he begins by setting the stage. Philo is a direct-to-consumer (B2C) cable TV streaming platform delivering live entertainment in partnership with major television network providers such as Paramount and HBO. Subscribers sign up for the consumer product to stream television channels, and Mane's primary charter on the infrastructure engineering team is to maintain and guarantee that the core video streaming pipelines remain consistently operational and resilient.
Addressing the audience, Mane gauges the room by asking how many attendees work as DevOps engineers, platform engineers, or Site Reliability Engineers (SREs). He touches on a universal frustration shared across platform teams: the constant, repetitive interruptions. Every time a platform engineer gets pinged with an operational question, the immediate internal reaction is, "Why am I getting pinged for this?" The goal of the session is exploring how teams can transition away from answering mundane triage questions and instead empower service developers to be fully self-sufficient in debugging their own workloads, thereby unlocking 10x engineering productivity across the organization.
[01:55](https://www.youtube.com/watch?v=zxQRuDs-gkU&t=115s) Defining the Model Context Protocol (MCP) in Platform Automation
Before diving into specific tooling, Mane establishes a working definition of the Model Context Protocol (MCP). While the concept has been a dominant theme throughout the conference, he clarifies its concrete architectural role: MCP provides a structured, deterministic tool-calling interface through which large language models (LLMs) or agentic workflow harnesses execute external actions against underlying systems.
```mermaid flowchart LR accTitle: Architecture of AI Agent with MCP Integrations subgraph Core ["Agentic Control Plane"] A["LLM / Agent Harness"] end subgraph Protocols ["Model Context Protocol (MCP)"] B["Kubernetes MCP"] C["Grafana / Loki / Tempo MCP"] D["Terraform MCP"] E["Argo CD MCP"] F["PagerDuty MCP"] end subgraph Infra ["Target Infrastructure"] G["K8s Clusters & Pods"] H["Metrics, Logs & Traces"] I["Cloud IaC State"] J["GitOps Deployments"] K["On-Call & Incidents"] end
A --> B & C & D & E & F B --> G C --> H D --> I E --> J F --> K ```
Mane emphasizes that MCP replaces stochastic guesswork with explicit tool definitions. Rather than asking an LLM to hallucinate shell commands or raw API interactions, the model is bound strictly to pre-declared tool calls exposed by each MCP server. This constrained environment ensures that autonomous workflows only invoke valid, authorized operations against cloud-native infrastructure.
[03:04](https://www.youtube.com/watch?v=zxQRuDs-gkU&t=184s) Streamlining Kubernetes Troubleshooting with MCP
Mane highlights Kubernetes as the industry's default workload platform. While there is not yet an official Cloud Native Computing Foundation (CNCF) MCP server for Kubernetes, several robust open-source implementations provide full CRUD operations against Kubernetes clusters. Giving an LLM harness access to a Kubernetes MCP server transforms everyday cluster debugging from a platform-team bottleneck into an automated self-service experience.
Developers deploying microservices frequently reach out to platform teams when pods become stuck in a `Pending` state. An LLM armed with the Kubernetes MCP server can immediately inspect the cluster state to pinpoint whether the pod is unschedulable due to CPU or memory resource exhaustion, node limits being hit, or missing node taints and tolerations. Similarly, Mane points out that microservice networking across ingress controllers is notoriously tedious to debug. When multi-endpoint ingress routes fail to forward traffic due to incorrect path definitions, blocked internal ports, or firewall misconfigurations, an agent can trace the routing path directly through the Kubernetes API. The protocol also simplifies day-two operational chores, such as automatically rolling out deployments when underlying application secrets change.
- Common root causes resolved via Kubernetes MCP include exhausted node pod capacity limits, unsatisfied pod anti-affinity rules, and missing tolerations. - Routing failures spanning multi-endpoint ingress controllers, service definitions, and security groups can be diagnosed without manual `kubectl` context switching. - Enables autonomous trigger rollouts of pods and stateful workloads immediately following configuration or secret updates.
[05:23](https://www.youtube.com/watch?v=zxQRuDs-gkU&t=323s) Observability Workflows: Grafana, Prometheus, Loki, and Tempo
Observability is a cornerstone of Philo's operational stack, where open-source Grafana forms the centerpiece alongside Prometheus, Loki for logs, and Tempo for distributed tracing. Mane highlights that Grafana has released official MCP server implementations supporting Loki and Tempo. Integrating these telemetry backends into an AI context allows engineers to query complex operational metrics, log streams, and traces using natural language rather than crafting intricate PromQL or LogQL queries by hand.
The Grafana MCP server drastically reduces the barrier to building dynamic dashboards and analyzing metric anomalies during production alerts. By pulling rich time-series context and distributed spans straight into the agent's context window, engineers can cross-examine active alarms against metric spikes across microservices, isolating root causes far faster than manual dashboard hopping permits.
[06:44](https://www.youtube.com/watch?v=zxQRuDs-gkU&t=404s) Production Triage: Broken Dashboard Plugins and Prometheus OOMs
Mane shares two distinct, practical war stories demonstrating how Philo applies Grafana MCP in day-to-day operations. The first involved an upgrade to Grafana 12. As Grafana updates, its sprawling ecosystem of community and third-party plugins automatically updates alongside it. Following the upgrade, a critical internal business user plugin containing custom JavaScript abruptly stopped rendering because underlying backend API endpoints had changed. Tracing the breakdown through the Grafana MCP server and an LLM enabled Mane's team to rapidly diagnose the altered endpoints and identify the exact JavaScript changes needed to restore the form plugin.
The second issue centers on the common dilemma of Prometheus Out Of Memory (OOM) crashes. When engineering teams initially stand up Prometheus, they routinely leave scrape targets at default configurations, ingesting every metric emitted by client libraries under the assumption that someone might need them later. As cardinality explodes, the Prometheus instance repeatedly crashes due to memory limits:
> "If you have seen this issue before, you know that this issue can be solved using dropping unused metrics, right? So how do you find out which metrics are not used?"
Using the Grafana MCP server, an AI agent can scan every dashboard active in Grafana, compile an inventory of every metric actually referenced in dashboard panels, and cross-reference that list against the active Prometheus scrape dictionary. The agent then generates Prometheus metric-relabeling overrides to systematically drop all unreferenced metrics, curbing memory pressure while leaving an easy path to re-enable them if future requirements demand it. Mane adds that this approach similarly catches broken dashboard variables that produce "no data" states when upstream metric names change across software version migrations.
[09:05](https://www.youtube.com/watch?v=zxQRuDs-gkU&t=545s) Terraform MCP and Autonomous Drift Detection
Philo relies on Terraform for all of its Infrastructure as Code (IaC). To optimize how AI models generate and maintain Terraform configurations, Mane recommends structuring IaC repositories with dedicated markdown guidance files, such as an `agent.md`, placed directly within every module directory. This practice gives the agent explicit context regarding directory layouts, module relationships, approved providers, and standard conventions, removing the guesswork over which resource or data blocks to construct.
```mermaid flowchart TD accTitle: Autonomous Terraform Drift Detection Workflow subgraph Detection ["Scheduled Scan"] S["Daily Scheduled Job"] --> T["Terraform MCP Server"] T --> P["Generate `terraform plan`"] end subgraph AgenticAnalysis ["AI Drift Agent"] P --> A["Analyze Discrepancies\n& Cloud Account State"] A --> G["Categorize Drift"] end subgraph Remediation ["Actionable Output"] G --> R1["Suggest `terraform import`\n(Unmanaged Resources)"] G --> R2["Suggest Code Reverts\n(Manual Console Changes)"] G --> R3["Prepare PR / Plan Review"] end ```
A major challenge in mature organizations is configuration drift. Startups rarely begin their lifecycle with disciplined IaC practices; they construct their core products first, only standardizing on Terraform and Kubernetes later once multiple team members already possess direct access to cloud consoles. Consequently, manual tweaks accumulate, creating chronic drift. When engineers follow proper IaC processes by submitting merge requests, those requests often stall indefinitely because teams fear that applying changes might inadvertently sever a network port or break a dependent service. To eliminate this anxiety, Philo implemented an autonomous drift detection agent:
- Runs on a daily automated cadence via the Terraform MCP server to generate plans against live cloud infrastructure. - Analyzes plan outputs against actual cloud account configurations to distinguish between unmanaged resources and unintended manual modifications. - Recommends concrete actions, such as generating precise `terraform import` blocks for newly adopted assets or alerting teams to safely reconcile obsolete resources.
[10:54](https://www.youtube.com/watch?v=zxQRuDs-gkU&t=654s) GitOps Delivery with Argo CD MCP
For continuous deployment and GitOps reconciliation, Philo relies on Argo CD to continuously synchronize live cluster state with git repositories. Mane explains that deployments frequently end up stuck in an unhealthy or degraded status for subtle reasons. Common culprits include attempts to alter immutable storage class fields on persistent volumes, references to container image tags that have been pruned or do not exist, missing Custom Resource Definitions (CRDs), and pods trapped in continuous `CrashLoopBackOff` cycles.
An Argo CD MCP server surfaces these synchronization failures directly to the LLM agent. The agent can quickly surface when development-specific container tag overrides were mistakenly pushed to production environments where those tags are absent. Furthermore, when deploying across complex multi-cloud and multi-region topologies—such as workloads distributed across Oracle Cloud Infrastructure (OCI), AWS, and Google Cloud Platform (GCP)—the Argo CD MCP integration allows engineers to filter, synchronize, and inspect applications across heterogeneous cloud environments simultaneously.
[12:41](https://www.youtube.com/watch?v=zxQRuDs-gkU&t=761s) Incident Response and Shift Handoff with PagerDuty MCP
Mane highlights the PagerDuty MCP server as arguably the most critical and frequently used integration in the platform toolkit, describing it as the primary entry point for operational AI agents. PagerDuty sits at the center of Philo's on-call lifecycle, aggregating alerts across disparate systems, notifying the appropriate engineers, and tracking incident resolution and schedules.
Because Philo organizes on-call coverage across specialized teams—including frontend, backend, billing, and platform engineering—handoff friction during shift rotations is an ongoing challenge. An engineer woken up at 1:00 AM to handle an incident typically struggles to deliver a comprehensive, structured briefing when their shift concludes and the next engineer rotates on call. By integrating PagerDuty via MCP, Philo began designing an automated on-call handoff agent capable of tracking overnight incidents, summarizing remediation steps taken, and ensuring that critical context seamlessly transfers across shifts without human fatigue causing operational blind spots.
[13:43](https://www.youtube.com/watch?v=zxQRuDs-gkU&t=823s) Automating On-Call Handoffs and Postmortems with MCP
Shifting on-call responsibilities between engineers often introduces operational friction and lost context. Nitish Mane describes how the platform team at Philo found manual handoffs increasingly tedious because engineers had to spend extensive time explaining ongoing issues and active system states to the next person coming on rotation. To streamline this transition, they built an automated handoff agent. Operating as a scheduled workflow during shift transitions, the agent pulls recent communication logs from Slack, aggregates the state of active operations, and compiles an organized Notion document so the incoming engineer knows precisely where to take over.
```mermaid flowchart TD accTitle: Automated On-Call and Incident Workflow subgraph Inputs["Telemetry & Comms"] A["Slack Discussions"] B["PagerDuty Alerts"] end subgraph AgentLayer["Agentic Processing"] C["Handoff & Incident Agent"] D["PagerDuty MCP Server"] end subgraph Outputs["Generated Documentation"] E["Shift Handoff (Notion)"] F["Timeline & Postmortem"] end A --> C C --> E B --> D D --> F ```
The team applied a similar agentic approach to incident postmortems—an essential engineering requirement that is universally regarded as "another tedious task which we all hate to do, but we have to do it." When an outage occurs, engineers must reconstruct who was present on the incident call, when alerts were acknowledged, links to external diagnostic tools, and potential revenue impact. Using a PagerDuty MCP server, the incident timeline and alert metadata are automatically synthesized into a comprehensive retrospective document. Beyond postmortems, MCP serves as a conversational on-call assistant capable of dynamically pulling organizational context—such as identifying the exact engineering point of contact for the billing team during a service disruption.
- **Automated Handoffs:** Slack channel activity is parsed and formatted directly into a Notion handoff page. - **Incident Postmortems:** PagerDuty MCP structures timeline events, responders, acknowledgement timestamps, and external metric links. - **Conversational Directory:** Agents route domain-specific questions to the correct on-call teams during live triaging.
---
[15:11](https://www.youtube.com/watch?v=zxQRuDs-gkU&t=911s) GitLab MCP Server for CI/CD Diagnostics and PR Reviews
While many organizations operate on GitHub Actions, Philo's infrastructure ecosystem runs heavily on GitLab. Using a GitLab MCP server allows developers and platform engineers to create and update pull/merge requests, inspect failed CI/CD pipeline job logs, and feed runtime diagnostic output straight into an LLM for root-cause analysis. This capability substantially reduces review fatigue on massive, complex merge requests that might otherwise consume an entire sprint's worth of engineering time.
Mane addresses a common architectural question: why deploy an MCP server when command-line tools like the official `glab` CLI already exist? The critical distinction lies in formatting and intent. While CLI tools output raw terminal streams engineered for human inspection, an MCP server delivers structured, AI-native schemas optimized for language model tokenization, tool-calling, and reasoning.
```mermaid flowchart LR accTitle: GitLab MCP Diagnostic Pipeline subgraph Pipeline["GitLab CI/CD"] A["Job Failure Logs"] end subgraph Bridge["Protocol Layer"] B["GitLab MCP Server\n(Structured Schemas)"] end subgraph Assistant["AI Diagnostic Layer"] C["LLM / Claude Code"] D["Root Cause & MR Fix"] end A --> B B --> C C --> D ```
- **Pipeline Failure Remediation:** Job logs from failing CI runs are ingested directly into the LLM context to pinpoint errors. - **MR Comprehension:** AI-assisted descriptions and clear inline comments make massive code changes digestible for reviewers. - **CLI vs. MCP:** Unlike human-oriented CLI tools like `glab`, MCP servers provide deterministic, AI-native responses designed for model consumption.
---
[16:29](https://www.youtube.com/watch?v=zxQRuDs-gkU&t=989s) Event-Driven Scaling and Workflows with the n8n MCP Server
Connecting LLMs to the workflow automation platform n8n provides a natural-language orchestration layer across technical and non-technical business units. As a streaming service, Philo experiences massive, predictable traffic surges during marquee broadcast events—such as season finales of major shows like *Yellowstone*—or high-concurrency retail milestones like Thanksgiving sales. Platform engineers utilize an n8n MCP server to rapidly generate and trigger automated workflows that pre-scale cluster resources and run load tests in advance of peak viewership.
This workflow interface also extends AI capabilities beyond core infrastructure teams. Cross-functional departments, including data analytics, product, and marketing, can utilize the n8n MCP server to automatically compose and execute business-specific automation flows without requiring dedicated platform engineering interventions.
- **High-Concurrency Scaling:** Automates cluster pre-warming and load testing for major streaming events like the *Yellowstone* finale. - **Cross-Functional Automation:** Marketing and data teams leverage n8n MCP integrations to generate operational workflows on demand.
---
[17:42](https://www.youtube.com/watch?v=zxQRuDs-gkU&t=1062s) Building Custom, Secure MCP Servers with FastMCP and OpenAPI
When out-of-the-box MCP servers do not cover internal tooling or sensitive environments—such as direct access to production databases—engineering teams must implement custom servers. FastMCP, a high-level Python framework, allows platform engineers to expose internal services securely. Mane presents a pattern for querying production Amazon RDS databases where the custom MCP server acts as an enforcement boundary, automatically filtering out personally identifiable information (PII) before records reach the model's context window.
```mermaid flowchart TD accTitle: FastMCP Production Guardrails Flow subgraph Client["AI Agent Layer"] A["Developer AI Agent"] end subgraph CustomServer["FastMCP Server Layer"] B["FastMCP Gateway"] C["RBAC Authorization"] D["PII Redaction & Pagination"] end subgraph Storage["Internal Infrastructure"] E["Production RDS DB"] end A -->|"SQL Query Request"| B B --> C C --> E E -->|"Raw DB Records"| D D -->|"Sanitized, Truncated Payload"| A ```
Furthermore, any existing internal microservice with a standard OpenAPI specification can be automatically converted into an MCP server, removing the need to hand-craft protocol boilerplate. Mane emphasizes two non-negotiable operational guardrails when building and exposing custom MCP servers:
| Guardrail | Purpose & Implementation | |:--- |:--- | | **Role-Based Access Control (RBAC)** | Restricts sensitive actions (e.g., direct database access, infrastructure provisioning) strictly to authorized platform engineers. | | **Response Pagination & Chunking** | Prevents large query outputs or log dumps from exhausting the LLM's context window and driving up inference costs. |
Mane closes the talk by reassuring engineers about the expanding role of AI in platform operations, noting, "don't be afraid of the agents, they are here to help us."
## Notable quotes > [00:04](https://www.youtube.com/watch?v=zxQRuDs-gkU&t=4s) Why am I getting pinged for this? — Nitish Mane
> [06:44](https://www.youtube.com/watch?v=zxQRuDs-gkU&t=404s) If you have seen this issue before, you know that this issue can be solved using dropping unused metrics, right? So how do you find out which metrics are not used? — Nitish Mane
> [13:43](https://www.youtube.com/watch?v=zxQRuDs-gkU&t=823s) another tedious task which we all hate to do, but we have to do it. — Nitish Mane
> [17:42](https://www.youtube.com/watch?v=zxQRuDs-gkU&t=1062s) don't be afraid of the agents, they are here to help us. — Nitish Mane
## Mentioned Nitish Mane, Philo, Ai4, Paramount, HBO, Model Context Protocol (MCP), Kubernetes, Cloud Native Computing Foundation (CNCF), Grafana, Prometheus, Loki, Tempo, Terraform, Argo CD, PagerDuty, Slack, Notion, GitLab, GitHub Actions, Claude Code, n8n, Yellowstone, FastMCP, Python, OpenAPI, Amazon RDS, AWS, Google Cloud Platform (GCP), Oracle Cloud Infrastructure (OCI)
## Video description Nitish Mane - Infrastructure Engineer, Philo
Platform Engineering teams are increasingly using AI to reduce operational toil, speed up incident response, and enable self-service infrastructure. This talk explores using AI as a natural-language interface to cloud-native systems through the Model Context Protocol (MCP). It shows how platform engineers apply AI to workflows like infrastructure authoring, debugging, monitoring, and alert analysis. The session demonstrates practical MCP integrations, including Terraform, Kubernetes, Grafana, AWS, Alertmanager, and GitLab MCP servers for tasks such as IaC generation, drift detection, resource inspection, and CI/CD decision-making. Finally, it introduces FastMCP, a framework for safely building custom MCP servers that expose internal tools to AI.
[Source](https://www.youtube.com/watch?v=zxQRuDs-gkU)