Make parameter names more concise in the MCP
This commit is contained in:
@@ -20,7 +20,7 @@ class UMCP_Asset_Backup : public UObject, public IMCPHandler
|
|||||||
GENERATED_BODY()
|
GENERATED_BODY()
|
||||||
|
|
||||||
public:
|
public:
|
||||||
UPROPERTY(meta=(Description="Full package path of the asset (e.g. /Game/Widgets/WB_Hotkeys)"))
|
UPROPERTY(meta=(Description="Asset to back up"))
|
||||||
FString Asset;
|
FString Asset;
|
||||||
|
|
||||||
virtual FString GetDescription() const override
|
virtual FString GetDescription() const override
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ class UMCP_Asset_Delete : public UObject, public IMCPHandler
|
|||||||
GENERATED_BODY()
|
GENERATED_BODY()
|
||||||
|
|
||||||
public:
|
public:
|
||||||
UPROPERTY(meta=(Description="Package path of the asset to delete, e.g. /Game/Foo/Bar"))
|
UPROPERTY(meta=(Description="Asset to delete"))
|
||||||
FString Asset;
|
FString Asset;
|
||||||
|
|
||||||
UPROPERTY(meta=(Optional, Description="If true, skip reference check and force delete"))
|
UPROPERTY(meta=(Optional, Description="If true, skip reference check and force delete"))
|
||||||
|
|||||||
@@ -19,7 +19,7 @@ class UMCP_Asset_FindReferences : public UObject, public IMCPHandler
|
|||||||
GENERATED_BODY()
|
GENERATED_BODY()
|
||||||
|
|
||||||
public:
|
public:
|
||||||
UPROPERTY(meta=(Description="Asset package path to find references for, e.g. /Game/Tangibles/TAN_Tree"))
|
UPROPERTY(meta=(Description="Asset to find references for"))
|
||||||
FString Asset;
|
FString Asset;
|
||||||
|
|
||||||
virtual FString GetDescription() const override
|
virtual FString GetDescription() const override
|
||||||
|
|||||||
@@ -20,10 +20,10 @@ class UMCP_Asset_Rename : public UObject, public IMCPHandler
|
|||||||
GENERATED_BODY()
|
GENERATED_BODY()
|
||||||
|
|
||||||
public:
|
public:
|
||||||
UPROPERTY(meta=(Description="Current package path of the asset, e.g. /Game/Widgets/WB_Hotkeys"))
|
UPROPERTY(meta=(Description="Asset to rename"))
|
||||||
FString Asset;
|
FString Asset;
|
||||||
|
|
||||||
UPROPERTY(meta=(Description="New package path (e.g. /Game/Widgets/WB_NewName) or just a new asset name (e.g. WB_NewName)"))
|
UPROPERTY(meta=(Description="New package path or just a new name"))
|
||||||
FString NewPath;
|
FString NewPath;
|
||||||
|
|
||||||
virtual FString GetDescription() const override
|
virtual FString GetDescription() const override
|
||||||
|
|||||||
@@ -21,7 +21,7 @@ class UMCP_Asset_Restore : public UObject, public IMCPHandler
|
|||||||
GENERATED_BODY()
|
GENERATED_BODY()
|
||||||
|
|
||||||
public:
|
public:
|
||||||
UPROPERTY(meta=(Description="Full package path of the asset (e.g. /Game/Widgets/WB_Hotkeys)"))
|
UPROPERTY(meta=(Description="Asset to restore"))
|
||||||
FString Asset;
|
FString Asset;
|
||||||
|
|
||||||
virtual FString GetDescription() const override
|
virtual FString GetDescription() const override
|
||||||
|
|||||||
@@ -19,7 +19,7 @@ class UMCP_Editor_OpenAsset : public UObject, public IMCPHandler
|
|||||||
GENERATED_BODY()
|
GENERATED_BODY()
|
||||||
|
|
||||||
public:
|
public:
|
||||||
UPROPERTY(meta=(Description="MCPFetcher path to the asset to open (e.g. /Game/Materials/M_Gold)"))
|
UPROPERTY(meta=(Description="Asset to open"))
|
||||||
FString Asset;
|
FString Asset;
|
||||||
|
|
||||||
virtual FString GetDescription() const override
|
virtual FString GetDescription() const override
|
||||||
|
|||||||
@@ -38,17 +38,16 @@ class UMCP_GraphNode_Create : public UObject, public IMCPHandler
|
|||||||
GENERATED_BODY()
|
GENERATED_BODY()
|
||||||
|
|
||||||
public:
|
public:
|
||||||
UPROPERTY(meta=(Description="Path to a graph, e.g. /Game/Foo,graph:EventGraph"))
|
UPROPERTY(meta=(Description="Target graph"))
|
||||||
FString Graph;
|
FString Graph;
|
||||||
|
|
||||||
UPROPERTY(meta=(Description="Array of {actionName, posX, posY} objects. Use GraphNodeSearchTypes to find action names."))
|
UPROPERTY(meta=(Description="Array of {Type, posX, posY} objects. Use GraphNode_SearchTypes to find types."))
|
||||||
FMCPJsonArray Nodes;
|
FMCPJsonArray Nodes;
|
||||||
|
|
||||||
virtual FString GetDescription() const override
|
virtual FString GetDescription() const override
|
||||||
{
|
{
|
||||||
return TEXT("Create nodes in any graph (Blueprint, Material, etc.) using the editor's action database. "
|
return TEXT("Create nodes using the editor's action database. "
|
||||||
"Can create ANY node type that appears in the editor's right-click menu. "
|
"Use GraphNode_SearchTypes to find types.");
|
||||||
"Use GraphNodeSearchTypes first to find the exact action name.");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
virtual void Handle() override
|
virtual void Handle() override
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ class UMCP_GraphNode_Delete : public UObject, public IMCPHandler
|
|||||||
GENERATED_BODY()
|
GENERATED_BODY()
|
||||||
|
|
||||||
public:
|
public:
|
||||||
UPROPERTY(meta=(Description="Path to the node, e.g. /Game/Foo,graph:EventGraph,node:MyNode"))
|
UPROPERTY(meta=(Description="Node to delete"))
|
||||||
FString Node;
|
FString Node;
|
||||||
|
|
||||||
virtual FString GetDescription() const override
|
virtual FString GetDescription() const override
|
||||||
|
|||||||
@@ -21,7 +21,7 @@ class UMCP_GraphNode_Duplicate : public UObject, public IMCPHandler
|
|||||||
GENERATED_BODY()
|
GENERATED_BODY()
|
||||||
|
|
||||||
public:
|
public:
|
||||||
UPROPERTY(meta=(Description="Path to a graph, e.g. /Game/Foo,graph:EventGraph"))
|
UPROPERTY(meta=(Description="Target graph"))
|
||||||
FString Graph;
|
FString Graph;
|
||||||
|
|
||||||
UPROPERTY(meta=(Description="Array of node names to duplicate (as returned by FormatName)"))
|
UPROPERTY(meta=(Description="Array of node names to duplicate (as returned by FormatName)"))
|
||||||
|
|||||||
@@ -19,7 +19,7 @@ class UMCP_GraphNode_GetComment : public UObject, public IMCPHandler
|
|||||||
GENERATED_BODY()
|
GENERATED_BODY()
|
||||||
|
|
||||||
public:
|
public:
|
||||||
UPROPERTY(meta=(Description="Path to the node, e.g. /Game/Foo,graph:EventGraph,node:MyNode"))
|
UPROPERTY(meta=(Description="Target node"))
|
||||||
FString Node;
|
FString Node;
|
||||||
|
|
||||||
virtual FString GetDescription() const override
|
virtual FString GetDescription() const override
|
||||||
|
|||||||
@@ -26,7 +26,7 @@ public:
|
|||||||
UPROPERTY(meta=(Optional, Description="Maximum number of results (default 50, max 500)"))
|
UPROPERTY(meta=(Optional, Description="Maximum number of results (default 50, max 500)"))
|
||||||
int32 MaxResults = 50;
|
int32 MaxResults = 50;
|
||||||
|
|
||||||
UPROPERTY(meta=(Description="MCPFetcher path to a graph, e.g. /Game/Foo,graph:EventGraph or /Game/Materials/M_Gold,graph:"))
|
UPROPERTY(meta=(Description="Target graph (needed for context-sensitive results)"))
|
||||||
FString Graph;
|
FString Graph;
|
||||||
|
|
||||||
virtual FString GetDescription() const override
|
virtual FString GetDescription() const override
|
||||||
|
|||||||
@@ -19,7 +19,7 @@ class UMCP_GraphNode_SetComment : public UObject, public IMCPHandler
|
|||||||
GENERATED_BODY()
|
GENERATED_BODY()
|
||||||
|
|
||||||
public:
|
public:
|
||||||
UPROPERTY(meta=(Description="Path to the node, e.g. /Game/Foo,node:MyNode"))
|
UPROPERTY(meta=(Description="Target node"))
|
||||||
FString Node;
|
FString Node;
|
||||||
|
|
||||||
UPROPERTY(meta=(Description="Comment text to set"))
|
UPROPERTY(meta=(Description="Comment text to set"))
|
||||||
@@ -27,7 +27,8 @@ public:
|
|||||||
|
|
||||||
virtual FString GetDescription() const override
|
virtual FString GetDescription() const override
|
||||||
{
|
{
|
||||||
return TEXT("Set a node's comment text. Makes the comment bubble visible if non-empty.");
|
return TEXT("Set a node's comment text, and make the comment visible. "
|
||||||
|
"Setting empty text will cause the comment to vanish.");
|
||||||
}
|
}
|
||||||
|
|
||||||
virtual void Handle() override
|
virtual void Handle() override
|
||||||
@@ -37,13 +38,8 @@ public:
|
|||||||
if (!FoundNode) return;
|
if (!FoundNode) return;
|
||||||
|
|
||||||
FoundNode->NodeComment = Comment;
|
FoundNode->NodeComment = Comment;
|
||||||
|
FoundNode->bCommentBubbleVisible = !Comment.IsEmpty();
|
||||||
// Make the comment bubble visible if setting a non-empty comment
|
FoundNode->bCommentBubblePinned = !Comment.IsEmpty();
|
||||||
if (!Comment.IsEmpty())
|
|
||||||
{
|
|
||||||
FoundNode->bCommentBubbleVisible = true;
|
|
||||||
FoundNode->bCommentBubblePinned = true;
|
|
||||||
}
|
|
||||||
|
|
||||||
UMCPServer::Printf(TEXT("Comment set on %s\n"), *MCPUtils::FormatName(FoundNode));
|
UMCPServer::Printf(TEXT("Comment set on %s\n"), *MCPUtils::FormatName(FoundNode));
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -39,7 +39,7 @@ class UMCP_GraphNode_SetDefaults : public UObject, public IMCPHandler
|
|||||||
GENERATED_BODY()
|
GENERATED_BODY()
|
||||||
|
|
||||||
public:
|
public:
|
||||||
UPROPERTY(meta=(Description="Graph path, e.g. /Game/Foo,graph:EventGraph"))
|
UPROPERTY(meta=(Description="Target graph"))
|
||||||
FString Graph;
|
FString Graph;
|
||||||
|
|
||||||
UPROPERTY(meta=(Description="Array of {node, name, value} objects"))
|
UPROPERTY(meta=(Description="Array of {node, name, value} objects"))
|
||||||
|
|||||||
@@ -37,7 +37,7 @@ class UMCP_GraphNode_SetPositions : public UObject, public IMCPHandler
|
|||||||
GENERATED_BODY()
|
GENERATED_BODY()
|
||||||
|
|
||||||
public:
|
public:
|
||||||
UPROPERTY(meta=(Description="Path to a graph, e.g. /Game/Foo,graph:EventGraph"))
|
UPROPERTY(meta=(Description="Target graph"))
|
||||||
FString Graph;
|
FString Graph;
|
||||||
|
|
||||||
UPROPERTY(meta=(Description="Array of {node, x, y} objects"))
|
UPROPERTY(meta=(Description="Array of {node, x, y} objects"))
|
||||||
|
|||||||
@@ -36,10 +36,10 @@ class UMCP_GraphPin_Connect : public UObject, public IMCPHandler
|
|||||||
GENERATED_BODY()
|
GENERATED_BODY()
|
||||||
|
|
||||||
public:
|
public:
|
||||||
UPROPERTY(meta=(Description="Path to a graph, e.g. /Game/Foo,graph:EventGraph or /Game/Materials/M_Test"))
|
UPROPERTY(meta=(Description="Target graph"))
|
||||||
FString Graph;
|
FString Graph;
|
||||||
|
|
||||||
UPROPERTY(meta=(Description="Array of {sourcePin, targetPin} objects. Each pin is a path like node:MyNode,pin:Output"))
|
UPROPERTY(meta=(Description="Array of {sourcePin, targetPin} objects"))
|
||||||
FMCPJsonArray Connections;
|
FMCPJsonArray Connections;
|
||||||
|
|
||||||
virtual FString GetDescription() const override
|
virtual FString GetDescription() const override
|
||||||
|
|||||||
@@ -35,10 +35,10 @@ class UMCP_GraphPin_Disconnect : public UObject, public IMCPHandler
|
|||||||
GENERATED_BODY()
|
GENERATED_BODY()
|
||||||
|
|
||||||
public:
|
public:
|
||||||
UPROPERTY(meta=(Description="Path to a graph, e.g. /Game/Foo,graph:EventGraph or /Game/Materials/M_Test"))
|
UPROPERTY(meta=(Description="Target graph"))
|
||||||
FString Graph;
|
FString Graph;
|
||||||
|
|
||||||
UPROPERTY(meta=(Description="Array of {pin, targetPin?} objects. Each pin is a path like node:MyNode,pin:Output. If targetPin is omitted, all connections on the pin are broken."))
|
UPROPERTY(meta=(Description="Array of {pin, targetPin?} objects. If targetPin is omitted, all connections on the pin are broken."))
|
||||||
FMCPJsonArray Disconnections;
|
FMCPJsonArray Disconnections;
|
||||||
|
|
||||||
virtual FString GetDescription() const override
|
virtual FString GetDescription() const override
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ class UMCP_MaterialInstance_ClearParameter : public UObject, public IMCPHandler
|
|||||||
GENERATED_BODY()
|
GENERATED_BODY()
|
||||||
|
|
||||||
public:
|
public:
|
||||||
UPROPERTY(meta=(Description="Material Instance path"))
|
UPROPERTY(meta=(Description="Target material instance"))
|
||||||
FString MaterialInstance;
|
FString MaterialInstance;
|
||||||
|
|
||||||
UPROPERTY(meta=(Description="Parameter name to clear"))
|
UPROPERTY(meta=(Description="Parameter name to clear"))
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ class UMCP_MaterialInstance_DumpParameters : public UObject, public IMCPHandler
|
|||||||
GENERATED_BODY()
|
GENERATED_BODY()
|
||||||
|
|
||||||
public:
|
public:
|
||||||
UPROPERTY(meta=(Description="Material Instance path"))
|
UPROPERTY(meta=(Description="Target material instance"))
|
||||||
FString MaterialInstance;
|
FString MaterialInstance;
|
||||||
|
|
||||||
virtual FString GetDescription() const override
|
virtual FString GetDescription() const override
|
||||||
|
|||||||
@@ -21,7 +21,7 @@ class UMCP_MaterialInstance_SetParameter : public UObject, public IMCPHandler
|
|||||||
GENERATED_BODY()
|
GENERATED_BODY()
|
||||||
|
|
||||||
public:
|
public:
|
||||||
UPROPERTY(meta=(Description="Material Instance path"))
|
UPROPERTY(meta=(Description="Target material instance"))
|
||||||
FString MaterialInstance;
|
FString MaterialInstance;
|
||||||
|
|
||||||
UPROPERTY(meta=(Description="Parameter name to set"))
|
UPROPERTY(meta=(Description="Parameter name to set"))
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ class UMCP_Property_Dump : public UObject, public IMCPHandler
|
|||||||
GENERATED_BODY()
|
GENERATED_BODY()
|
||||||
|
|
||||||
public:
|
public:
|
||||||
UPROPERTY(meta=(Description="MCPFetcher path to the object (e.g. /Game/Materials/M_Gold or /Game/Tangibles/TAN_Char,component:Mesh0)"))
|
UPROPERTY(meta=(Description="Target object"))
|
||||||
FString Object;
|
FString Object;
|
||||||
|
|
||||||
UPROPERTY(meta=(Optional, Description="Substring filter for property names"))
|
UPROPERTY(meta=(Optional, Description="Substring filter for property names"))
|
||||||
@@ -34,8 +34,7 @@ public:
|
|||||||
|
|
||||||
virtual FString GetDescription() const override
|
virtual FString GetDescription() const override
|
||||||
{
|
{
|
||||||
return TEXT("List all blueprint-visible properties on an object resolved via MCPFetcher path, "
|
return TEXT("List all blueprint-visible properties, showing current values and which are editable.");
|
||||||
"showing current values and which properties are editable.");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
virtual void Handle() override
|
virtual void Handle() override
|
||||||
|
|||||||
@@ -19,7 +19,7 @@ class UMCP_Property_Get : public UObject, public IMCPHandler
|
|||||||
GENERATED_BODY()
|
GENERATED_BODY()
|
||||||
|
|
||||||
public:
|
public:
|
||||||
UPROPERTY(meta=(Description="MCPFetcher path to the object (e.g. /Game/Materials/M_Gold or /Game/Tangibles/TAN_Char,component:Mesh0)"))
|
UPROPERTY(meta=(Description="Target object"))
|
||||||
FString Object;
|
FString Object;
|
||||||
|
|
||||||
UPROPERTY(meta=(Description="Property name"))
|
UPROPERTY(meta=(Description="Property name"))
|
||||||
@@ -27,7 +27,7 @@ public:
|
|||||||
|
|
||||||
virtual FString GetDescription() const override
|
virtual FString GetDescription() const override
|
||||||
{
|
{
|
||||||
return TEXT("Get the value of a single property on an object resolved via MCPFetcher path.");
|
return TEXT("Get the value of a single property.");
|
||||||
}
|
}
|
||||||
|
|
||||||
virtual void Handle() override
|
virtual void Handle() override
|
||||||
|
|||||||
@@ -19,7 +19,7 @@ class UMCP_Property_Set : public UObject, public IMCPHandler
|
|||||||
GENERATED_BODY()
|
GENERATED_BODY()
|
||||||
|
|
||||||
public:
|
public:
|
||||||
UPROPERTY(meta=(Description="MCPFetcher path to the object (e.g. /Game/Materials/M_Gold or /Game/Tangibles/TAN_Char,component:Mesh0)"))
|
UPROPERTY(meta=(Description="Target object"))
|
||||||
FString Object;
|
FString Object;
|
||||||
|
|
||||||
UPROPERTY(meta=(Description="Object mapping property names to new values in Unreal text format"))
|
UPROPERTY(meta=(Description="Object mapping property names to new values in Unreal text format"))
|
||||||
@@ -27,8 +27,7 @@ public:
|
|||||||
|
|
||||||
virtual FString GetDescription() const override
|
virtual FString GetDescription() const override
|
||||||
{
|
{
|
||||||
return TEXT("Set one or more editable properties on an object resolved via MCPFetcher path. "
|
return TEXT("Set one or more editable properties. Values use Unreal text format.");
|
||||||
"Properties is a JSON object like {\"TwoSided\": \"true\", \"BlendMode\": \"BLEND_Translucent\"}.");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
virtual void Handle() override
|
virtual void Handle() override
|
||||||
|
|||||||
Reference in New Issue
Block a user