载入中...
搜索中...
未找到
McpScriptTools.cpp 文件参考
#include "devtools/McpScriptTools.hpp"
#include "devtools/McpToolFamilies.hpp"
#include "common/EditorMcpAttach.h"
#include "common/ScriptError.h"
#include "devtools/ConsolePanel.hpp"
#include "devtools/McpJson.hpp"
#include "devtools/McpSquirrelJson.hpp"
#include <Poco/Dynamic/Var.h>
#include <Poco/JSON/Array.h>
#include <Poco/JSON/Object.h>
#include <simplesquirrel/simplesquirrel.hpp>
#include <algorithm>
#include <cstddef>
#include <cstdint>
#include <mutex>
#include <string>
#include <utility>
#include <vector>

浏览源代码.

命名空间

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

函数

bool eve::dev::isValidScriptToolName (const std::string &name)
 Validate an exported tool name.
 
bool eve::dev::isScriptTool (const std::string &name)
 Whether name is exported by the project script registry.
 
std::vector< std::string > eve::dev::scriptToolNames ()
 Exported tool names in registration order.
 
int eve::dev::scriptToolCount ()
 Number of exported tools (for eve_status).
 
std::string eve::dev::scriptToolSchemas ()
 Comma-free MCP tool schema fragments for every exported tool.
 
std::string eve::dev::callScriptTool (const std::string &name, Poco::JSON::Object::Ptr args)
 Invoke one exported tool.
 
void eve::dev::clearScriptTools (HSQUIRRELVM owner)
 Drop registry entries owned by owner.
 
void eve::dev::exposeMcpScriptApi (ssq::VM &vm)
 Expose eve.mcp.tool/remove/tools/clear/attachEditor/detachEditor on a VM.
 

变量说明

◆ description

std::string description

在文件 McpScriptTools.cpp 第 42 行定义.

◆ handler

◆ inputSchemaJson

std::string inputSchemaJson

在文件 McpScriptTools.cpp 第 43 行定义.

◆ name

std::string name

在文件 McpScriptTools.cpp 第 41 行定义.

◆ vm

HSQUIRRELVM vm = nullptr

在文件 McpScriptTools.cpp 第 44 行定义.