# MCP and Agentic AI Day 2 Lab

> In this lab, Zach dives into middleware and MCP servers, focusing on logging and adding new features. He introduces new middleware files for tracing, PII detection, and cost analytics, emphasizing the importance of creating an audit trail for their runs. He explores how to generate unique run IDs a…

- Web page: https://www.dataexpert.io/lesson/mcp-and-agentic-ai-day2lab-oct2025
- Program: [AI Engineering Boot Camp starting October 20th, 2025](https://www.dataexpert.io/program/the-ai-engineering-challenge-starting-october-20th-2025)
- Access: Requires enrollment in AI Engineering Boot Camp starting October 20th, 2025
- Length: 56 min video
- Academy: DataExpert.io Academy

## About this lesson

In this lab, Zach dives into middleware and MCP servers, focusing on logging and adding new features. He introduces new middleware files for tracing, PII detection, and cost analytics, emphasizing the importance of creating an audit trail for their runs. He explores how to generate unique run IDs and improves their tracing middleware to better log tool calls and errors. He demonstrates how to implement a new function for querying RAG content, which successfully retrieves resumes from their system.

## Navigation

- Previous lesson: [MCP and Agentic AI Day 2 Lecture](https://www.dataexpert.io/lesson/mcp-and-agentic-ai-day2-lecture-oct2025.md)
- Next lesson: [MLOPs and Guardrails Day 1 Lecture](https://www.dataexpert.io/lesson/ml-ops-day1-lecture-oct25.md)
