yueh0607/ModelContextProtocol
3.3
If you are the rightful owner of ModelContextProtocol and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to dayong@mcphub.com.
A .NET Standard 2.0 based MCP Server implementation for embedding in Unity and other programs that allow C# plugin development.
ModelContextProtocolCSharp
基于.NET Standard 2.0 的MCP Server实现,用于嵌入unity和各种允许CSharp开发插件的程序内。
相比Python + C# 实现的优势
- 推广容易 : 导入项目无理解负担,参与共建意愿强。
- 容易配置: 无需Python环境,减少配置步骤。
- 写工具无需同时加Python 和 C# ,容易开发。
开始
打开MCP工具设置,点击Start Server,开启MCP服务器
于Cursor设置中修改MCP设置
{
"mcpServers": {
"unity-mcp": {
"transport": "http",
"url": "http://localhost:8080/"
}
}
}
添加你的工具:
完全通用的工具:Packages/com.yourcompany.modelcontextprotocol/Editor/BuiltInTools/McpServer.BuiltInTools.asmdef (跟随此开源项目)
项目特化的工具:McpServer.ProjectTools.asmdef(可放在任意位置)
工具示例: