Skip to main content
Glama

project_info

Retrieve Unity project details including render pipeline, version, platform, and path to facilitate project analysis and setup.

Instructions

Get comprehensive Unity project information including render pipeline details, project path, Unity version, and platform info

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • Main handler logic for the 'project_info' tool. Calls adapter.getProjectInfo(), performs auto-deploy if needed, and formats the response as structured text output.
    case 'project_info': { const result = await this.adapter.getProjectInfo(); // Auto-deploy scripts if needed await this.autoDeployScripts(); return { content: [{ type: 'text', text: `Unity Project Information: Project Path: ${result.projectPath} Project Name: ${result.projectName || 'N/A'} Unity Version: ${result.unityVersion} Platform: ${result.platform} Is Playing: ${result.isPlaying} Render Pipeline: ${result.renderPipeline || 'Unknown'} Render Pipeline Version: ${result.renderPipelineVersion || 'N/A'}` }] }; }
  • Tool registration and schema definition in getTools() method. Defines name, description, and empty input schema (no parameters required).
    { name: 'project_info', description: 'Get comprehensive Unity project information including render pipeline details, project path, Unity version, and platform info', inputSchema: { type: 'object', properties: {} } },
  • Core implementation helper in UnityHttpAdapter. Proxies the tool call to Unity HTTP server endpoint 'project/info' via the generic call() method.
    async getProjectInfo(): Promise<any> { return this.call('project/info'); }
  • Supporting helper method that uses getProjectInfo() to auto-deploy MCP scripts on project access.
    private async autoDeployScripts(): Promise<void> { try { const result = await this.adapter.getProjectInfo(); await this.deployService.deployScripts({ projectPath: result.projectPath, forceUpdate: false }); } catch (error: any) { console.error(`[Unity MCP] Failed to auto-deploy scripts: ${error.message}`); } }

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

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