refactor
重构 mcp-server 功能
This commit is contained in:
1 parent
5d6f1c74d1
commit
1435b864f8
12 files changed
+232
-95
No files matched your search
@@ -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 ®istry);
|
||||
static bool LoadAndRegister(const std::wstring &jsonFilePath, mcp_Tools ®istry);
|
||||
|
||||
private:
|
||||
static void LoadDllTool(const nlohmann::json &toolConfig, const std::string &pluginDir, mcp_Tools ®istry);
|
||||
static void LoadDllTool(const nlohmann::json &toolConfig, const std::wstring &pluginDir, mcp_Tools ®istry);
|
||||
};
|
||||
Reference in new issue
Block a user