@nbakka/mcp-appium 2.0.95 → 2.0.96
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/server.js +10 -10
- package/package.json +1 -1
package/lib/server.js
CHANGED
|
@@ -872,7 +872,6 @@ tool(
|
|
|
872
872
|
app.post(`/approve/${sessionId}`, (req, res) => {
|
|
873
873
|
const session = approvalSessions.get(sessionId);
|
|
874
874
|
if (session) {
|
|
875
|
-
// overwrite authoritative copy with the submitted version
|
|
876
875
|
session.testCases = req.body;
|
|
877
876
|
session.finalTestCases = req.body;
|
|
878
877
|
session.status = 'approved';
|
|
@@ -911,16 +910,17 @@ tool(
|
|
|
911
910
|
}
|
|
912
911
|
}, 300000);
|
|
913
912
|
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
913
|
+
// Return a simple string instead of an object
|
|
914
|
+
return `✅ Test case review interface opened successfully!
|
|
915
|
+
Session ID: ${sessionId}
|
|
916
|
+
Test Cases Count: ${testCases.length}
|
|
917
|
+
Browser URL: http://localhost:${port}
|
|
918
|
+
Status: review_started
|
|
919
|
+
|
|
920
|
+
Instructions: Use check_approval_status tool with session ID "${sessionId}" to poll for approval status.`;
|
|
921
|
+
|
|
922
922
|
} catch (err) {
|
|
923
|
-
return
|
|
923
|
+
return `❌ Error setting up review interface: ${err.message}`;
|
|
924
924
|
}
|
|
925
925
|
}
|
|
926
926
|
);
|