NugetMcpServer
NugetMcpServer is a demonstration project that implements a basic Model Context Protocol server using the ModelContextProtocol library. It is designed to showcase client-server interactions and can be integrated with tools like OllamaChat for enhanced language model functionalities.
Overview
This project is a demonstration of implementing a Model Context Protocol (MCP) server using the ModelContextProtocol library. It showcases a simple MCP server that interacts with clients through STDIO transport, including features like a sample TimeTool
to return the current server time and integration with the .NET 9.0 framework. It can be used alongside the OllamaChat application, a local chat client for OLLAMA.
Features
- Basic MCP server implementation
- Communication through STDIO
- Sample tool for server time retrieval
- Built with .NET 9.0
Prerequisites
- .NET 9.0 SDK or higher
- An MCP-compatible client (e.g., OllamaChat)
Getting Started
- Clone the repository
- Build the application
- Run the server
Technical Details
- Configured with .NET Generic Host
- Console logging at trace level
- Automatic tool discovery from assembly
Integration with OllamaChat
Can be integrated with OllamaChat for demonstrations of language model capabilities.
About the MCP Protocol
MCP standardizes communication between language models and external tools.