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', 'categoryExtensions'],
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['CHROME_DEVTOOLS_MCP_NO_USAGE_STATISTICS']) {
280
- console.error("turning off usage statistics. process.env['CI'] || process.env['CHROME_DEVTOOLS_MCP_NO_USAGE_STATISTICS'] is set.");
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;
@@ -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.categoryInPageTools) {
161
+ !serverArgs.categoryExperimentalThirdParty) {
158
162
  return;
159
163
  }
160
- if (tool.annotations.conditions?.includes('computerVision') &&
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('screencast') &&
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 &&
@@ -7,6 +7,6 @@
7
7
  */
8
8
  // If moved update release-please config
9
9
  // x-release-please-start-version
10
- export const VERSION = '0.2.1';
10
+ export const VERSION = '0.2.2';
11
11
  // x-release-please-end
12
12
  //# sourceMappingURL=version.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opera-devtools-mcp",
3
- "version": "0.2.1",
3
+ "version": "0.2.2",
4
4
  "description": "MCP server for Opera DevTools",
5
5
  "type": "module",
6
6
  "bin": {