set_unreal_project_path
Configure the Unreal Engine project directory path to enable MCP server functionality for project-specific operations.
Instructions
Set the Project path
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes |
Implementation Reference
- server/index.ts:94-112 (registration)Registration of the 'set_unreal_project_path' tool, including input schema (path: string) and inline handler that sets the global projectPath variable and returns a confirmation message.server.tool( "set_unreal_project_path", "Set the Project path", { path: z.string(), }, async ({ path }) => { projectPath = path return { content: [ { type: "text", text: `Project path set to ${path}`, }, ], } }, )
- server/index.ts:100-111 (handler)Handler function that stores the input path in the projectPath variable and responds with a text message confirming the path was set.async ({ path }) => { projectPath = path return { content: [ { type: "text", text: `Project path set to ${path}`, }, ], } },
- server/index.ts:97-99 (schema)Input schema for the tool using Zod: requires a 'path' string parameter.{ path: z.string(), },
- server/index.ts:23-24 (helper)Global variables used by the tool handlers to store engine and project paths persistently.let enginePath: string | undefined = undefined let projectPath: string | undefined = undefined