ultimate-unreal-engine-mcp 0.1.16 → 0.1.17

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ultimate-unreal-engine-mcp",
3
- "version": "0.1.16",
3
+ "version": "0.1.17",
4
4
  "description": "MCP server giving AI assistants full access to Unreal Engine 5.7 projects",
5
5
  "type": "module",
6
6
  "engines": {
@@ -301,16 +301,11 @@ void RegisterViewportCommands(FMCPCommandRouter& Router)
301
301
  }
302
302
  }
303
303
 
304
- // Set global screenshot resolution and queue capture.
305
- GScreenshotResolutionX = Width;
306
- GScreenshotResolutionY = Height;
307
- FScreenshotRequest::RequestScreenshot(false /* bShowUI */);
308
-
309
- // Return the directory where UE will write the screenshot file.
310
- const FString ShotDir = FPaths::ScreenShotDir();
304
+ // Use TakeScreenshotToFile which writes to MCPScreenshots/ with a known path.
305
+ const FString FilePath = TakeScreenshotToFile(Width, Height);
311
306
 
312
307
  TSharedPtr<FJsonObject> Data = MakeShared<FJsonObject>();
313
- Data->SetStringField(TEXT("screenshot_dir"), ShotDir);
308
+ Data->SetStringField(TEXT("file_path"), FilePath);
314
309
  Data->SetNumberField(TEXT("width"), static_cast<double>(Width));
315
310
  Data->SetNumberField(TEXT("height"), static_cast<double>(Height));
316
311
  Data->SetBoolField(TEXT("queued"), true);