mobile-debug-mcp 0.12.6 → 0.12.7
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/dist/server.js +5 -1
- package/package.json +1 -1
- package/src/server.ts +5 -1
package/dist/server.js
CHANGED
|
@@ -390,10 +390,14 @@ server.setRequestHandler(CallToolRequestSchema, async (request) => {
|
|
|
390
390
|
if (name === "start_app") {
|
|
391
391
|
const { platform, appId, deviceId } = args;
|
|
392
392
|
const res = await (platform === 'android' ? new AndroidManage().startApp(appId, deviceId) : new iOSManage().startApp(appId, deviceId));
|
|
393
|
+
// Preserve diagnostics and instrumentation from platform managers so agents receive full context
|
|
393
394
|
const response = {
|
|
394
395
|
device: res.device,
|
|
395
396
|
appStarted: res.appStarted,
|
|
396
|
-
launchTimeMs: res.launchTimeMs
|
|
397
|
+
launchTimeMs: res.launchTimeMs,
|
|
398
|
+
error: res.error,
|
|
399
|
+
diagnostics: res.diagnostics,
|
|
400
|
+
instrumentation: res.instrumentation
|
|
397
401
|
};
|
|
398
402
|
return wrapResponse(response);
|
|
399
403
|
}
|
package/package.json
CHANGED
package/src/server.ts
CHANGED
|
@@ -413,10 +413,14 @@ server.setRequestHandler(CallToolRequestSchema, async (request) => {
|
|
|
413
413
|
if (name === "start_app") {
|
|
414
414
|
const { platform, appId, deviceId } = args as any
|
|
415
415
|
const res = await (platform === 'android' ? new AndroidManage().startApp(appId, deviceId) : new iOSManage().startApp(appId, deviceId))
|
|
416
|
+
// Preserve diagnostics and instrumentation from platform managers so agents receive full context
|
|
416
417
|
const response: StartAppResponse = {
|
|
417
418
|
device: res.device,
|
|
418
419
|
appStarted: res.appStarted,
|
|
419
|
-
launchTimeMs: res.launchTimeMs
|
|
420
|
+
launchTimeMs: res.launchTimeMs,
|
|
421
|
+
error: (res as any).error,
|
|
422
|
+
diagnostics: (res as any).diagnostics,
|
|
423
|
+
instrumentation: (res as any).instrumentation
|
|
420
424
|
}
|
|
421
425
|
return wrapResponse(response)
|
|
422
426
|
}
|