#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
| HSQOBJECT handler {} |
在文件 McpScriptTools.cpp 第 45 行定义.
被这些函数引用 eve::action::ActionNotifyRegistry::advanceHandlers(), eve::dev::callScriptTool(), eve::ui::UI::componentClearHandlers(), eve::action::ActionNotifyRegistry::dispatch(), eve::dnut::StepKindRegistry::dispatch(), eve::ui::UISystem::dispatchEvents(), eve::action::ActionNotifyRegistry::dispatchSample(), eve::action::ActionNotifyRegistry::dispatchUpdate(), eve::image::ImageData::encode(), eve::image::Image::isCompressed(), eve::cmd::Register::Register(), eve::cmd::Cmdline::registerCmd(), eve::editor::EditorCommandService::registerCommand(), eve::editor::EditorExtensionRegistry::registerCommand(), eve::dnut::SequenceRuntime::registerCommand(), eve::action::ActionNotifyRegistry::registerHandler(), eve::dnut::StepKindRegistry::registerHandler(), eve::Runtime::setErrorHandler(), eve::Runtime::setLifecycleHandler() , 以及 eve::ui::ScenePanel::setPickHandler().
◆ inputSchemaJson
| std::string inputSchemaJson |
在文件 McpScriptTools.cpp 第 43 行定义.
◆ name
| std::string name |
在文件 McpScriptTools.cpp 第 41 行定义.
◆ vm
| HSQUIRRELVM vm = nullptr |
在文件 McpScriptTools.cpp 第 44 行定义.