text
stringlengths
14
100k
source
stringclasses
1 value
repo
stringclasses
810 values
language
stringclasses
13 values
<|fim_prefix|>using Syst<|fim_suffix|> <|fim_middle|>em.Runtime.CompilerServices; [assembly: InternalsVisibleTo("MCPForUnityTests.EditMode")]<|endoftext|>
fim
CoplayDev/unity-mcp
csharp
<|fim_prefix|>using System; using System.Collections.Generic; using System.IO; using System.Runtime.InteropServices; using MCPForUnity.Editor.Constants; using MCPForUnity.Editor.Models; using UnityEditor; namespace MCPForUnity.Editor.Clients.Configurators { public class AntigravityConfigurator : JsonFileMcpConfigu...
fim
CoplayDev/unity-mcp
csharp
<|fim_suffix|>Antigravity IDE if necessary" }; } } <|fim_prefix|>using System; using System.Collections.Generic; using System.IO; using MCPForUnity.Editor.Constants; using MCPForUnity.Editor.Models; using UnityEditor; namespace MCPForUnity.Editor.Clients.Configurators { /// <summary> /// Antigravit...
fim
CoplayDev/unity-mcp
csharp
<|fim_suffix|> public override McpStatus CheckStatus(bool attemptAutoRewrite = true) { client.SetStatus(McpStatus.NotConfigured, "Cherry Studio requires manual UI configuration"); return client.status; } public override void Configure() { thro...
fim
CoplayDev/unity-mcp
csharp
<|fim_suffix|>tallPath() { var userHome = Environment.GetFolderPath(Environment.SpecialFolder.UserProfile); return Path.Combine(userHome, ".claude", "skills", "unity-mcp-skill"); } public override IList<string> GetInstallationSteps() => new List<string> { ...
fim
CoplayDev/unity-mcp
csharp
using System; using System.Collections.Generic; using System.IO; using MCPForUnity.Editor.Models; using UnityEditor; namespace MCPForUnity.Editor.Clients.Configurators { public class ClaudeDesktopConfigurator : JsonFileMcpConfigurator { public const string ClientName = "Claude Desktop"; public...
fim
CoplayDev/unity-mcp
csharp
<|fim_suffix|> class ClineConfigurator : JsonFileMcpConfigurator { public ClineConfigurator() : base(new McpClient { name = "Cline", windowsConfigPath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData), "Code", "User", "globalStorage", "saoudr...
fim
CoplayDev/unity-mcp
csharp
<|fim_suffix|>sts", "Click Configure to add the UnityMCP entry (or manually edit the file above)", "Restart your CLI session if needed" }; } } <|fim_prefix|>using System; using System.Collections.Generic; using System.IO; using MCPForUnity.Editor.Models; namespace MCPForUnity.Editor...
fim
CoplayDev/unity-mcp
csharp
<|fim_suffix|> "Paste the configuration TOML", "Save and restart Codex" }; } } <|fim_prefix|>using System; using System.Collections.Generic; using System.IO; using MCPForUnity.Editor.Models; namespace MCPForUnity.Editor.Clients.Configurators { public class CodexConfigurator : CodexM...
fim
CoplayDev/unity-mcp
csharp
using System; using System.Collections.Generic; using System.IO; using MCPForUnity.Editor.Models; namespace MCPForUnity.Editor.Clients.Configurators { public class CopilotCliConfigurator : JsonFileMcpConfigurator { public CopilotCliConfigurator() : base(new McpClient { name = "GitHu...
fim
CoplayDev/unity-mcp
csharp
<|fim_prefix|>using System; using System.Collections.Generic; using System.IO; using MCPForUnity.Editor.Models; namespace MCPForUnity.Editor.Clients.Confi<|fim_suffix|>P server\nOR open the config file at the path above", "Paste the configuration JSON", "Save and restart Cursor" }; ...
fim
CoplayDev/unity-mcp
csharp
<|fim_suffix|>Ensure Gemini CLI is installed (see https://geminicli.com/docs/get-started/installation/)", "Click Register to add UnityMCP via 'gemini mcp add'", "The server will be automatically available in Gemini CLI", "Use Unregister to remove via 'gemini mcp remove'" }; ...
fim
CoplayDev/unity-mcp
csharp
<|fim_prefix|>using System; using System.Collections.Generic; using System.IO; using MCPForUnity.Editor.Models; namespace MCPForUnity.Editor.Clients.Configurators { public class KiloCodeConfigurator : JsonFileMcpConfigurator { public KiloCodeConfigurator() : base(new McpClient { nam...
fim
CoplayDev/unity-mcp
csharp
<|fim_prefix|>using System; using System.Collections.Generic; using System.IO; using MCPForUnity.Editor.Models; namespace MCPForUnity.Editor.Clients.Configurators { /// <summary> /// Kimi Code CLI MCP cl<|fim_suffix|>d (pip install kimi-cli or see https://github.com/MoonshotAI/kimi-cli)", "Click 'A...
fim
CoplayDev/unity-mcp
csharp
<|fim_prefix|>using <|fim_suffix|>e configuration JSON", "Save and restart Kiro" }; } } <|fim_middle|>System; using System.Collections.Generic; using System.IO; using MCPForUnity.Editor.Models; namespace MCPForUnity.Editor.Clients.Configurators { public class KiroConfigurator : JsonFileMcpC...
fim
CoplayDev/unity-mcp
csharp
<|fim_prefix|>using System; using System.Collections.Generic; using System.IO; using MCPForUnity.Editor.Constants; using MCPForUnity.Editor.Helpers; using MCPForUnity.Editor.Models; using MCPForUnity.Editor.Services; using Newtonsoft.Json; using Newtonsoft.Json.Linq; using UnityEditor; namespace MCPForUnity.Editor.Cli...
fim
CoplayDev/unity-mcp
csharp
<|fim_prefix|>using System; using System.Collections.Generic; using System.IO; using MCPForUnity.Editor.Helpers; using MCPF<|fim_suffix|> ConfiguredTransport expected = HttpEndpointUtility.GetCurrentServerTransport(); if (expected == ConfiguredTransport.Stdio) { retu...
fim
CoplayDev/unity-mcp
csharp
<|fim_prefix|>using System; using System.Collections.Generic; using System.IO; using MCPForUnity.Editor.Models; namespace MCPForUnity.Editor.Clients.Configurators { /// <summary> /// Qwen Code MCP client configurator. /// Qwen Code uses a JSON-based configuration file with mcpServers section. /// Confi...
fim
CoplayDev/unity-mcp
csharp
<|fim_suffix|>out = true }) { } public override IList<string> GetInstallationSteps() => new List<string> { "Install GitHub Copilot plugin in Rider", "Open or create mcp.json at the path above", "Paste the configuration JSON", "Save and res...
fim
CoplayDev/unity-mcp
csharp
<|fim_suffix|>onfig/Trae/mcp.json\n", "Save and restart Trae" }; } } <|fim_prefix|>using System; using System.Collections.Generic; using System.IO; using MCPForUnity.Editor.Models; namespace MCPForUnity.Editor.Clients.Configurators { public class TraeConfigurator : JsonFileMcpConfigurator ...
fim
CoplayDev/unity-mcp
csharp
<|fim_suffix|>Folder.UserProfile), "Library", "Application Support", "Code", "User", "mcp.json"), linuxConfigPath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.UserProfile), ".config", "Code", "User", "mcp.json"), IsVsCodeLayout = true }) { } public ...
fim
CoplayDev/unity-mcp
csharp
<|fim_prefix|>using System; using System.Collections.Generic; using System.IO; using MCPForUnity.Editor.Models; namespace MCPForUnity.Editor.Clients.Configurators { public class VSCodeInsidersConfigurator : JsonFileMcpConfigurator { public VSCodeInsidersConfigurator() : base(new McpClient { ...
fim
CoplayDev/unity-mcp
csharp
using System; using System.Collections.Generic; using System.IO; using MCPForUnity.Editor.Models; namespace MCPForUnity.Editor.Clients.Configurators { public class WindsurfConfigurator : JsonFileMcpConfigurator { public WindsurfConfigurator() : base(new McpClient { name = "Windsurf"...
fim
CoplayDev/unity-mcp
csharp
<|fim_suffix|>lls should be installed, or null if unsupported.</summary> string GetSkillInstallPath(); } } <|fim_prefix|>using MCPForUnity.Editor.Models; namespace MCPForUnity.Editor.Clients { /// <summary> /// Contract for MCP client configurators. Each client is responsible for /// status det...
fim
CoplayDev/unity-mcp
csharp
<|fim_prefix|>using System; using System.Collections.Generic; using System.IO; using System.Runtime.InteropServices; using MCPForUnity.Editor.Constants; using MCPForUnity.Editor.Helpers; using MCPForUnity.Editor.Models; using MCPForUnity.Editor.Services; using Newtonsoft.Json; using Newtonsoft.Json.Linq; using UnityEdi...
fim
CoplayDev/unity-mcp
csharp
<|fim_prefix|>using System; using System.Collections.Generic; using System.Linq; using MCPForUnity.Editor.Helpers; using UnityEditor; using UnityEngine; namespace MCPForUnity.Editor.Clients { /// <summary> /// Central registry that auto-discovers configurators via TypeCache. /// </summary> public stati...
fim
CoplayDev/unity-mcp
csharp
<|fim_prefix|>namespace MCPForUnity.Editor.Constants { /// <summary> /// Protocol-level constants for API key authentication. /// </summary> internal static class AuthConstants { internal const <|fim_suffix|>eyHeader = "X-API-Key"; } } <|fim_middle|>string ApiK<|endoftext|>
fim
CoplayDev/unity-mcp
csharp
<|fim_suffix|>ddedServer = "MCPForUnity.UseEmbeddedServer"; internal const string LockCursorConfig = "MCPForUnity.LockCursorConfig"; internal const string AutoRegisterEnabled = "MCPForUnity.AutoRegisterEnabled"; internal const string ToolEnabledPrefix = "MCPForUnity.ToolEnabled."; intern...
fim
CoplayDev/unity-mcp
csharp
<|fim_prefix|>namespace MCPForUnity.Editor.Constants { /// <summary> /// Constants for health check status values. /// Used for coordinating health state between Connection and Advanced sections. /// </summary> public <|fim_suffix|> = "Unhealthy"; } } <|fim_middle|>static class HealthStatus ...
fim
CoplayDev/unity-mcp
csharp
<|fim_suffix|>ads/", "https://docs.astral.sh/uv/getting-started/installation/"); } } private static void GenerateRecommendations(DependencyCheckResult result, IPlatformDetector detector) { var missing = result.GetMissingDependencies(); if (missing.Count == 0...
fim
CoplayDev/unity-mcp
csharp
<|fim_prefix|>using System; using System.Collections.Generic; using System.Linq; namespace MCPForUnity.Editor.Dependencies.Models { /// <summary> /// Result of a comprehensive dependency check /// </summary> [Serializable] public class DependencyCheckResult { /// <summary> /// L...
fim
CoplayDev/unity-mcp
csharp
<|fim_suffix|>" : "✗"; var version = !string.IsNullOrEmpty(Version) ? $" ({Version})" : ""; return $"{status} {Name}{version}"; } } } <|fim_prefix|>using System; namespace MCPForUnity.Editor.Dependencies.Models { /// <summary> /// Represents the status of a dependency check ...
fim
CoplayDev/unity-mcp
csharp
<|fim_prefix|>using MCPForUnity.Editor.Dependencies.Models; namespace MCPForUnity.Editor.Dependencies.PlatformDetectors { /// <summary> /// Interface for platform-specific dependency detection /// </summary> public interface IPlatformDetector { /// <summary> /// Platform name this d...
fim
CoplayDev/unity-mcp
csharp
<|fim_prefix|>using System; using System.Diagnostics; using System.IO; using System.Runtime.InteropServices; using MCPForUnity.Editor.Constants; using MCPForUnity.Editor.Dependencies.Models; using MCPForUnity.Editor.Helpers; using MCPForUnity.Editor.Services; namespace MCPForUnity.Editor.Dependencies.PlatformDetectors...
fim
CoplayDev/unity-mcp
csharp
<|fim_prefix|>using System; using System.Diagnostics; using System.IO; using System.Runtime.InteropServices; using MCPForUnity.Editor.Constants; using MCPForUnity.Editor.Dependencies.Models; using MCPForUnity.Ed<|fim_suffix|>ncyStatus DetectUv() { // First, honor overrides and cross-platform resolut...
fim
CoplayDev/unity-mcp
csharp
<|fim_prefix|>using System; using MCPForUnity.Editor.Dependencies.Models; using MCPForUnity.Editor.Helpers; using MCPForUnity.Editor.Services; namespace MCPForUnity.Editor.Dependencies.PlatformDetectors { /// <summary> /// Base class for platform-specific dependency detection /// </summary> public abst...
fim
CoplayDev/unity-mcp
csharp
<|fim_suffix|> { return major > 3 || (major == 3 && minor >= 10); } } } catch { // Ignore validation errors } return false; } protected override bool TryFindInPa...
fim
CoplayDev/unity-mcp
csharp
<|fim_prefix|>#region LICENSE /* * MIT License * * Copyright (c) 2020 Denis Zhidkikh * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitat...
fim
CoplayDev/unity-mcp
csharp
<|fim_suffix|>} /// <summary> /// Gets the local server path if GitUrlOverride points to a local directory. /// Returns null if not using a local path. /// </summary> public static string GetLocalServerPath() { if (!IsLocalServerPath()) return...
fim
CoplayDev/unity-mcp
csharp
<|fim_prefix|>using System; using System.Collections.Generic; using System.IO; using System.Linq; using MCPForUnity.Editor.Constants; using MCPForUnity.Editor.Services; using MCPForUnity.External.Tommy; using UnityEditor; using UnityEngine; namespace MCPForUnity.Editor.Helpers { /// <summary> /// Codex CLI spe...
fim
CoplayDev/unity-mcp
csharp
<|fim_prefix|>using System; using System.Collections.Generic; using System.Reflection; using Newtonsoft.Json.Linq; using UnityEditor; using UnityEngine; using UnityEngine.Events; using MCPForUnity.Runtime.Helpers; namespace MCPForUnity.Editor.Helpers { /// <summary> /// Low-level component operations extracted...
fim
CoplayDev/unity-mcp
csharp
<|fim_suffix|>; return root.ToString(Formatting.Indented); } public static JObject ApplyUnityServerToExistingConfig(JObject root, string uvPath, McpClient client) { if (root == null) root = new JObject(); bool isVSCode = client?.IsVsCodeLayout == true; ...
fim
CoplayDev/unity-mcp
csharp
<|fim_suffix|>[width]; for (int y = 0; y < height / 2; y++) { int topRow = y * width; int bottomRow = (height - 1 - y) * width; Array.Copy(pixels, topRow, temp, 0, width); Array.Copy(pixels, bottomRow, pixels, topRow, width); ...
fim
CoplayDev/unity-mcp
csharp
<|fim_prefix|>using System; using System.Diagnostics; using System.IO; using System.Linq; using System.Runtime.InteropServices; using System.Text; using MCPForUnity.Editor.Constants; using UnityEditor; namespace MCPForUnity.Editor.Helpers { internal static class ExecPath { private const string <|fim_su...
fim
CoplayDev/unity-mcp
csharp
<|fim_suffix|>path; } } } <|fim_prefix|>using System; using System.Collections.Generic; using System.Linq; using Newtonsoft.Json.Linq; using UnityEditor; using UnityEditor.SceneManagement; using UnityEngine; using UnityEngine.SceneManagement; using MCPForUnity.Runtime.Helpers; namespace MCPForUnity.Editor...
fim
CoplayDev/unity-mcp
csharp
<|fim_suffix|> // Example if needed }; private static readonly JsonSerializer _outputSerializer = JsonSerializer.Create(_outputSerializerSettings); // --- End Define custom JsonSerializerSettings --- // Helper to create JToken using the output serializer private static JToken Cr...
fim
CoplayDev/unity-mcp
csharp
<|fim_prefix|>using System; using System.Net; using MCPForUnity.Editor.Constants; using MCPForUnity.Editor.Models; using MCPForUnity.Editor.Services; using UnityEdi<|fim_suffix|>returns the local URL. /// </summary> public static string GetBaseUrl() { return IsRemoteScope() ? GetRemo...
fim
CoplayDev/unity-mcp
csharp
<|fim_prefix|>using System; using System.Collections.Generic; using System.Linq; using MCPForUnity.Editor.Tools; using Newtonsoft.Json; using Newtonsoft.Json.Linq; using UnityEditor; using UnityEngine; namespace MCPForUnity.Editor.Helpers { public static class MaterialOps { /// <summary> /// Ap...
fim
CoplayDev/unity-mcp
csharp
<|fim_suffix|> on OS /// </summary> public static string GetClientConfigPath(McpClient mcpClient) { if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows)) { return mcpClient.windowsConfigPath; } else if (RuntimeInformation.IsOSPla...
fim
CoplayDev/unity-mcp
csharp
<|fim_prefix|>using System; using System.IO; using Newtonsoft.Json; using UnityEngine; namespace MCP<|fim_suffix|>tance<T>()); File.WriteAllText(path, json); } public static T LoadState<T>(string toolName) { var path = GetStatePath(toolName); if (!File.Exist...
fim
CoplayDev/unity-mcp
csharp
<|fim_suffix|>g message) { UnityEngine.Debug.LogError($"{ErrorPrefix} {message}"); } } } <|fim_prefix|>using MCPForUnity.Editor.Constants; using UnityEditor; using UnityEngine; namespace MCPForUnity.Editor.Helpers { internal static class McpLog { private const string Inf...
fim
CoplayDev/unity-mcp
csharp
<|fim_prefix|>using System; using System.IO; using MCPForUnity.Editor.Constants; using Newtonsoft.Json; using Newtonsoft.Json.Linq; using UnityEditor; using UnityEngine; namespace MCPForUnity.Editor.Helpers { internal static class McpLogRecord { private static readonly string LogDir = Path.Combine(Appl...
fim
CoplayDev/unity-mcp
csharp
<|fim_suffix|>ctly if (target.Type != JTokenType.Object) { return GameObjectLookup.FindByTarget(target, searchMethod ?? "by_id_or_name_or_path"); } // If target is an instruction object var instruction = target as JObject; if (inst...
fim
CoplayDev/unity-mcp
csharp
<|fim_suffix|>ginate</param> /// <param name="request">The pagination request parameters</param> /// <returns>A paginated response with the appropriate slice of items</returns> public static PaginationResponse<T> Create(IList<T> allItems, PaginationRequest request) { int tota...
fim
CoplayDev/unity-mcp
csharp
<|fim_prefix|>using System; using System.Globalization; using Newtonsoft.Json.Linq; namespace MCPForUnity.Editor.Helpers { /// <summary> <|fim_suffix|> return (int)d; } catch { // Swallow and return null } return null; } ...
fim
CoplayDev/unity-mcp
csharp
<|fim_prefix|>using System; using System.IO; using System.Net; using System.Net.Sockets; using System.Security.Cryptography; using System.Text; using System.Threading; using MCPForUnity.Editor.Constants; using Newtonsoft.Json; using UnityEditor; using UnityEngine; namespace MCPForUnity.Editor.Helpers { /// <summar...
fim
CoplayDev/unity-mcp
csharp
<|fim_prefix|>using System; using System.Collections.Generic; using UnityEditor; using UnityEngine; namespace MCPForUnity.Editor.Helpers { /// <summary> /// Provides common utility methods for working with Unity Prefab assets. /// </summary> public static class PrefabUtilityHelper { /// <su...
fim
CoplayDev/unity-mcp
csharp
<|fim_prefix|>using System; using System.IO; using System.Security.Cryptography; using System.Text; using MCPForUnity.Editor.Constants; using UnityEditor; using UnityEngine; namespac<|fim_suffix|> /// </summary> public static string GetProjectHash() { EnsureIdentityCache(); ...
fim
CoplayDev/unity-mcp
csharp
<|fim_suffix|>dAsset == null) { McpLog.Warn($"[PropertyConversion] Could not load asset of type {targetType.Name} from path: {assetPath}"); } return loadedAsset; } } } <|fim_prefix|>using System; using Newtonsoft.Json; using Newtonsoft.Json.L...
fim
CoplayDev/unity-mcp
csharp
<|fim_prefix|>using System; using System.Collections.Generic; using UnityEngine; using UnityEngine.Rendering; using UnityEditor; namespace MCPForUnity.Editor.Helpers { internal static class RenderPipelineUtility { internal enum PipelineKind { BuiltIn, Universal, ...
fim
CoplayDev/unity-mcp
csharp
<|fim_prefix|>using System; using System.C<|fim_suffix|>erial for a Renderer. /// </summary> /// <param name="renderer">The renderer to set material on</param> /// <param name="params">JSON parameters containing materialPath</param> /// <param name="undoName">Name for the undo operation<...
fim
CoplayDev/unity-mcp
csharp
<|fim_prefix|>using Newtonsoft.Json; namespace MCPForUnity.Editor.Helpers { public interface IMcpResponse { [JsonProperty("success")] bool Success { get; } } public sealed class SuccessResponse : IMcpResponse { [JsonProperty("success")] public bool Success => true; ...
fim
CoplayDev/unity-mcp
csharp
<|fim_prefix|>using MCPForUnity.Runtime.Helpers; using UnityEditor; namespace MCPForUnity.Editor.Helpers { /// <summary> /// Per-user EditorPrefs override for the default screenshot output folder. /// Resolu<|fim_suffix|>le for <see cref="ScreenshotUtility.ResolveFolderAbsolute"/>. /// </summary> ...
fim
CoplayDev/unity-mcp
csharp
<|fim_suffix|>(1))); return first + rest; } } } <|fim_prefix|>using System; using System.Linq; using System.Text.RegularExpressions; namespace MCPForUnity.Editor.Helpers { /// <summary> /// Utility class for converting between naming conventions (snake_case, camelCase). /// Consoli...
fim
CoplayDev/unity-mcp
csharp
<|fim_prefix|>using System; using System.Collections.Generic; using System.Threading; using MCPForUnity.Editor.Constants; using MCPForUnity.Editor.Services.Transport.Transports; using UnityEngine; namespace MCPForUnity.Editor.Helpers { /// <summary> /// Unity Bridge telemetry helper for collecting usage analyt...
fim
CoplayDev/unity-mcp
csharp
using System; using System.Collections.Generic; using System.IO; using Newtonsoft.Json.Linq; using UnityEngine; namespace MCPForUnity.Editor.Helpers { public static class TextureOps { public static byte[] EncodeTexture(Texture2D texture, string assetPath) { if (texture == null) ...
fim
CoplayDev/unity-mcp
csharp
using System.Linq; using Newtonsoft.Json; using Newtonsoft.Json.Linq; using System; namespace MCPForUnity.Editor.Helpers { /// <summary> /// Unified parameter validation and extraction wrapper for MCP tools. /// Eliminates repetitive IsNullOrEmpty checks and provides consistent error messages. /// </su...
fim
CoplayDev/unity-mcp
csharp
<|fim_prefix|>using System.Collections.Generic; using Newtonsof<|fim_suffix|>or Unity types. /// Use this for all JToken-to-Unity-type conversions. /// </summary> public static readonly JsonSerializer Instance = JsonSerializer.Create(new JsonSerializerSettings { Converters = ...
fim
CoplayDev/unity-mcp
csharp
<|fim_suffix|>Pipeline.GetAssemblies(AssembliesType.Player).Select(a => a.name), StringComparer.Ordinal); var list = types.ToList(); var fromPlayer = list.Where(t => playerAsmNames.Contains(t.Assembly.GetName().Name)).ToList(); return fromPlayer.Count > 0 ? fromPlaye...
fim
CoplayDev/unity-mcp
csharp
using System; using System.Collections.Generic; using Newtonsoft.Json.Linq; using UnityEngine; namespace MCPForUnity.Editor.Helpers { /// <summary> /// Utility class for parsing JSON tokens into Unity vector, math, and animation types. /// Supports both array format [x, y, z] and object format {x: 1, y: 2,...
fim
CoplayDev/unity-mcp
csharp
<|fim_prefix|>using Sy<|fim_suffix|> { try { EditorPrefs.SetBool(EditorPrefKeys.UseHttpTransport, false); } catch { /* ignore */ } StdioBridgeHost.StartAutoConnect(); } } } <|fim_middle|>stem; using MCPForUnity.Editor.Cons...
fim
CoplayDev/unity-mcp
csharp
<|fim_prefix|>using MCPForUnity.Editor.Setup; using MCPForUnity.Editor.Windows; using UnityEditor; using UnityEngine; namespace MCPForUnity.Editor.MenuItems { p<|fim_suffix|>public static void ShowEditorPrefsWindow() { EditorPrefsWindow.ShowWindow(); } } } <|fim_middle|>ublic static...
fim
CoplayDev/unity-mcp
csharp
<|fim_suffix|>Warn($"Legacy configuration migration finished with errors ({summary.GetSummaryMessage()}). details:"); if (summary.Messages != null) { foreach (var message in summary.Messages) { McpLog.War...
fim
CoplayDev/unity-mcp
csharp
<|fim_prefix|>using System; using System.IO; using System.Linq; using MCPForUnity.Editor.Clients; using MCPForUnity.Editor.Constants; using MCPForUnity.Editor.Helpers; using MCPForUnity.Editor.Models; using MCPForUnity.Editor.Services; using Newtonsoft.Json.Linq; using UnityEditor; using UnityEngine; namespace MCPForU...
fim
CoplayDev/unity-mcp
csharp
<|fim_prefix|>using Newtonsoft.Json.Linq; namespace MCPForUnity.Editor.Models { /// <summary> /// Represents a command received from the MCP client /// </summary> public class Command { /// <summary> /// The type of command to execute /// <|fim_suffix|> get; set; } ...
fim
CoplayDev/unity-mcp
csharp
<|fim_suffix|>els { [Serializable] public class McpConfigServer { [JsonProperty("command")] public string command; [JsonProperty("args")] public string[] args; // VSCode expects a transport type; include only when explicitly set [JsonProperty("type", NullVal...
fim
CoplayDev/unity-mcp
csharp
<|fim_prefix|>using System; using Newtonsoft.Json; namespace MCPForUnity.Editor<|fim_suffix|> McpConfigServer unityMCP; } } <|fim_middle|>.Models { [Serializable] public class McpConfigServers { [JsonProperty("unityMCP")] public<|endoftext|>
fim
CoplayDev/unity-mcp
csharp
<|fim_suffix|> McpStatus.Running => "Running", McpStatus.Connected => "Connected", McpStatus.IncorrectPath => "Incorrect Path", McpStatus.CommunicationError => "Communication Error", McpStatus.NoResponse => "No Response", McpStatus.Uns...
fim
CoplayDev/unity-mcp
csharp
<|fim_prefix|>using System; using Newtonsoft.Json; namespace MCPForUnity.Editor.Models { [Serializable] public class McpConfig { <|fim_suffix|>mcpServers")] public McpConfigServers mcpServers; } } <|fim_middle|> [JsonProperty("<|endoftext|>
fim
CoplayDev/unity-mcp
csharp
<|fim_prefix|>namespace MCPForUnity.Editor.Models { // Enum representing the various status states for MCP clients public enum McpStatus { NotConfigured, // Not set up yet Configured, // Successfully configured Running, // Service is running Connected, // Successfully connect...
fim
CoplayDev/unity-mcp
csharp
<|fim_prefix|>using System; using MCPForUnity.Editor.Helpers; using Newtonsoft.Json.Linq; using UnityEditor; namespace MCPForUnity.Editor.Resources.Editor { /// <summary> /// Provides information about the currently active editor tool. /// </summary> [McpForUnityResource("get_active_tool")] public ...
fim
CoplayDev/unity-mcp
csharp
<|fim_suffix|> } catch (Exception e) { return new ErrorResponse($"Error getting editor state: {e.Message}"); } } } } <|fim_prefix|>using System; using MCPForUnity.Editor.Helpers; using MCPForUnity.Editor.Services; using Newtonsoft.Json.Linq; nam...
fim
CoplayDev/unity-mcp
csharp
<|fim_suffix|> } catch (Exception e) { return new ErrorResponse($"Error getting prefab stage: {e.Message}"); } } } } <|fim_prefix|>using System; using MCPForUnity.Editor.Helpers; using Newtonsoft.Json.Linq; using UnityEditor.SceneManagement; namespace MCP...
fim
CoplayDev/unity-mcp
csharp
<|fim_suffix|>m?.name, activeInstanceID = UnityEditor.Selection.activeObject?.GetInstanceIDCompat() ?? 0, count = UnityEditor.Selection.count, objects = UnityEditor.Selection.objects .Select(obj => new { ...
fim
CoplayDev/unity-mcp
csharp
<|fim_prefix|>using System; using System.Linq; using MCPForUnity.Editor.Helpers; using MCPForUnity.Editor.Services; using Newtonsoft.Json.Linq; namespace MCPForUnity.Editor.Resources.Editor { /// <summary> /// Returns the enabled/disabled state of all discovered tools, grouped by group name. /// Used by th...
fim
CoplayDev/unity-mcp
csharp
<|fim_suffix|> { if (window == null) continue; try { openWindows.Add(new { title = window.titleContent.text, typeName ...
fim
CoplayDev/unity-mcp
csharp
<|fim_suffix|>= resourceName; } } } <|fim_prefix|>using System; namespace MCPForUnity.Editor.Resources { /// <summary> /// Marks a class as an MCP resource handler for auto-discovery. /// The class must have a public static HandleCommand(JObject) method. /// </summary> [AttributeUsage(A...
fim
CoplayDev/unity-mcp
csharp
<|fim_suffix|>lic static object HandleCommand(JObject @params) { bool forceRefresh = @params?["refresh"]?.ToObject<bool>() ?? false; string search = @params?["search"]?.ToString(); var items = GetMenuItemsInternal(forceRefresh); if (!string.IsNullOrEmpty(search)...
fim
CoplayDev/unity-mcp
csharp
using System; using System.Collections.Generic; using MCPForUnity.Editor.Helpers; using Newtonsoft.Json.Linq; using UnityEngine; namespace MCPForUnity.Editor.Resources.Project { /// <summary> /// Provides dictionary of layer indices to layer names. /// </summary> [McpForUnityResource("get_layers")] ...
fim
CoplayDev/unity-mcp
csharp
<|fim_suffix|>geInstalled("com.unity.ugui"), textmeshpro = IsPackageInstalled("com.unity.textmeshpro"), inputsystem = IsPackageInstalled("com.unity.inputsystem"), uiToolkit = true, screenCapture = true, }...
fim
CoplayDev/unity-mcp
csharp
<|fim_prefix|>using System; using MCPForUnity.Editor.Helpers; using Newtonsoft.Json.Linq; using UnityEditorInternal; n<|fim_suffix|>ags); } catch (Exception e) { return new ErrorResponse($"Failed to retrieve tags: {e.Message}"); } } } } <|fim_...
fim
CoplayDev/unity-mcp
csharp
<|fim_suffix|>ras(@params ?? new JObject()); } catch (Exception e) { McpLog.Error($"[CamerasResource] Error listing cameras: {e}"); return new ErrorResponse($"Error listing cameras: {e.Message}"); } } } } <|fim_prefix|>using Sys...
fim
CoplayDev/unity-mcp
csharp
<|fim_suffix|> active = go.activeSelf, activeInHierarchy = go.activeInHierarchy, isStatic = go.isStatic, transform = new { position = SerializeVector3(transform.position), localPosition = SerializeVector3(transform...
fim
CoplayDev/unity-mcp
csharp
<|fim_prefix|>using System; using MCPForUnity.Editor.Helpers; using MCPForUnity.Editor.Tools.Graphics; using Newtonsoft.Json.Linq; namespace MCPForUnity.Editor.Resources.Scene { [McpForUnityResource("get_renderer_features")] public static class RendererFeaturesResource { public static object Handle...
fim
CoplayDev/unity-mcp
csharp
using System; using MCPForUnity.Editor.Helpers; using MCPForUnity.Editor.Tools.Graphics; using Newtonsoft.Json.Linq; namespace MCPForUnity.Editor.Resources.Scene { [McpForUnityResource("get_rendering_stats")] public static class RenderingStatsResource { public static object HandleCommand(JObject @p...
fim
CoplayDev/unity-mcp
csharp
<|fim_suffix|> class VolumesResource { public static object HandleCommand(JObject @params) { try { return VolumeOps.ListVolumes(@params ?? new JObject()); } catch (Exception e) { McpLog.Error($"[VolumesResour...
fim
CoplayDev/unity-mcp
csharp
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using MCPForUnity.Editor.Helpers; using MCPForUnity.Editor.Services; using Newtonsoft.Json.Linq; using UnityEditor.TestTools.TestRunner.Api; namespace MCPForUnity.Editor.Resources.Tests { /// <summary> /// Provides...
fim
CoplayDev/unity-mcp
csharp
<|fim_prefix|> using System; using System.Threading.Tasks; using MCPForUnity.Editor.Constants; using MCPForUnity.Editor.Helpers; using MCPForUnity.Editor.Services.Transport; using MCPForUnity.Editor.Services.Transport.Transports; using UnityEditor; namespace MCPForU<|fim_suffix|>new BridgeVerificationResult ...
fim
CoplayDev/unity-mcp
csharp
<|fim_prefix|>using System; using System.Collections.Generic; using System.Linq; using MCPForUnity.Editor.Clients; using MCPForUnity.Editor.Helpers; using MCPForUnity.Editor.Models; namespace MCPForUnity.Editor.Services { /// <summary> /// Implementation of client configuration service /// </summary> p...
fim
CoplayDev/unity-mcp
csharp
<|fim_prefix|>using System; using MCPForUnity.Editor.Constants; using UnityEditor; namespace MCPForUnity.Editor.Services { /// <summary> /// Centralized cache for frequently-read EditorPrefs values. /// Reduces scattered EditorPrefs.Get* calls and provides change notification. /// /// Usage: //...
fim
CoplayDev/unity-mcp
csharp