Skip to main content
Glama

Unity Editor MCP Server

Logger.cs1.2 kB
using UnityEngine; using McpUnity.Unity; namespace McpUnity.Utils { /// <summary> /// Special logger to use inside the MCP Unity Editor project /// </summary> public static class McpLogger { private const string LogPrefix = "[MCP Unity] "; /// <summary> /// Log an info message if info logs are enabled /// </summary> /// <param name="message">Message to log</param> public static void LogInfo(string message) { if (McpUnitySettings.Instance.EnableInfoLogs) { Debug.Log($"{LogPrefix}{message}"); } } /// <summary> /// Log a warning message /// </summary> /// <param name="message">Message to log</param> public static void LogWarning(string message) { Debug.LogWarning($"{LogPrefix}{message}"); } /// <summary> /// Log an error message /// </summary> /// <param name="message">Message to log</param> public static void LogError(string message) { Debug.LogError($"{LogPrefix}{message}"); } } }

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/CoderGamester/mcp-unity'

If you have feedback or need assistance with the MCP directory API, please join our Discord server