22 lines
497 B
C++
22 lines
497 B
C++
#pragma once
|
|
|
|
#include "CoreMinimal.h"
|
|
#include "Commandlets/Commandlet.h"
|
|
#include "MCPCommandlet.generated.h"
|
|
|
|
/**
|
|
* Commandlet that keeps the engine alive so the BlueprintMCP editor subsystem
|
|
* can serve MCP requests without the full editor UI.
|
|
*
|
|
* Usage: UnrealEditor-Cmd.exe Project.uproject -run=BlueprintMCP
|
|
*/
|
|
UCLASS()
|
|
class UBlueprintMCPCommandlet : public UCommandlet
|
|
{
|
|
GENERATED_BODY()
|
|
|
|
public:
|
|
UBlueprintMCPCommandlet();
|
|
virtual int32 Main(const FString& Params) override;
|
|
};
|