RAM2118 commited on
Commit
8ef64a9
·
verified ·
1 Parent(s): 29b4c18

Sprint 7: Route MCP param ops through in-process plugin (fix EQ invisible in GUI)

Browse files

Adds 3 param callbacks to McpServer. When SAFE plugin loaded in-process,
search/get/set_params go directly to inProcessPlugin. When UNSAFE (callbacks null),
falls back to Helper IPC. Pro-Q 4 GUI now updates when AI changes parameters."

Files changed (1) hide show
  1. Source/Plugin/McpServer.h +7 -0
Source/Plugin/McpServer.h CHANGED
@@ -5,6 +5,8 @@
5
  #include <string>
6
  #include <memory>
7
  #include <functional>
 
 
8
 
9
  namespace httplib { class Server; }
10
  class HelperConnection;
@@ -24,6 +26,11 @@ public:
24
  std::function<std::string()> getAnalysisCallback;
25
  std::function<std::string()> channelNameCallback;
26
 
 
 
 
 
 
27
  private:
28
  void setupRoutes();
29
 
 
5
  #include <string>
6
  #include <memory>
7
  #include <functional>
8
+ #include <vector>
9
+ #include <map>
10
 
11
  namespace httplib { class Server; }
12
  class HelperConnection;
 
26
  std::function<std::string()> getAnalysisCallback;
27
  std::function<std::string()> channelNameCallback;
28
 
29
+ // Param callbacks — wired to inProcessPlugin when SAFE, null when UNSAFE
30
+ std::function<std::string(const std::string& keyword)> searchParamCallback;
31
+ std::function<std::string(const std::vector<int>& ids)> getParamsCallback;
32
+ std::function<bool(const std::map<int,float>& values)> setParamsCallback;
33
+
34
  private:
35
  void setupRoutes();
36