@midscene/mcp 1.2.1-beta-20260109060244.0 → 1.2.1-beta-20260112081017.0
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/index.js +24 -1
- package/dist/server.js +24 -1
- package/package.json +5 -5
package/dist/index.js
CHANGED
|
@@ -21662,6 +21662,7 @@ var __webpack_modules__ = {
|
|
|
21662
21662
|
types_MIDSCENE_LANGFUSE_DEBUG
|
|
21663
21663
|
];
|
|
21664
21664
|
const NUMBER_ENV_KEYS = [
|
|
21665
|
+
types_MIDSCENE_MODEL_MAX_TOKENS,
|
|
21665
21666
|
types_MIDSCENE_CACHE_MAX_FILENAME_LENGTH,
|
|
21666
21667
|
types_MIDSCENE_REPLANNING_CYCLE_LIMIT
|
|
21667
21668
|
];
|
|
@@ -24382,6 +24383,28 @@ var __webpack_modules__ = {
|
|
|
24382
24383
|
}
|
|
24383
24384
|
];
|
|
24384
24385
|
}
|
|
24386
|
+
buildTextResult(text) {
|
|
24387
|
+
return {
|
|
24388
|
+
content: [
|
|
24389
|
+
{
|
|
24390
|
+
type: 'text',
|
|
24391
|
+
text
|
|
24392
|
+
}
|
|
24393
|
+
]
|
|
24394
|
+
};
|
|
24395
|
+
}
|
|
24396
|
+
createDisconnectHandler(platformName) {
|
|
24397
|
+
return async ()=>{
|
|
24398
|
+
if (!this.agent) return this.buildTextResult('No active connection to disconnect');
|
|
24399
|
+
try {
|
|
24400
|
+
await this.agent.destroy?.();
|
|
24401
|
+
} catch (error) {
|
|
24402
|
+
base_tools_debug('Failed to destroy agent during disconnect:', error);
|
|
24403
|
+
}
|
|
24404
|
+
this.agent = void 0;
|
|
24405
|
+
return this.buildTextResult(`Disconnected from ${platformName}`);
|
|
24406
|
+
};
|
|
24407
|
+
}
|
|
24385
24408
|
constructor(){
|
|
24386
24409
|
base_tools_define_property(this, "mcpServer", void 0);
|
|
24387
24410
|
base_tools_define_property(this, "agent", void 0);
|
|
@@ -24553,7 +24576,7 @@ For more information, visit: https://midscenejs.com/mcp-migration
|
|
|
24553
24576
|
constructor(){
|
|
24554
24577
|
super({
|
|
24555
24578
|
name: '@midscene/mcp',
|
|
24556
|
-
version: '1.2.1-beta-
|
|
24579
|
+
version: '1.2.1-beta-20260112081017.0',
|
|
24557
24580
|
description: 'Deprecated - Use @midscene/web-bridge-mcp, @midscene/android-mcp, or @midscene/ios-mcp'
|
|
24558
24581
|
});
|
|
24559
24582
|
}
|
package/dist/server.js
CHANGED
|
@@ -28862,6 +28862,7 @@ var __webpack_exports__ = {};
|
|
|
28862
28862
|
types_MIDSCENE_LANGFUSE_DEBUG
|
|
28863
28863
|
];
|
|
28864
28864
|
const NUMBER_ENV_KEYS = [
|
|
28865
|
+
types_MIDSCENE_MODEL_MAX_TOKENS,
|
|
28865
28866
|
types_MIDSCENE_CACHE_MAX_FILENAME_LENGTH,
|
|
28866
28867
|
types_MIDSCENE_REPLANNING_CYCLE_LIMIT
|
|
28867
28868
|
];
|
|
@@ -31582,6 +31583,28 @@ var __webpack_exports__ = {};
|
|
|
31582
31583
|
}
|
|
31583
31584
|
];
|
|
31584
31585
|
}
|
|
31586
|
+
buildTextResult(text) {
|
|
31587
|
+
return {
|
|
31588
|
+
content: [
|
|
31589
|
+
{
|
|
31590
|
+
type: 'text',
|
|
31591
|
+
text
|
|
31592
|
+
}
|
|
31593
|
+
]
|
|
31594
|
+
};
|
|
31595
|
+
}
|
|
31596
|
+
createDisconnectHandler(platformName) {
|
|
31597
|
+
return async ()=>{
|
|
31598
|
+
if (!this.agent) return this.buildTextResult('No active connection to disconnect');
|
|
31599
|
+
try {
|
|
31600
|
+
await this.agent.destroy?.();
|
|
31601
|
+
} catch (error) {
|
|
31602
|
+
base_tools_debug('Failed to destroy agent during disconnect:', error);
|
|
31603
|
+
}
|
|
31604
|
+
this.agent = void 0;
|
|
31605
|
+
return this.buildTextResult(`Disconnected from ${platformName}`);
|
|
31606
|
+
};
|
|
31607
|
+
}
|
|
31585
31608
|
constructor(){
|
|
31586
31609
|
base_tools_define_property(this, "mcpServer", void 0);
|
|
31587
31610
|
base_tools_define_property(this, "agent", void 0);
|
|
@@ -31753,7 +31776,7 @@ For more information, visit: https://midscenejs.com/mcp-migration
|
|
|
31753
31776
|
constructor(){
|
|
31754
31777
|
super({
|
|
31755
31778
|
name: '@midscene/mcp',
|
|
31756
|
-
version: '1.2.1-beta-
|
|
31779
|
+
version: '1.2.1-beta-20260112081017.0',
|
|
31757
31780
|
description: 'Deprecated - Use @midscene/web-bridge-mcp, @midscene/android-mcp, or @midscene/ios-mcp'
|
|
31758
31781
|
});
|
|
31759
31782
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@midscene/mcp",
|
|
3
|
-
"version": "1.2.1-beta-
|
|
3
|
+
"version": "1.2.1-beta-20260112081017.0",
|
|
4
4
|
"description": "Deprecated - Use @midscene/web-bridge-mcp, @midscene/android-mcp, or @midscene/ios-mcp",
|
|
5
5
|
"bin": "dist/index.js",
|
|
6
6
|
"files": [
|
|
@@ -25,11 +25,11 @@
|
|
|
25
25
|
"@rslib/core": "^0.18.3",
|
|
26
26
|
"@types/node": "^18.0.0",
|
|
27
27
|
"typescript": "^5.8.3",
|
|
28
|
-
"@midscene/android": "1.2.1-beta-
|
|
28
|
+
"@midscene/android": "1.2.1-beta-20260112081017.0",
|
|
29
|
+
"@midscene/core": "1.2.1-beta-20260112081017.0",
|
|
29
30
|
"@midscene/report": "1.0.0",
|
|
30
|
-
"@midscene/
|
|
31
|
-
"@midscene/
|
|
32
|
-
"@midscene/web": "1.2.1-beta-20260109060244.0"
|
|
31
|
+
"@midscene/shared": "1.2.1-beta-20260112081017.0",
|
|
32
|
+
"@midscene/web": "1.2.1-beta-20260112081017.0"
|
|
33
33
|
},
|
|
34
34
|
"license": "MIT",
|
|
35
35
|
"scripts": {
|