Adding MCP Support to a MVC MVP App for Github Copilot Desktop!

The creator celebrates becoming a Microsoft MVP by enhancing their existing MVC and MVP app with MCP server support, enabling seamless integration with the GitHub Copilot desktop app to retrieve and display MVP data. They demonstrate the technical implementation, deployment, and successful interaction with GitHub Copilot, while expressing gratitude to their audience and encouraging continued engagement.

The video begins with the creator excitedly announcing that they have officially become a Microsoft MVP, a milestone they had been striving for over many years. They express gratitude to their audience and highlight that their profile is now live on mvplove.com and the official Microsoft MVP site. To celebrate this achievement, they decide to enhance their existing MVP app, which is built using the MVC and MVP design patterns, by adding support for an MCP (Model Context Protocol) server. This new feature will allow the app to interact seamlessly with the GitHub Copilot desktop application.

The creator then dives into the technical implementation, starting by adding the necessary MCP server package to their .NET project. They modify the startup configuration in Program.cs to register the MCP server with HTTP transport, enabling it to communicate over the web rather than just locally. The next step involves creating a new MCP tool class that encapsulates the business logic previously used in their MVP Copilot tool. This new tool is designed to handle requests and serialize responses into JSON format, which is essential for MCP communication.

After setting up the MCP tool, the creator integrates it into the MCP server configuration by adding it to the list of available tools and mapping the MCP endpoint in the application. They test the setup by navigating to the MCP endpoint in a browser, which predictably returns an error since it requires an MCP client. The project is then pushed to a repository where a GitHub Action builds and deploys the updated app, ensuring the changes are live and ready for use.

With the backend ready, the creator switches to the GitHub Copilot desktop app to configure it to use the new MCP server. They add the custom MCP server URL pointing to their deployed app and verify the connection with a green tick. To demonstrate the functionality, they query the MCP server for information about an MVP named Ed Anderson. The app successfully retrieves and displays detailed MVP data directly within GitHub Copilot, showcasing the seamless integration and the power of combining MCP with GitHub Copilot.

In closing, the creator reflects on the long journey to becoming a Microsoft MVP and expresses heartfelt thanks to their viewers for their support. They emphasize their pride in the accomplishment and the new MCP integration, which enhances the MVP app’s capabilities. The video ends with a call to action, encouraging viewers to like and subscribe for more coding content in the future, signaling ongoing commitment to sharing knowledge and development insights.