fix(mcp): pass the GUI's AppHandle as Some(..) to the handler (T10.4)

Follows the previous commit's WaMcpHandler::new signature change.
This commit is contained in:
iamdoubz committed 2026-07-07 00:23:27 -05:00
1 parent 49cc1e6cd3
commit eb2aa2a0d6
1 file changed
+1 -1
+1 -1
View File
@@ -63,7 +63,7 @@ impl McpServer for RmcpServer {
let local_addr = listener
.local_addr()
.map_err(|e| McpError::Server(e.to_string()))?;
let handler = WaMcpHandler::new(self.store.clone(), self.app.clone());
let handler = WaMcpHandler::new(self.store.clone(), Some(self.app.clone()));
let handle = http_transport::serve(listener, auth_token.clone(), handler);
let endpoint = format!("http://{local_addr}/mcp");
*self.running.lock().await = Some(Running::Http(handle));