opera-devtools-mcp 0.2.1 → 0.2.2
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.
|
@@ -10,7 +10,7 @@ export const cliOptions = {
|
|
|
10
10
|
autoConnect: {
|
|
11
11
|
type: 'boolean',
|
|
12
12
|
description: 'If specified, automatically connects to a browser (Chrome 144+) running locally from the user data directory identified by the channel param (default channel is stable). Requires the remote debugging server to be started in the Chrome instance via chrome://inspect/#remote-debugging.',
|
|
13
|
-
conflicts: ['isolated', 'executablePath'
|
|
13
|
+
conflicts: ['isolated', 'executablePath'],
|
|
14
14
|
default: false,
|
|
15
15
|
coerce: (value) => {
|
|
16
16
|
if (!value) {
|
|
@@ -276,8 +276,8 @@ export function parseArguments(version, argv = process.argv, env = process.env)
|
|
|
276
276
|
!args.executablePath) {
|
|
277
277
|
args.channel = 'stable';
|
|
278
278
|
}
|
|
279
|
-
if (env['CI'] || env['
|
|
280
|
-
console.error("turning off usage statistics. process.env['CI'] || process.env['
|
|
279
|
+
if (env['CI'] || env['OPERA_DEVTOOLS_NO_USAGE_STATISTICS']) {
|
|
280
|
+
console.error("turning off usage statistics. process.env['CI'] || process.env['OPERA_DEVTOOLS_NO_USAGE_STATISTICS'] is set.");
|
|
281
281
|
args.usageStatistics = false;
|
|
282
282
|
}
|
|
283
283
|
return true;
|
package/build/src/index.js
CHANGED
|
@@ -153,11 +153,15 @@ export async function createMcpServer(serverArgs, options) {
|
|
|
153
153
|
!serverArgs.categoryExtensions) {
|
|
154
154
|
return;
|
|
155
155
|
}
|
|
156
|
+
if (tool.annotations.category === ToolCategory.WEBMCP &&
|
|
157
|
+
!serverArgs.categoryExperimentalWebmcp) {
|
|
158
|
+
return;
|
|
159
|
+
}
|
|
156
160
|
if (tool.annotations.category === ToolCategory.THIRD_PARTY &&
|
|
157
|
-
!serverArgs.
|
|
161
|
+
!serverArgs.categoryExperimentalThirdParty) {
|
|
158
162
|
return;
|
|
159
163
|
}
|
|
160
|
-
if (tool.annotations.conditions?.includes('
|
|
164
|
+
if (tool.annotations.conditions?.includes('experimentalVision') &&
|
|
161
165
|
!serverArgs.experimentalVision) {
|
|
162
166
|
return;
|
|
163
167
|
}
|
|
@@ -165,10 +169,14 @@ export async function createMcpServer(serverArgs, options) {
|
|
|
165
169
|
!serverArgs.experimentalInteropTools) {
|
|
166
170
|
return;
|
|
167
171
|
}
|
|
168
|
-
if (tool.annotations.conditions?.includes('
|
|
172
|
+
if (tool.annotations.conditions?.includes('experimentalScreencast') &&
|
|
169
173
|
!serverArgs.experimentalScreencast) {
|
|
170
174
|
return;
|
|
171
175
|
}
|
|
176
|
+
if (tool.annotations.conditions?.includes('experimentalMemory') &&
|
|
177
|
+
!serverArgs.experimentalMemory) {
|
|
178
|
+
return;
|
|
179
|
+
}
|
|
172
180
|
const schema = 'pageScoped' in tool &&
|
|
173
181
|
tool.pageScoped &&
|
|
174
182
|
serverArgs.experimentalPageIdRouting &&
|
package/build/src/version.js
CHANGED