Upload Source/Plugin/McpServer.h
Browse files
Source/Plugin/McpServer.h
CHANGED
|
@@ -12,7 +12,7 @@ class HelperConnection;
|
|
| 12 |
class McpServer
|
| 13 |
{
|
| 14 |
public:
|
| 15 |
-
McpServer(
|
| 16 |
~McpServer();
|
| 17 |
|
| 18 |
void start();
|
|
@@ -20,8 +20,9 @@ public:
|
|
| 20 |
bool isRunning() const;
|
| 21 |
int getPort() const { return port; }
|
| 22 |
|
| 23 |
-
//
|
| 24 |
std::function<std::string()> getAnalysisCallback;
|
|
|
|
| 25 |
|
| 26 |
private:
|
| 27 |
void setupRoutes();
|
|
@@ -33,7 +34,7 @@ private:
|
|
| 33 |
std::unique_ptr<httplib::Server> server;
|
| 34 |
std::thread serverThread;
|
| 35 |
std::atomic<bool> running{false};
|
| 36 |
-
int port;
|
| 37 |
std::string sessionId;
|
| 38 |
bool initialized = false;
|
| 39 |
|
|
|
|
| 12 |
class McpServer
|
| 13 |
{
|
| 14 |
public:
|
| 15 |
+
McpServer(HelperConnection& helper);
|
| 16 |
~McpServer();
|
| 17 |
|
| 18 |
void start();
|
|
|
|
| 20 |
bool isRunning() const;
|
| 21 |
int getPort() const { return port; }
|
| 22 |
|
| 23 |
+
// Callbacks set by Processor
|
| 24 |
std::function<std::string()> getAnalysisCallback;
|
| 25 |
+
std::function<std::string()> channelNameCallback;
|
| 26 |
|
| 27 |
private:
|
| 28 |
void setupRoutes();
|
|
|
|
| 34 |
std::unique_ptr<httplib::Server> server;
|
| 35 |
std::thread serverThread;
|
| 36 |
std::atomic<bool> running{false};
|
| 37 |
+
int port = 0;
|
| 38 |
std::string sessionId;
|
| 39 |
bool initialized = false;
|
| 40 |
|