McpClientWithAzureOpenAI
McpClientWithAzureOpenAI is a client library for utilizing Azure OpenAI services in C#. This library provides functionalities for easily calling the OpenAI API, enabling developers to quickly build applications that leverage AI models. It is primarily used for tasks such as text generation and natural language processing.
GitHub Stars
0
User Rating
Not Rated
Favorites
0
Views
19
Forks
0
Issues
0
README
McpClientWithAzureOpenAI
This is an example of MCP client using Azure OpenAI chat client. This example also uses Microsoft.Extensions.AI for implementation.
Running the client
Set API key:
dotnet user-secrets init
dotnet user-secrets set "AZURE_OPENAI_API_KEY" "<your key here>"
Run client
dotnet run -- "<path to your server>"
e.g., for McpWeatherServer
dotnet run -- McpWeatherServer/WeatherServer.csproj