载入中...
搜索中...
未找到
McpToolFilter.cpp 文件参考
#include "devtools/McpToolFilter.hpp"
#include "devtools/McpJson.hpp"
#include "devtools/McpTaskProfile.hpp"
#include <Poco/Dynamic/Var.h>
#include <Poco/JSON/Array.h>
#include <Poco/JSON/Object.h>
#include <Poco/JSON/Parser.h>
#include <cctype>
#include <cstdlib>
#include <mutex>
#include <optional>
#include <string>
#include <string_view>
#include <unordered_set>
#include <vector>

浏览源代码.

命名空间

namespace  eve
 Build metadata (engine git commit, build time, third-party version).
 
namespace  eve::dev
 

函数

void eve::dev::mcpToolFilterReloadForTest ()
 Test helper: clear cached env snapshot so the next allow check reloads.
 
std::vector< std::string > eve::dev::mcpToolTags (std::string_view name)
 Classify a built-in or script tool into toolset tags.
 
bool eve::dev::mcpToolMutates (std::string_view name)
 Whether the tool mutates game / editor / host state.
 
bool eve::dev::mcpToolAllowed (std::string_view name)
 Whether name is visible under the current env filter.
 
std::string eve::dev::filterMcpToolsBody (std::string_view toolsBody)
 Filter a JSON tools array body in place (objects joined by commas).
 
std::string eve::dev::mcpToolFilteredPayload (std::string_view name)
 Human-readable rejection payload fields when a call is filtered out.
 

变量说明

◆ all

◆ exclude

std::unordered_set<std::string> exclude

在文件 McpToolFilter.cpp 第 49 行定义.

◆ readOnly

bool readOnly = false

◆ tags