升级XR插件版本
This commit is contained in:
10
Packages/MCPForUnity/Editor/Constants/AuthConstants.cs
Normal file
10
Packages/MCPForUnity/Editor/Constants/AuthConstants.cs
Normal file
@@ -0,0 +1,10 @@
|
||||
namespace MCPForUnity.Editor.Constants
|
||||
{
|
||||
/// <summary>
|
||||
/// Protocol-level constants for API key authentication.
|
||||
/// </summary>
|
||||
internal static class AuthConstants
|
||||
{
|
||||
internal const string ApiKeyHeader = "X-API-Key";
|
||||
}
|
||||
}
|
||||
11
Packages/MCPForUnity/Editor/Constants/AuthConstants.cs.meta
Normal file
11
Packages/MCPForUnity/Editor/Constants/AuthConstants.cs.meta
Normal file
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 96844bc39e9a94cf18b18f8127f3854f
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
66
Packages/MCPForUnity/Editor/Constants/EditorPrefKeys.cs
Normal file
66
Packages/MCPForUnity/Editor/Constants/EditorPrefKeys.cs
Normal file
@@ -0,0 +1,66 @@
|
||||
namespace MCPForUnity.Editor.Constants
|
||||
{
|
||||
/// <summary>
|
||||
/// Centralized list of EditorPrefs keys used by the MCP for Unity package.
|
||||
/// Keeping them in one place avoids typos and simplifies migrations.
|
||||
/// </summary>
|
||||
internal static class EditorPrefKeys
|
||||
{
|
||||
internal const string UseHttpTransport = "MCPForUnity.UseHttpTransport";
|
||||
internal const string HttpTransportScope = "MCPForUnity.HttpTransportScope"; // "local" | "remote"
|
||||
internal const string LastLocalHttpServerPid = "MCPForUnity.LocalHttpServer.LastPid";
|
||||
internal const string LastLocalHttpServerPort = "MCPForUnity.LocalHttpServer.LastPort";
|
||||
internal const string LastLocalHttpServerStartedUtc = "MCPForUnity.LocalHttpServer.LastStartedUtc";
|
||||
internal const string LastLocalHttpServerPidArgsHash = "MCPForUnity.LocalHttpServer.LastPidArgsHash";
|
||||
internal const string LastLocalHttpServerPidFilePath = "MCPForUnity.LocalHttpServer.LastPidFilePath";
|
||||
internal const string LastLocalHttpServerInstanceToken = "MCPForUnity.LocalHttpServer.LastInstanceToken";
|
||||
internal const string DebugLogs = "MCPForUnity.DebugLogs";
|
||||
internal const string ValidationLevel = "MCPForUnity.ValidationLevel";
|
||||
internal const string UnitySocketPort = "MCPForUnity.UnitySocketPort";
|
||||
internal const string ResumeHttpAfterReload = "MCPForUnity.ResumeHttpAfterReload";
|
||||
internal const string ResumeStdioAfterReload = "MCPForUnity.ResumeStdioAfterReload";
|
||||
|
||||
internal const string UvxPathOverride = "MCPForUnity.UvxPath";
|
||||
internal const string ClaudeCliPathOverride = "MCPForUnity.ClaudeCliPath";
|
||||
|
||||
internal const string HttpBaseUrl = "MCPForUnity.HttpUrl";
|
||||
internal const string HttpRemoteBaseUrl = "MCPForUnity.HttpRemoteUrl";
|
||||
internal const string SessionId = "MCPForUnity.SessionId";
|
||||
internal const string WebSocketUrlOverride = "MCPForUnity.WebSocketUrl";
|
||||
internal const string GitUrlOverride = "MCPForUnity.GitUrlOverride";
|
||||
internal const string DevModeForceServerRefresh = "MCPForUnity.DevModeForceServerRefresh";
|
||||
internal const string UseBetaServer = "MCPForUnity.UseBetaServer";
|
||||
internal const string ProjectScopedToolsLocalHttp = "MCPForUnity.ProjectScopedTools.LocalHttp";
|
||||
|
||||
internal const string PackageDeploySourcePath = "MCPForUnity.PackageDeploy.SourcePath";
|
||||
internal const string PackageDeployLastBackupPath = "MCPForUnity.PackageDeploy.LastBackupPath";
|
||||
internal const string PackageDeployLastTargetPath = "MCPForUnity.PackageDeploy.LastTargetPath";
|
||||
internal const string PackageDeployLastSourcePath = "MCPForUnity.PackageDeploy.LastSourcePath";
|
||||
|
||||
internal const string ServerSrc = "MCPForUnity.ServerSrc";
|
||||
internal const string UseEmbeddedServer = "MCPForUnity.UseEmbeddedServer";
|
||||
internal const string LockCursorConfig = "MCPForUnity.LockCursorConfig";
|
||||
internal const string AutoRegisterEnabled = "MCPForUnity.AutoRegisterEnabled";
|
||||
internal const string ToolEnabledPrefix = "MCPForUnity.ToolEnabled.";
|
||||
internal const string ToolFoldoutStatePrefix = "MCPForUnity.ToolFoldout.";
|
||||
internal const string ResourceEnabledPrefix = "MCPForUnity.ResourceEnabled.";
|
||||
internal const string ResourceFoldoutStatePrefix = "MCPForUnity.ResourceFoldout.";
|
||||
internal const string EditorWindowActivePanel = "MCPForUnity.EditorWindow.ActivePanel";
|
||||
|
||||
internal const string SetupCompleted = "MCPForUnity.SetupCompleted";
|
||||
internal const string SetupDismissed = "MCPForUnity.SetupDismissed";
|
||||
|
||||
internal const string CustomToolRegistrationEnabled = "MCPForUnity.CustomToolRegistrationEnabled";
|
||||
|
||||
internal const string LastUpdateCheck = "MCPForUnity.LastUpdateCheck";
|
||||
internal const string LatestKnownVersion = "MCPForUnity.LatestKnownVersion";
|
||||
internal const string LastAssetStoreUpdateCheck = "MCPForUnity.LastAssetStoreUpdateCheck";
|
||||
internal const string LatestKnownAssetStoreVersion = "MCPForUnity.LatestKnownAssetStoreVersion";
|
||||
internal const string LastStdIoUpgradeVersion = "MCPForUnity.LastStdIoUpgradeVersion";
|
||||
|
||||
internal const string TelemetryDisabled = "MCPForUnity.TelemetryDisabled";
|
||||
internal const string CustomerUuid = "MCPForUnity.CustomerUUID";
|
||||
|
||||
internal const string ApiKey = "MCPForUnity.ApiKey";
|
||||
}
|
||||
}
|
||||
11
Packages/MCPForUnity/Editor/Constants/EditorPrefKeys.cs.meta
Normal file
11
Packages/MCPForUnity/Editor/Constants/EditorPrefKeys.cs.meta
Normal file
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 7317786cfb9304b0db20ca73a774b9fa
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
14
Packages/MCPForUnity/Editor/Constants/HealthStatus.cs
Normal file
14
Packages/MCPForUnity/Editor/Constants/HealthStatus.cs
Normal file
@@ -0,0 +1,14 @@
|
||||
namespace MCPForUnity.Editor.Constants
|
||||
{
|
||||
/// <summary>
|
||||
/// Constants for health check status values.
|
||||
/// Used for coordinating health state between Connection and Advanced sections.
|
||||
/// </summary>
|
||||
public static class HealthStatus
|
||||
{
|
||||
public const string Unknown = "Unknown";
|
||||
public const string Healthy = "Healthy";
|
||||
public const string PingFailed = "Ping Failed";
|
||||
public const string Unhealthy = "Unhealthy";
|
||||
}
|
||||
}
|
||||
11
Packages/MCPForUnity/Editor/Constants/HealthStatus.cs.meta
Normal file
11
Packages/MCPForUnity/Editor/Constants/HealthStatus.cs.meta
Normal file
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: c15ed2426f43860479f1b8a99a343d16
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Reference in New Issue
Block a user