class

FMcpPathPolicy

Where a tool may touch the disk. A path an agent sends is resolved against the project root and must stay inside it after .. is folded AND after every symlink or junction on the way is followed; a network path is refused before anything resolves it, since merely opening \\host\share hands that host the user's NTLM hash. extensions (lower-case, with the dot) limits what the file may be, so a screenshot cannot overwrite an INI or the preferences that hold the access level; empty allows any.

Module
EditorFramework
Header
#include "EditorFramework/McpServer.h"
Namespace
Mowo

Public functions

ReturnsNameDescription
boolConfine

Function details

Confine

C++
static bool Confine(const std::filesystem::path& root, const std::string& path, const std::vector<std::string>& extensions, std::filesystem::path& out, std::string& error)
Generated from EditorFramework/McpServer.h via editorframework.json · Nov 2, 2026Version 1.0.0