Skip to main content
Glama

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
NameRequiredDescriptionDefault
pathYes

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}`, }, ], } }, )
  • 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}`, }, ], } },
  • Input schema for the tool using Zod: requires a 'path' string parameter.
    { path: z.string(), },
  • Global variables used by the tool handlers to store engine and project paths persistently.
    let enginePath: string | undefined = undefined let projectPath: string | undefined = undefined

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/runreal/unreal-mcp'

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