Skip to main content
Glama

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
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • 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}`, }, ], } })
  • 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}`, }, ], } })
  • 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

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