Episode 09
Build your first MCP Server with C#
Ask AI about Episode 09
Powered by Claude · Grounded in docs
I know everything about Episode 09. Ask me about installation, configuration, usage, or troubleshooting.
0/500
Reviews
Documentation
Episode-09: Build your first MCP Server with C#
In this episode Carl and Jeff learn how to build their own MCP Server and how they can use it with Copilot.
YouTube Video: https://www.youtube.com/live/vG__NyFvua8
Code it with AI Home Page: https://codeitwithai.com
Demo
This demo contains a class library called CodeitwithAi.Catalog that exposes an EpisodesRepostory object that uses the YouTube API to return a collection of episodes in the Code It with AI playlist
To run this sample locally, you will need to acquire a YouTube API Key. After step 3 of that guide, click into the 'Credentials' menu option on the Google Cloud console and create an API Key. In our samples, this API key is stored in UserSecrets for the HttpMcp project and the MyMcp project. For a production scenario, you will want to store the API key somewhere more secure.
The HttpMcp demo runs like an ASP.NET Core webserver and you can activate it by uncommenting the my-web-mcp entry in mcp.json The MyMcp demo can be activated by uncommenting the my-stdio-mcp entry in the same file.
NOTE: do not make both MCP servers available at the same time.
