.NET MCP server: Create YAML policy to stop tool from running
Authorised Territory demonstrates how to govern a .NET Model Context Protocol (MCP) server by writing a YAML policy that prevents a specific tool from being executed, using the Microsoft.AgentGovernance.Extensions.ModelContextProtocol NuGet package.
Overview
The video shows how to add governance controls to a .NET MCP server using a YAML policy so that tool execution can be blocked.
Key points called out in the video description:
- The focus is on creating a YAML policy that stops the MCP server from running a tool.
- The setup uses the NuGet package Microsoft.AgentGovernance.Extensions.ModelContextProtocol to configure governance for the MCP server.
- A starting solution for the tutorial is referenced here: https://youtu.be/uEe800rF9LI