|
所在平台: Udemy |
课程主页: https://www.udemy.com/course/model-context-protocolmcp-in-c/
课程评论:没有评论
**课程名称:** C# 中的 Model Context Protocol (MCP) **课程概述:** 本课程将引导您使用 C# 从零开始构建一个基础的 Model Context Protocol (MCP) 服务器和客户端。您将深入了解大型语言模型 (LLM) 如何通过 MCP 协议与工具和服务进行交互。课程将涵盖创建简单的服务器发送事件 (SSE) MCP 服务器,然后构建一个连接并与之通信的轻量级客户端。随后,我们将升级客户端和服务器,使其符合 MCP 标准,并使用 JSON-RPC 和 SSE 进行通信。最后,我们将集成 Semantic Kernel,加入 AI 功能,以全面理解 MCP 的设计初衷和工作原理。通过本课程,您将掌握完整的请求-响应流程、MCP 消息结构以及客户端与服务器的交互方式。无需复杂的环境配置,您可以使用提供的链接或您偏好的 IDE 跟着课程进行编码。学完本课程,您将拥有一个可运行的 MCP 示例,并具备为您的工具、机器人或 AI 服务构建更高级集成所需的知识。 **您将学到:** * MCP 的工作原理及其重要性 * 如何使用 C# 从零开始构建符合 MCP 标准的 SSE 服务器 * 从一个简化的客户端发送 JSON-RPC 消息 * 处理初始化、资源和工具等请求 * 实现完全合规的最佳实践和后续步骤 **目标受众:** * 对 LLM 集成感兴趣的 C# 开发者 * 学习协议设计的初学者 * 任何需要通过 MCP 连接 AI 的工具或服务开发者
Learn how to build a minimal Model Context Protocol (MCP) server and client using C#. This hands-on course is perfect for developers who want to understand how LLMs like Claude interact with tools and services using the MCP protocol.We'll start from scratch and walk through creating a simple SSE(Server Sent Events) MCP server.Then, we'll build a lightweight client that connects and talks to this server.Next, we will upgrade our client and server to conform to MCP standard using JSON-RPC and SSE communication.Finally we will add AI part to our application using Semantic Kernel to fully understand why MCP was created and how it works.You'll understand the full request-response flow, the structure of MCP messages, and how client interacts with the server.No advanced setup required - you can code along each lesson using the links provided, or using your preferred IDE.By the end of the course, you'll have a working MCP example and the knowledge to build more advanced integrations for your own tools, bots, or AI services.What You'll Learn:How MCP works and why it mattersBuilding an MCP-compliant server using SSE in C# from scratchSending JSON-RPC messages from a minimal clientHandling requests like initialize, resources, and toolsBest practices and next steps toward full complianceWho This Course Is For:C# developers curious about LLM integrationsBeginners learning protocol designAnyone building tools or services that connect to AI via MCP