How-To-Create-MCP-Server and MCPSharp
About How-To-Create-MCP-Server
nisalgunawardhana/How-To-Create-MCP-Server
This guide will help you set up a basic MCP (Model Context Protocol) server in .NET, configure it in VS Code, and interact with it using Copilot Chat.
Implements MCP servers using .NET's dependency injection and the ModelContextProtocol NuGet package with stdio transport, enabling tools to be auto-discovered from assemblies via attributes. The guide covers the complete integration workflow from local development through VS Code configuration to Copilot Chat consumption, including a contribution model with automated badge verification for completed implementations.
About MCPSharp
afrise/MCPSharp
MCPSharp is a .NET library that helps you build Model Context Protocol (MCP) servers and clients - the standardized API protocol used by AI assistants and models.
Implements attribute-based tool exposure with automatic JSON-RPC handling and parameter validation, supporting both stdio and SSE transports. Integrates seamlessly with Microsoft.Extensions.AI and Semantic Kernel, allowing .NET methods to be registered as AIFunctions or KernelFunctions without vendor lock-in. Features dynamic tool registration, resource endpoints, XML documentation extraction, and real-time tool change notifications for connected clients.
Related comparisons
Scores updated daily from GitHub, PyPI, and npm data. How scores work