- McpClientServerExample
McpClientServerExample
A simple .NET implementation of an MCP (Model Context Protocol) Client and Server example. This project demonstrates how to create and interact with an MCP server using custom tools, natural language prompts, and standard I/O transport.
Overview
What is McpClientServerExample?
McpClientServerExample is a simple .NET implementation of a Model Context Protocol (MCP) Client and Server example, demonstrating how to create and interact with an MCP server using custom tools, natural language prompts, and standard I/O transport.
How to use McpClientServerExample?
To use McpClientServerExample, install the .NET 8.0 SDK, set your OpenAI API key, and run the client project using the command: dotnet run --project client/McpClient.csproj.
Key features of McpClientServerExample?
- Client (
McpClient) communicates with the server usingModelContextProtocol.Client. - Supports OpenAI GPT models for conversation.
- Provides a list of tools and supports tool function calls.
- Server (
McpServer) offers MCP server functionality with standard input/output communication. - Built-in tools like
EchoandReverseEchofor user interaction.
Use cases of McpClientServerExample?
- Building custom client-server applications using MCP.
- Integrating AI models for enhanced user interaction.
- Demonstrating communication protocols in .NET applications.
FAQ from McpClientServerExample?
- What are the requirements to run this project?
You need the .NET 8.0 SDK and an OpenAI API key if using GPT models.
- Is there any built-in functionality in the server?
Yes, the server includes built-in tools like
EchoandReverseEchofor testing.
- Can I modify the client or server?
Yes, the project is open-source and can be modified as per your needs.
Project Info
Created At
a year agoUpdated At
a year agoAuthor Name
dks50217Star
0Language
C#License
MIT licenseCategory
developer-tools
Recommend Servers
View AllMem Context
@turbyho
an hour ago
Sellerguide
11 hours ago
Sellerguide
11 hours ago
Project Memory
@kaaustubh
13 hours ago