set_unreal_engine_path
Configure the Unreal Engine installation path for the unreal-mcp server to enable proper integration and functionality.
Instructions
Set the Unreal Engine path
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes |
Implementation Reference
- server/index.ts:80-91 (handler)The handler function sets the global enginePath variable to the user-provided path and returns a confirmation message in the MCP content format.async ({ path }) => { enginePath = path return { content: [ { type: "text", text: `Unreal Engine path set to ${path}`, }, ], } },
- server/index.ts:77-79 (schema)Zod schema defining the input parameters: a single 'path' string.{ path: z.string(), },
- server/index.ts:74-92 (registration)Registration of the 'set_unreal_engine_path' tool on the MCP server, including name, description, schema, and inline handler function.server.tool( "set_unreal_engine_path", "Set the Unreal Engine path", { path: z.string(), }, async ({ path }) => { enginePath = path return { content: [ { type: "text", text: `Unreal Engine path set to ${path}`, }, ], } }, )