chore(unity): 固定Unity CLI Loop本地包并移除UnitySkills依赖

This commit is contained in:
Liubing\LB
2026-09-28 18:14:59 +08:00
parent 0eb43b2b40
commit c4ae02def9
952 changed files with 70137 additions and 11 deletions

View File

@@ -0,0 +1,14 @@
namespace io.github.hatayama.uLoopMCP
{
public class GetVersionResponse : BaseToolResponse
{
public string UnityVersion { get; set; } = string.Empty;
public string Platform { get; set; } = string.Empty;
public string DataPath { get; set; } = string.Empty;
public string PersistentDataPath { get; set; } = string.Empty;
public string TemporaryCachePath { get; set; } = string.Empty;
public bool IsEditor { get; set; }
public string ProductName { get; set; } = string.Empty;
public string CompanyName { get; set; } = string.Empty;
}
}

View File

@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 3a8f1bf17467a476a95ba0b5401bf764
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,6 @@
namespace io.github.hatayama.uLoopMCP
{
public class GetVersionSchema : BaseToolSchema
{
}
}

View File

@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 59bb58b056c564b1a86140355b579b78
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,33 @@
using System.Threading;
using System.Threading.Tasks;
using UnityEngine;
namespace io.github.hatayama.uLoopMCP
{
[McpTool(
DisplayDevelopmentOnly = true,
Description = "Get Unity version and project information"
)]
public class GetVersionTool : AbstractUnityTool<GetVersionSchema, GetVersionResponse>
{
public override string ToolName => "get-version";
protected override Task<GetVersionResponse> ExecuteAsync(
GetVersionSchema parameters, CancellationToken ct)
{
GetVersionResponse response = new GetVersionResponse
{
UnityVersion = Application.unityVersion,
Platform = Application.platform.ToString(),
DataPath = Application.dataPath,
PersistentDataPath = Application.persistentDataPath,
TemporaryCachePath = Application.temporaryCachePath,
IsEditor = Application.isEditor,
ProductName = Application.productName,
CompanyName = Application.companyName
};
return Task.FromResult(response);
}
}
}

View File

@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: ed2283b5fd7894322ae4e71290bdab2a
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant: