@testomatio/mcp-enterprise 2.1.2 → 2.2.0-beta.1

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.1",
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.1",
31
31
  "commander": "^12.0.0"
32
32
  },
33
33
  "files": [
package/src/analytics.js CHANGED
@@ -4,6 +4,9 @@ import {
4
4
  ANALYTICS_TESTS_TQL_INPUT_DESCRIPTION,
5
5
  ANALYTICS_TESTS_TQL_REFERENCE,
6
6
  TOOL_DEFINITIONS,
7
+ backendSlimQuery,
8
+ slimList,
9
+ withListOptions,
7
10
  } from './load-core.js';
8
11
 
9
12
  const ANALYTICS_TEST_KINDS = [
@@ -47,7 +50,7 @@ const commonAnalyticsProperties = {
47
50
  },
48
51
  };
49
52
 
50
- export const ANALYTICS_TOOLS = [
53
+ export const ANALYTICS_TOOLS = withListOptions([
51
54
  {
52
55
  name: 'analytics_tests',
53
56
  description:
@@ -127,7 +130,7 @@ export const ANALYTICS_TOOLS = [
127
130
  additionalProperties: false,
128
131
  },
129
132
  },
130
- ];
133
+ ], { extraNames: ['analytics_tests'] });
131
134
 
132
135
  export const ENTERPRISE_TOOL_DEFINITIONS = [
133
136
  ...TOOL_DEFINITIONS,
@@ -135,7 +138,14 @@ export const ENTERPRISE_TOOL_DEFINITIONS = [
135
138
  ];
136
139
 
137
140
  export function registerAnalyticsHandlers(handlers) {
138
- handlers.analytics_tests = async (args = {}) => this.asText(await analyticsTests.call(this, args));
141
+ handlers.analytics_tests = async (args = {}) =>
142
+ this.asText(
143
+ slimList(await analyticsTests.call(this, { ...args, ...backendSlimQuery(args) }), {
144
+ verbose: args.verbose,
145
+ fields: args.fields,
146
+ entity: 'analytics_tests',
147
+ })
148
+ );
139
149
  handlers.analytics_stats = async (args = {}) => this.asText(await analyticsStats.call(this, args));
140
150
  }
141
151
 
@@ -153,6 +163,7 @@ function analyticsTests({
153
163
  threshold_ms: thresholdMs,
154
164
  maturity_days: maturityDays,
155
165
  run,
166
+ slim,
156
167
  } = {}) {
157
168
  return this.apiClient.list(`analytics/tests/${this.pickRequiredArg({ kind }, 'kind')}`, {
158
169
  q,
@@ -167,6 +178,7 @@ function analyticsTests({
167
178
  threshold_ms: thresholdMs,
168
179
  maturity_days: maturityDays,
169
180
  run,
181
+ slim,
170
182
  });
171
183
  }
172
184
 
package/src/load-core.js CHANGED
@@ -26,4 +26,7 @@ export const {
26
26
  ConfigurationError,
27
27
  TOOL_DEFINITIONS,
28
28
  createApplication,
29
+ slimList,
30
+ backendSlimQuery,
31
+ withListOptions,
29
32
  } = 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();