@testomatio/mcp-enterprise 2.1.2 → 2.2.0-beta

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@testomatio/mcp-enterprise",
3
- "version": "2.1.2",
3
+ "version": "2.2.0-beta",
4
4
  "description": "Enterprise Model Context Protocol server for Testomat.io API with analytics tools",
5
5
  "main": "index.js",
6
6
  "bin": {
@@ -27,7 +27,7 @@
27
27
  "directory": "packages/enterprise"
28
28
  },
29
29
  "dependencies": {
30
- "@testomatio/mcp": "2.1.2",
30
+ "@testomatio/mcp": "2.2.0-beta",
31
31
  "commander": "^12.0.0"
32
32
  },
33
33
  "files": [
package/src/analytics.js CHANGED
@@ -4,6 +4,8 @@ import {
4
4
  ANALYTICS_TESTS_TQL_INPUT_DESCRIPTION,
5
5
  ANALYTICS_TESTS_TQL_REFERENCE,
6
6
  TOOL_DEFINITIONS,
7
+ slimList,
8
+ withListOptions,
7
9
  } from './load-core.js';
8
10
 
9
11
  const ANALYTICS_TEST_KINDS = [
@@ -47,7 +49,7 @@ const commonAnalyticsProperties = {
47
49
  },
48
50
  };
49
51
 
50
- export const ANALYTICS_TOOLS = [
52
+ export const ANALYTICS_TOOLS = withListOptions([
51
53
  {
52
54
  name: 'analytics_tests',
53
55
  description:
@@ -127,7 +129,7 @@ export const ANALYTICS_TOOLS = [
127
129
  additionalProperties: false,
128
130
  },
129
131
  },
130
- ];
132
+ ], { extraNames: ['analytics_tests'] });
131
133
 
132
134
  export const ENTERPRISE_TOOL_DEFINITIONS = [
133
135
  ...TOOL_DEFINITIONS,
@@ -135,7 +137,14 @@ export const ENTERPRISE_TOOL_DEFINITIONS = [
135
137
  ];
136
138
 
137
139
  export function registerAnalyticsHandlers(handlers) {
138
- handlers.analytics_tests = async (args = {}) => this.asText(await analyticsTests.call(this, args));
140
+ handlers.analytics_tests = async (args = {}) =>
141
+ this.asText(
142
+ slimList(await analyticsTests.call(this, args), {
143
+ verbose: args.verbose,
144
+ fields: args.fields,
145
+ entity: 'analytics_tests',
146
+ })
147
+ );
139
148
  handlers.analytics_stats = async (args = {}) => this.asText(await analyticsStats.call(this, args));
140
149
  }
141
150
 
package/src/load-core.js CHANGED
@@ -26,4 +26,6 @@ export const {
26
26
  ConfigurationError,
27
27
  TOOL_DEFINITIONS,
28
28
  createApplication,
29
+ slimList,
30
+ withListOptions,
29
31
  } = coreModule;
package/src/main.js CHANGED
@@ -15,6 +15,10 @@ export function parseArgs(argv = process.argv) {
15
15
  .option('-t, --token <token>', 'Testomatio Project token')
16
16
  .option('-p, --project <project>', 'Project ID')
17
17
  .option('--base-url <url>', 'Base URL for Testomat.io API')
18
+ .option(
19
+ '--tools <profile>',
20
+ 'Tool surface: full (default, all tools), core (common entities only), read (read-only)'
21
+ )
18
22
  .parse(argv);
19
23
 
20
24
  return command.opts();