Archives for March 2025

Model Context Protocol Made Easy: Building an MCP Server in C#

Mar 22, 2025

In my previous post, I demonstrated how to use C# with Microsoft.Extensions.AI, Ollama, and a nuget package called mcpdotnet to interact with an existing MCP Server. Since then, mcpdotnet has been elevated to become the "official C# SDK for Model Context Protocol servers and clients, maintained by Microsoft".

The Model Context Protocol (MCP) is an open standard that enables seamless integration between AI systems and various data sources, allowing developers to create context-aware applications. In this post, we'll explore how to build a simple MCP server using C# and the modelcontextprotocol / csharp-sdk library, which simplifies the process of creating and managing MCP servers.

Continue reading

Harnessing AI in C# with Microsoft.Extensions.AI, Ollama, and MCP Server

Mar 15, 2025

In the previous post "Leveraging Microsoft.Extensions.AI for Tool Calling in C#", we explored how to create custom tools that enhance the capabilities of Large Language Models (LLMs). We demonstrated how integrating these technologies enables developers to build applications with advanced AI capabilities, facilitating more complex interactions.

In this post, we'll take a step further and explore how to leverage Model Context Protocol (MCP) servers to utilize external Tools and AI models in C# applications. We'll continue using Ollama to run local AI models.

Continue reading

.NET Aspire and Dev Container

.NET Aspire 9.1 was just released on February 25th, 2025. It comes with great new dashboard features, and there is more! One feature I am particularly interested in is the ability to use Dev Containers.

In this post, I will show you how to use the new .NET Aspire 9.1 with a Dev Container and JetBrains Rider. You could also use Visual Studio Code.

Continue reading

Building Local AI Agents: Semantic Kernel Agent with Functions in C# using Ollama

In my previous post, we saw how to build the simplest Semantic Kernel local AI agent using Semantic Kernel and Ollama in C#. In this short post, we will see how simple it is to extend the capabilities of the Semantic Kernel local AI agent by adding function calling.

Continue reading

Page 1 of 2