mpc-csharp-semantickernel logo

mpc-csharp-semantickernel

by mrazvanalex

This repository demonstrates an example usage of Microsoft Semantic Kernel with OpenAI and the official C# SDK for the Model Context Protocol. It provides a quick sample for integrating these technologies.

View on GitHub

Last updated: N/A

What is mpc-csharp-semantickernel?

This is a sample project showcasing how to use Microsoft Semantic Kernel with OpenAI in a C# environment, leveraging the Model Context Protocol for enhanced interaction. It includes an example of sending emails using AI-generated content.

How to use mpc-csharp-semantickernel?

To run the sample, you need an OpenAI API key and an SMTP email server. Configure the appsettings.json files in both the WebAppMCPPoc and MCPServer projects with your API key and email server details. Update the email address dictionary in the EmailTool.cs file with your desired recipients. Finally, run the project and send POST requests to the /chat endpoint.

Key features of mpc-csharp-semantickernel

  • Integration of Semantic Kernel with OpenAI

  • Usage of the Model Context Protocol C# SDK

  • Example of sending emails with AI-generated content

  • Configurable email settings

  • Demonstrates a basic chat endpoint

Use cases of mpc-csharp-semantickernel

  • Prototyping AI-powered email applications

  • Learning how to integrate Semantic Kernel with OpenAI in C#

  • Exploring the Model Context Protocol

  • Building conversational AI applications

  • Demonstrating AI-driven email automation

FAQ from mpc-csharp-semantickernel

What is Semantic Kernel?

Semantic Kernel is a framework that allows you to combine AI models with traditional programming languages like C#.

What is the Model Context Protocol?

The Model Context Protocol provides a standardized way to interact with AI models.

Do I need an OpenAI API key to run this sample?

Yes, an OpenAI API key is required to access the OpenAI models used in this project.

Can I use a different email server?

Yes, you can configure the email settings in the appsettings.json file to use your preferred SMTP server.

Is this project production-ready?

No, this is a quick sample and is not maintained. It may require modifications and further development before being used in a production environment.