get_unreal_engine_path
Retrieve the current Unreal Engine installation path for access and configuration tasks within the unreal-mcp server environment.
Instructions
Get the current Unreal Engine path
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- server/index.ts:114-127 (handler)The inline handler function for the 'get_unreal_engine_path' tool. It checks if enginePath is set and returns it as text content if available. This also serves as the registration since the handler is defined inline in the server.tool call.server.tool("get_unreal_engine_path", "Get the current Unreal Engine path", async () => { if (!enginePath) { throw new Error("Unreal Engine path is not set") } return { content: [ { type: "text", text: `Unreal Engine path: ${enginePath}`, }, ], } })
- server/index.ts:114-127 (registration)Registration of the 'get_unreal_engine_path' tool using server.tool, including the inline handler implementation. No separate schema as it takes no parameters.server.tool("get_unreal_engine_path", "Get the current Unreal Engine path", async () => { if (!enginePath) { throw new Error("Unreal Engine path is not set") } return { content: [ { type: "text", text: `Unreal Engine path: ${enginePath}`, }, ], } })
- server/index.ts:23-23 (helper)Global variable used by the get_unreal_engine_path tool to store the Unreal Engine path, set via the companion set_unreal_engine_path tool.let enginePath: string | undefined = undefined