Skip to main content
Glama
UnityMcpPlugin.Config.cs2.73 kB
/* ┌──────────────────────────────────────────────────────────────────┐ │ Author: Ivan Murzak (https://github.com/IvanMurzak) │ │ Repository: GitHub (https://github.com/IvanMurzak/Unity-MCP) │ │ Copyright (c) 2025 Ivan Murzak │ │ Licensed under the Apache License, Version 2.0. │ │ See the LICENSE file in the project root for more information. │ └──────────────────────────────────────────────────────────────────┘ */ #nullable enable using System.Collections.Generic; using com.IvanMurzak.McpPlugin; using com.IvanMurzak.McpPlugin.Common; using com.IvanMurzak.Unity.MCP.Runtime.Utils; namespace com.IvanMurzak.Unity.MCP { public partial class UnityMcpPlugin { protected readonly object configMutex = new(); protected UnityConnectionConfig unityConnectionConfig; public class UnityConnectionConfig : ConnectionConfig { public static string DefaultHost => $"http://localhost:{GeneratePortFromDirectory()}"; public static List<McpFeature> DefaultTools => new(); public static List<McpFeature> DefaultPrompts => new(); public static List<McpFeature> DefaultResources => new(); public LogLevel LogLevel { get; set; } = LogLevel.Warning; public List<McpFeature> Tools { get; set; } = new(); public List<McpFeature> Prompts { get; set; } = new(); public List<McpFeature> Resources { get; set; } = new(); public UnityConnectionConfig() { SetDefault(); } public UnityConnectionConfig SetDefault() { Host = DefaultHost; KeepConnected = true; LogLevel = LogLevel.Warning; TimeoutMs = Consts.Hub.DefaultTimeoutMs; Tools = DefaultTools; Prompts = DefaultPrompts; Resources = DefaultResources; return this; } public class McpFeature { public string Name { get; set; } = string.Empty; public bool Enabled { get; set; } = true; public McpFeature() { } public McpFeature(string name, bool enabled) { Name = name; Enabled = enabled; } } } } }

Latest Blog Posts

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/IvanMurzak/Unity-MCP'

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