增加了 plugin 工程
This commit is contained in:
gjm committed 2026-10-02 23:43:18 +08:00
1 parent cf87cfe93d
commit a7eaa8483f
11 files changed
+282 -22

No files matched your search

+6 -6
View File
@@ -39,7 +39,7 @@ namespace
}
}
#pragma region mcp_Tool_LispInline
#pragma region LispInline
nlohmann::json mcp_Tool_LispInline::Execute(const nlohmann::json &args)
{
std::string tpl = m_config["backend"].value("script_template", "");
@@ -55,9 +55,9 @@ nlohmann::json mcp_Tool_LispInline::Execute(const nlohmann::json &args)
return mcp_Tool_Utility::make_text_result("LISP inline command issued for execution (asynchronous)");
}
#pragma endregion mcp_Tool_LispInline
#pragma endregion LispInline
#pragma region mcp_Tool_LispFile
#pragma region LispFile
nlohmann::json mcp_Tool_LispFile::Execute(const nlohmann::json &args)
{
fs::path filePath
@@ -86,9 +86,9 @@ nlohmann::json mcp_Tool_LispFile::Execute(const nlohmann::json &args)
return mcp_Tool_Utility::make_text_result("LISP external file loaded and issued for execution (asynchronous)");
}
#pragma endregion mcp_Tool_LispFile
#pragma endregion LispFile
#pragma region mcp_Tool_DllProxy
#pragma region DllProxy
// RAII:基座销毁工具时,自动通知 DLL 释放内存,并卸载模块
mcp_Tool_DllProxy::~mcp_Tool_DllProxy()
{
@@ -110,5 +110,5 @@ nlohmann::json mcp_Tool_DllProxy::Execute(const nlohmann::json &args)
}
return mcp_Tool_Utility::make_error(-32603, "Underlying DLL tool instance is invalid");
}
#pragma endregion mcp_Tool_DllProxy
#pragma endregion DllProxy