wopee-mcp 1.13.0 → 1.14.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
|
@@ -175,6 +175,8 @@ Fetch all existing analysis suites for my project
|
|
|
175
175
|
|
|
176
176
|
Creates and dispatches a new analysis/crawling suite for your project. Use this to start a fresh analysis session.
|
|
177
177
|
|
|
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.)
|
|
178
180
|
- **Returns:** Success message with the created suite information
|
|
179
181
|
|
|
180
182
|
**Example Usage:**
|
|
@@ -183,6 +185,10 @@ Creates and dispatches a new analysis/crawling suite for your project. Use this
|
|
|
183
185
|
Dispatch a new analysis suite
|
|
184
186
|
```
|
|
185
187
|
|
|
188
|
+
```
|
|
189
|
+
Dispatch a new analysis suite and focus on the checkout flow
|
|
190
|
+
```
|
|
191
|
+
|
|
186
192
|
#### `wopee_create_blank_suite`
|
|
187
193
|
|
|
188
194
|
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.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { getConfig } from "../../utils/getConfig.js";
|
|
2
|
-
export const createDispatchAnalysisInput = () => {
|
|
2
|
+
export const createDispatchAnalysisInput = (input) => {
|
|
3
3
|
const { WOPEE_PROJECT_UUID } = getConfig();
|
|
4
4
|
if (!WOPEE_PROJECT_UUID)
|
|
5
5
|
throw new Error("WOPEE_PROJECT_UUID is not set");
|
|
@@ -10,7 +10,7 @@ export const createDispatchAnalysisInput = () => {
|
|
|
10
10
|
username: null,
|
|
11
11
|
password: null,
|
|
12
12
|
cookiesPreference: null,
|
|
13
|
-
additionalInstructions: null,
|
|
13
|
+
additionalInstructions: input.additionalInstructions ?? null,
|
|
14
14
|
additionalVariables: null,
|
|
15
15
|
},
|
|
16
16
|
rerun: null,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { _parseError } from "../shared/helpers.js";
|
|
2
|
-
import { DispatchAnalysisInputSchema } from "./schema.js";
|
|
2
|
+
import { DispatchAnalysisInputSchema, WopeeDispatchAnalysisInputSchema, } from "./schema.js";
|
|
3
3
|
import { createDispatchAnalysisInput } from "./factory.js";
|
|
4
4
|
import { DispatchAnalysis } from "../shared/gql-queries.js";
|
|
5
5
|
import { requestClient } from "../../utils/requestClient.js";
|
|
@@ -9,11 +9,12 @@ export const wopeeDispatchAnalysis = {
|
|
|
9
9
|
config: {
|
|
10
10
|
title: "Dispatch analysis",
|
|
11
11
|
description: "Create and dispatch analysis/crawling suite for a project",
|
|
12
|
+
inputSchema: WopeeDispatchAnalysisInputSchema.shape,
|
|
12
13
|
},
|
|
13
|
-
handler: async () => {
|
|
14
|
+
handler: async (input) => {
|
|
14
15
|
try {
|
|
15
|
-
const
|
|
16
|
-
const parsedInput = DispatchAnalysisInputSchema.parse(
|
|
16
|
+
const rawInput = createDispatchAnalysisInput(input);
|
|
17
|
+
const parsedInput = DispatchAnalysisInputSchema.parse(rawInput);
|
|
17
18
|
const result = await requestClient(DispatchAnalysis, {
|
|
18
19
|
input: parsedInput,
|
|
19
20
|
});
|
|
@@ -15,3 +15,8 @@ export const DispatchAnalysisInputSchema = z.object({
|
|
|
15
15
|
suiteAnalysisConfig: SuiteAnalysisConfigSchema,
|
|
16
16
|
rerun: RerunOptionsSchema.nullable().default(null),
|
|
17
17
|
});
|
|
18
|
+
export const WopeeDispatchAnalysisInputSchema = z.object({
|
|
19
|
+
additionalInstructions: z
|
|
20
|
+
.string({ description: "Additional instructions for the agent" })
|
|
21
|
+
.nullish(),
|
|
22
|
+
});
|