get_unreal_project_path
Retrieve the current Unreal Engine project directory path for targeted project management and integration workflows.
Instructions
Get the current Unreal Project path
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- server/index.ts:129-142 (handler)The inline handler function for the get_unreal_project_path tool that retrieves and returns the stored projectPath variable as text content if set, otherwise throws an error. This block also registers the tool with the MCP server.server.tool("get_unreal_project_path", "Get the current Unreal Project path", async () => { if (!projectPath) { throw new Error("Unreal Project path is not set") } return { content: [ { type: "text", text: `Unreal Project path: ${projectPath}`, }, ], } })
- server/index.ts:129-142 (registration)Registers the get_unreal_project_path tool with the MCP server, providing its description and handler function.server.tool("get_unreal_project_path", "Get the current Unreal Project path", async () => { if (!projectPath) { throw new Error("Unreal Project path is not set") } return { content: [ { type: "text", text: `Unreal Project path: ${projectPath}`, }, ], } })
- server/index.ts:24-24 (helper)Global state variable used by the get_unreal_project_path tool to store the Unreal project path, set via the companion set_unreal_project_path tool.let projectPath: string | undefined = undefined