Skip to main content
Glama

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

Implementation Reference

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

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