VM

vsateeshk/mcp

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

0 stars 0 forks 质量 32 趋势 4

This workspace contains complete MCP (Model Context Protocol) examples in .NET C#, from basic scenarios to production-ready deployments.

概览

This workspace contains complete MCP (Model Context Protocol) examples in .NET C#, from basic scenarios to production-ready deployments. : Wrap your existing Web API as an MCP server using the → See MCP_PROXY_PATTERN.md : TUTORIAL.md — Complete guide with demos, scenarios, and deployment instructions. - MCPServer/SseServer: ASP.NET Core SSE-based MCP endpoint that proxies public APIs. - MCPServer/StdIoServer: Console STDIO-based MCP server that reads JSON requests from stdin and writes JSON responses to stdout. - MCPClient/Client: Console client showing how to call the SSE server and how to run and talk to the STDIO server. Public APIs used in examples: - https://api.agify.io (predict age by name) - https://jsonplaceholder.typicode.com/posts (sample posts) See the MCPServer and MCPClient folders for run/build instructions and sample requests. Essential guides: - — Overview with 5-min quick demos and showcase narrative.

README

MCP .NET C# Example Projects

This workspace contains complete MCP (Model Context Protocol) examples in .NET C#, from basic scenarios to production-ready deployments.

⭐ Most Common Use Case: Wrap your existing Web API as an MCP server using the Proxy Pattern → See MCP_PROXY_PATTERN.md

Start here: TUTORIAL.md — Complete guide with demos, scenarios, and deployment instructions.

Structure

  • MCPServer/SseServer: ASP.NET Core SSE-based MCP endpoint that proxies public APIs.
  • MCPServer/StdIoServer: Console STDIO-based MCP server that reads JSON requests from stdin and writes JSON responses to stdout.
  • MCPClient/Client: Console client showing how to call the SSE server and how to run and talk to the STDIO server.

Public APIs used in examples:

See the MCPServer and MCPClient folders for run/build instructions and sample requests.

Documentation

Essential guides:

  • TUTORIAL.md — Overview with 5-min quick demos and showcase narrative.
  • MCP_PROXY_PATTERN.md — Most common pattern: Wrap your existing Web API as MCP (with docker-compose example).
  • MCP_SCENARIOS.md — All MCP scenarios covered: local STDIO vs remote SSE, authentication, rate-limiting, deployment models.
  • LOCAL_VS_REMOTE.md — Comprehensive comparison of when to use STDIO (local) vs SSE (remote); cost, latency, scalability analysis.
  • REMOTE_DEPLOYMENT.md — Step-by-step guide for deploying SSE server to cloud: Docker, Kubernetes, Azure, AWS, security best practices.
  • GITHUB_COPILOT_CONFIG.md — How to configure Copilot or any agent to call your MCP server.

Configuration examples:

Deployment:

在 GitHub 查看完整 README

安装

This server does not publish a one-line install command.

Open the repository installation guide 新手?先看 mcpskill.org 教程 →