Download Source/Plugin/McpServer.h from RAM2118/pluginbridge: direct link, hf CLI and curl.
- Browser
- Download file 819 Bytes
-
https://huggingface.co/RAM2118/pluginbridge/resolve/33d2e82b11f048a32d3dd7aa6bca3cd82584bea6/Source/Plugin/McpServer.h
- Command line
-
hf download hf://RAM2118/pluginbridge@33d2e82b11f048a32d3dd7aa6bca3cd82584bea6/Source/Plugin/McpServer.h
-
curl -L -o McpServer.h https://huggingface.co/RAM2118/pluginbridge/resolve/33d2e82b11f048a32d3dd7aa6bca3cd82584bea6/Source/Plugin/McpServer.h
819 Bytes
| namespace httplib { class Server; } | |
| class PluginBridgeProcessor; | |
| class McpServer | |
| { | |
| public: | |
| McpServer(int port, PluginBridgeProcessor& processor); | |
| ~McpServer(); | |
| void start(); | |
| void stop(); | |
| bool isRunning() const; | |
| int getPort() const { return port; } | |
| private: | |
| void setupRoutes(); | |
| std::string handleInitialize(const std::string& requestBody); | |
| std::string handleToolsList(const std::string& requestBody); | |
| std::string handleToolsCall(const std::string& requestBody); | |
| std::unique_ptr<httplib::Server> server; | |
| std::thread serverThread; | |
| std::atomic<bool> running{false}; | |
| int port; | |
| std::string sessionId; | |
| bool initialized = false; | |
| PluginBridgeProcessor& processor; | |
| }; | |