add:添加MCP机制

This commit is contained in:
bzx
2026-03-06 10:49:49 +08:00
parent 68c03ea245
commit 1967c61b4b
5 changed files with 37 additions and 7 deletions

1
.cursor/mcp-unity-port Normal file
View File

@ -0,0 +1 @@
8090

View File

@ -1,5 +1,6 @@
{ {
"dependencies": { "dependencies": {
"com.gamelovers.mcp-unity": "file:D:/UntiyMCP/Release",
"com.unity.2d.animation": "9.1.3", "com.unity.2d.animation": "9.1.3",
"com.unity.2d.psdimporter": "8.0.5", "com.unity.2d.psdimporter": "8.0.5",
"com.unity.2d.sprite": "1.0.0", "com.unity.2d.sprite": "1.0.0",
@ -7,6 +8,7 @@
"com.unity.ads": "4.4.2", "com.unity.ads": "4.4.2",
"com.unity.ai.navigation": "1.1.7", "com.unity.ai.navigation": "1.1.7",
"com.unity.analytics": "3.8.1", "com.unity.analytics": "3.8.1",
"com.unity.cinemachine": "2.10.5",
"com.unity.collab-proxy": "2.5.2", "com.unity.collab-proxy": "2.5.2",
"com.unity.feature.development": "1.0.1", "com.unity.feature.development": "1.0.1",
"com.unity.ide.rider": "3.0.34", "com.unity.ide.rider": "3.0.34",

View File

@ -23,6 +23,16 @@
"com.unity.ugui": "1.0.0" "com.unity.ugui": "1.0.0"
} }
}, },
"com.gamelovers.mcp-unity": {
"version": "file:D:/UntiyMCP/Release",
"depth": 0,
"source": "local",
"dependencies": {
"com.unity.nuget.newtonsoft-json": "3.2.1",
"com.unity.editorcoroutines": "1.0.0",
"com.unity.test-framework": "1.3.3"
}
},
"com.unity.2d.animation": { "com.unity.2d.animation": {
"version": "9.1.3", "version": "9.1.3",
"depth": 0, "depth": 0,
@ -113,6 +123,15 @@
}, },
"url": "https://packages.unity.cn" "url": "https://packages.unity.cn"
}, },
"com.unity.cinemachine": {
"version": "2.10.5",
"depth": 0,
"source": "registry",
"dependencies": {
"com.unity.test-framework": "1.1.31"
},
"url": "https://packages.unity.cn"
},
"com.unity.collab-proxy": { "com.unity.collab-proxy": {
"version": "2.5.2", "version": "2.5.2",
"depth": 0, "depth": 0,
@ -139,8 +158,8 @@
"url": "https://packages.unity.cn" "url": "https://packages.unity.cn"
}, },
"com.unity.ext.nunit": { "com.unity.ext.nunit": {
"version": "1.0.6", "version": "2.0.3",
"depth": 1, "depth": 2,
"source": "registry", "source": "registry",
"dependencies": {}, "dependencies": {},
"url": "https://packages.unity.cn" "url": "https://packages.unity.cn"
@ -226,7 +245,7 @@
}, },
"com.unity.nuget.newtonsoft-json": { "com.unity.nuget.newtonsoft-json": {
"version": "3.2.1", "version": "3.2.1",
"depth": 2, "depth": 1,
"source": "registry", "source": "registry",
"dependencies": {}, "dependencies": {},
"url": "https://packages.unity.cn" "url": "https://packages.unity.cn"
@ -337,11 +356,11 @@
} }
}, },
"com.unity.test-framework": { "com.unity.test-framework": {
"version": "1.1.33", "version": "1.3.3",
"depth": 0, "depth": 1,
"source": "registry", "source": "registry",
"dependencies": { "dependencies": {
"com.unity.ext.nunit": "1.0.6", "com.unity.ext.nunit": "2.0.3",
"com.unity.modules.imgui": "1.0.0", "com.unity.modules.imgui": "1.0.0",
"com.unity.modules.jsonserialize": "1.0.0" "com.unity.modules.jsonserialize": "1.0.0"
}, },

View File

@ -0,0 +1,8 @@
{
"Port": 8090,
"RequestTimeoutSeconds": 10,
"AutoStartServer": true,
"EnableInfoLogs": true,
"NpmExecutablePath": "",
"AllowRemoteConnections": false
}

View File

@ -801,4 +801,4 @@ PlayerSettings:
hmiLoadingImage: {fileID: 0} hmiLoadingImage: {fileID: 0}
platformRequiresReadableAssets: 0 platformRequiresReadableAssets: 0
virtualTexturingSupportEnabled: 0 virtualTexturingSupportEnabled: 0
insecureHttpOption: 0 insecureHttpOption: 2