重构 mcp-server 功能
This commit is contained in:
gjm committed 2026-10-02 20:39:34 +08:00
1 parent 5d6f1c74d1
commit 1435b864f8
12 files changed
+232 -95

No files matched your search

+6 -2
View File
@@ -17,13 +17,17 @@ public:
// 路由分发执行指令 (用于 tools/call)
nlohmann::json Call(const std::string &name, const nlohmann::json &args);
void print();
void clear();
};
class mcp_ConfigParser
{
public:
static bool LoadAndRegister(const std::string &jsonFilePath, mcp_Tools &registry);
static bool LoadAndRegister(const std::wstring &jsonFilePath, mcp_Tools &registry);
private:
static void LoadDllTool(const nlohmann::json &toolConfig, const std::string &pluginDir, mcp_Tools &registry);
static void LoadDllTool(const nlohmann::json &toolConfig, const std::wstring &pluginDir, mcp_Tools &registry);
};