wopee-mcp 1.14.0 → 1.15.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/README.md CHANGED
@@ -176,7 +176,10 @@ Fetch all existing analysis suites for my project
176
176
  Creates and dispatches a new analysis/crawling suite for your project. Use this to start a fresh analysis session.
177
177
 
178
178
  - **Parameters:**
179
- - `additionalInstructions` *(optional)* - Additional instructions to guide the agent during the analysis/crawling phase (e.g. focus areas, things to ignore, login steps, etc.)
179
+ - `additionalInstructions` _(optional)_ - Additional instructions to guide the agent during the analysis/crawling phase (e.g. focus areas, things to ignore, login steps, etc.)
180
+ - `additionalVariables` _(optional)_ - Additional environment variables to pass to the analysis. Array of objects, each with:
181
+ - `key` - Variable name, must be uppercase with underscores only (e.g. `MY_VAR`, `BASE_URL`)
182
+ - `value` - Variable value (non-empty string)
180
183
  - **Returns:** Success message with the created suite information
181
184
 
182
185
  **Example Usage:**
@@ -189,6 +192,10 @@ Dispatch a new analysis suite
189
192
  Dispatch a new analysis suite and focus on the checkout flow
190
193
  ```
191
194
 
195
+ ```
196
+ Dispatch a new analysis suite with additional variables CARD_FILAMENT=123321123 and AUTH_TOKEN=abc123
197
+ ```
198
+
192
199
  #### `wopee_create_blank_suite`
193
200
 
194
201
  Creates a blank analysis suite for your project. Use this when you want to manually configure and populate a suite rather than having it automatically analyzed.
@@ -284,12 +291,10 @@ Dispatch agent for my latest suite's user story US001 and test case TC003
284
291
  ## Typical Workflow
285
292
 
286
293
  1. **Start with a suite:**
287
-
288
294
  - Use `wopee_fetch_analysis_suites` to see existing suites, OR
289
295
  - Use `wopee_dispatch_analysis` to create a new suite
290
296
 
291
297
  2. **Generate artifacts:**
292
-
293
298
  - Generate app context: `wopee_generate_artifact` with `APP_CONTEXT` and specific `suiteUuid`
294
299
  - Generate general user stories: `wopee_generate_artifact` with `GENERAL_USER_STORIES` and specific `suiteUuid`
295
300
  - Generate user stories with test cases: `wopee_generate_artifact` with `USER_STORIES_WITH_TEST_CASES` and specific `suiteUuid`
@@ -298,7 +303,6 @@ Dispatch agent for my latest suite's user story US001 and test case TC003
298
303
  - Generate test case steps: `wopee_generate_artifact` with `TEST_CASE_STEPS` and specific `suiteUuid`
299
304
 
300
305
  3. **Fetch generated content:**
301
-
302
306
  - Use the fetch tools to retrieve generated markdown/JSON files
303
307
 
304
308
  4. **Run tests:**
@@ -11,7 +11,9 @@ export const createDispatchAnalysisInput = (input) => {
11
11
  password: null,
12
12
  cookiesPreference: null,
13
13
  additionalInstructions: input.additionalInstructions ?? null,
14
- additionalVariables: null,
14
+ additionalVariables: input.additionalVariables?.length
15
+ ? JSON.stringify(input.additionalVariables)
16
+ : null,
15
17
  },
16
18
  rerun: null,
17
19
  };
@@ -15,8 +15,23 @@ export const DispatchAnalysisInputSchema = z.object({
15
15
  suiteAnalysisConfig: SuiteAnalysisConfigSchema,
16
16
  rerun: RerunOptionsSchema.nullable().default(null),
17
17
  });
18
+ const AdditionalVariableSchema = z.object({
19
+ key: z
20
+ .string({
21
+ description: "Variable name. Must be uppercase with underscores only (e.g. MY_VAR, BASE_URL).",
22
+ })
23
+ .regex(/^[A-Z_][A-Z0-9_]*$/, "Key must be uppercase alphanumeric with underscores, starting with a letter or underscore"),
24
+ value: z
25
+ .string({ description: "Variable value. Must be a non-empty string." })
26
+ .min(1, "Value must be a non-empty string"),
27
+ });
18
28
  export const WopeeDispatchAnalysisInputSchema = z.object({
19
29
  additionalInstructions: z
20
30
  .string({ description: "Additional instructions for the agent" })
21
31
  .nullish(),
32
+ additionalVariables: z
33
+ .array(AdditionalVariableSchema, {
34
+ description: "Additional environment variables for the analysis. Each variable needs a key (uppercase, e.g. BASE_URL) and a non-empty value.",
35
+ })
36
+ .nullish(),
22
37
  });
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "bin": {
5
5
  "wopee-mcp": "./build/index.js"
6
6
  },
7
- "version": "1.14.0",
7
+ "version": "1.15.0",
8
8
  "description": "Wopee.io MCP server",
9
9
  "main": "./build/index.js",
10
10
  "scripts": {