Template
Provides a foundational C# API template for building Model Context Protocol (MCP) servers with a clean architecture.
This template offers C# developers a robust starting point for creating Model Context Protocol (MCP) servers, designed for seamless integration with VS Code and GitHub Copilot. It embodies a "close to clean" architecture, providing core infrastructure, dependency injection, structured logging, and dual transport support (HTTP and Stdio). Developers can leverage this scaffold to rapidly build custom MCP tools, following proven patterns, and easily extend it with their own business logic and data models.
Key Features
01MCP Server Implementation with ModelContextProtocol.AspNetCore
02Dual Transport Support for HTTP and Stdio
03Sample MCP tools demonstrating the pattern
04Structured Logging using Serilog with console, file, and stderr output
05Clean Architecture with Dependency Injection and separation of concerns
060 GitHub stars
Use Cases
01Developing MCP solutions that follow a clean, maintainable architecture
02Creating new MCP tools that integrate with VS Code and GitHub Copilot
03Building custom Model Context Protocol (MCP) servers in C#