Skip to main content
Glama
IServerManagementService.cs1.81 kB
namespace MCPForUnity.Editor.Services { /// <summary> /// Interface for server management operations /// </summary> public interface IServerManagementService { /// <summary> /// Clear the local uvx cache for the MCP server package /// </summary> /// <returns>True if successful, false otherwise</returns> bool ClearUvxCache(); /// <summary> /// Start the local HTTP server in a new terminal window. /// Stops any existing server on the port and clears the uvx cache first. /// </summary> /// <returns>True if server was started successfully, false otherwise</returns> bool StartLocalHttpServer(); /// <summary> /// Stop the local HTTP server by finding the process listening on the configured port /// </summary> bool StopLocalHttpServer(); /// <summary> /// Attempts to get the command that will be executed when starting the local HTTP server /// </summary> /// <param name="command">The command that will be executed when available</param> /// <param name="error">Reason why a command could not be produced</param> /// <returns>True if a command is available, false otherwise</returns> bool TryGetLocalHttpServerCommand(out string command, out string error); /// <summary> /// Check if the configured HTTP URL is a local address /// </summary> /// <returns>True if URL is local (localhost, 127.0.0.1, etc.)</returns> bool IsLocalUrl(); /// <summary> /// Check if the local HTTP server can be started /// </summary> /// <returns>True if HTTP transport is enabled and URL is local</returns> bool CanStartLocalServer(); } }

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/CoplayDev/unity-mcp'

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