.NET MCP 服务开发
原名:dotnet-mcp-builder
使用当前 .NET MCP SDK 设计和实现工具、资源、提示与测试。
中文 Skills 技能说明
适合企业已有 C# 技术栈时开发 MCP 服务。先定义最小工具权限和输入输出,再实现认证、超时、错误与审计;依赖版本必须固定,接入真实企业系统前完成安全审查。
上游能力依据
上游原始适用说明:Build Model Context Protocol (MCP) servers in C#/.NET against the current ModelContextProtocol 2.x NuGet packages. Helps with cases the model gets wrong without guidance — stale versions (0.x preview or 1.x-era defaults), the v2 stateless-by-default HTTP flip, the 2026-07-28 spec deprecations (roots/sampling/logging), MCP Apps and Tasks extension packages, elicitation URL mode, per-session HTTP wiring, OAuth and reverse-proxy deploy specifics, and debugging MapMcp / STDIO / Streamable-HTTP errors. Also covers STDIO and Streamable HTTP transports (SSE is deprecated), tools, prompts, resources, completions, and a basic .NET MCP client. Trigger when the user says or implies any .NET MCP server work: ModelContextProtocol, McpServerTool, MapMcp, WithStdioServerTransport, "MCP server in C#", "MCP tool in dotnet", "expose this as MCP", or names a primitive (prompt/resource/elicitation/MCP App) in a .NET context. Skip for MCP work in other languages.
上游 SKILL.md 主要章节(保留原文标题):
- When this skill earns its keep
- Mental model in 30 seconds
- Decision tree → which references to load
- Cardinal rules (apply always; these prevent the highest-frequency breakages)
- Working style
- When the user is stuck
使用边界
先核对运行环境、账号、区域、依赖和最小权限。创建资源、改配置、发布服务或产生费用前必须让使用者确认。
作者、翻译与许可证
- 原作者
- GitHub, Inc. 与 awesome-copilot contributors
- 中文翻译
- CEOFans翻译
- 许可证
- MIT
- 上游来源
- https://github.com/github/awesome-copilot/tree/3f0bba475ec40b9680e1d0311b9caffeec5ad4c3/skills/dotnet-mcp-builder
适用范围
平台:linux、macos、windows;标签:MCP 与工具、.NET MCP 服务开发
安全提示
基础静态扫描不等于绝对安全。技能可能调用命令、浏览器、云服务或本地文件,请在最小权限环境中使用,高风险操作必须人工确认。
如发现侵权、许可证或安全问题,可在本页前台提交投诉,管理员复核后可立即下架。