wopee-mcp 1.11.1 → 1.12.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
|
@@ -86,13 +86,21 @@ This will return a list of all analysis suites with their UUIDs, which you can t
|
|
|
86
86
|
|
|
87
87
|
### Option 2: Create a New Suite
|
|
88
88
|
|
|
89
|
-
If you don't have any suites yet,
|
|
89
|
+
If you don't have any suites yet, you have two options:
|
|
90
|
+
|
|
91
|
+
**Automatic Analysis:** Create and dispatch a full analysis/crawling suite:
|
|
90
92
|
|
|
91
93
|
```
|
|
92
94
|
Use the wopee_dispatch_analysis tool to create and dispatch a new analysis/crawling suite.
|
|
93
95
|
```
|
|
94
96
|
|
|
95
|
-
|
|
97
|
+
**Blank Suite:** Create an empty suite for manual configuration:
|
|
98
|
+
|
|
99
|
+
```
|
|
100
|
+
Use the wopee_create_blank_suite tool to create a blank analysis suite.
|
|
101
|
+
```
|
|
102
|
+
|
|
103
|
+
Both options will return a suite UUID, which you can use for subsequent operations.
|
|
96
104
|
|
|
97
105
|
## Available Tools
|
|
98
106
|
|
|
@@ -122,6 +130,18 @@ Creates and dispatches a new analysis/crawling suite for your project. Use this
|
|
|
122
130
|
Dispatch a new analysis suite
|
|
123
131
|
```
|
|
124
132
|
|
|
133
|
+
#### `wopee_create_blank_suite`
|
|
134
|
+
|
|
135
|
+
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.
|
|
136
|
+
|
|
137
|
+
- **Returns:** The created suite information including its UUID
|
|
138
|
+
|
|
139
|
+
**Example Usage:**
|
|
140
|
+
|
|
141
|
+
```
|
|
142
|
+
Create a blank analysis suite for my project
|
|
143
|
+
```
|
|
144
|
+
|
|
125
145
|
### Generation Tools
|
|
126
146
|
|
|
127
147
|
These tools generate various artifacts for a specific suite. All require a `suiteUuid` and `type` to generate.
|
package/build/tools/index.js
CHANGED
|
@@ -3,8 +3,10 @@ import { wopeeUpdateArtifact } from "./wopee_update_artifact/index.js";
|
|
|
3
3
|
import { wopeeGenerateArtifact } from "./wopee_generate_artifact/index.js";
|
|
4
4
|
import { wopeeDispatchAgent } from "./wopee_dispatch_agent/index.js";
|
|
5
5
|
import { wopeeDispatchAnalysis } from "./wopee_dispatch_analysis/index.js";
|
|
6
|
+
import { wopeeCreateBlankSuite } from "./wopee_create_blank_suite/index.js";
|
|
6
7
|
import { wopeeFetchAnalysisSuites } from "./wopee_fetch_analysis_suites/index.js";
|
|
7
8
|
export const TOOLS = [
|
|
9
|
+
wopeeCreateBlankSuite,
|
|
8
10
|
wopeeFetchAnalysisSuites,
|
|
9
11
|
wopeeDispatchAnalysis,
|
|
10
12
|
wopeeDispatchAgent,
|
|
@@ -155,3 +155,41 @@ export const GenerateReusableTestCaseSteps = `
|
|
|
155
155
|
generateReusableTestCaseSteps(input: $input)
|
|
156
156
|
}
|
|
157
157
|
`;
|
|
158
|
+
export const CreateBlankAnalysisSuite = `
|
|
159
|
+
mutation CreateBlankAnalysisSuite($projectUuid: ID!) {
|
|
160
|
+
createBlankAnalysisSuite(projectUuid: $projectUuid) {
|
|
161
|
+
uuid
|
|
162
|
+
name
|
|
163
|
+
suiteType
|
|
164
|
+
executionStatus
|
|
165
|
+
createdAt
|
|
166
|
+
updatedAt
|
|
167
|
+
analysisIdentifier
|
|
168
|
+
suiteRunningStatus
|
|
169
|
+
generatedAnalysisDataState {
|
|
170
|
+
suiteUuid
|
|
171
|
+
appContext {
|
|
172
|
+
isGenerated
|
|
173
|
+
status
|
|
174
|
+
}
|
|
175
|
+
generalUserStories {
|
|
176
|
+
isGenerated
|
|
177
|
+
status
|
|
178
|
+
}
|
|
179
|
+
userStories {
|
|
180
|
+
isGenerated
|
|
181
|
+
status
|
|
182
|
+
}
|
|
183
|
+
testCases {
|
|
184
|
+
isGenerated
|
|
185
|
+
status
|
|
186
|
+
}
|
|
187
|
+
reusableTestCases {
|
|
188
|
+
isGenerated
|
|
189
|
+
status
|
|
190
|
+
}
|
|
191
|
+
testCaseSteps
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
`;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export var ToolName;
|
|
2
2
|
(function (ToolName) {
|
|
3
|
+
ToolName["WOPEE_CREATE_BLANK_SUITE"] = "wopee_create_blank_suite";
|
|
3
4
|
ToolName["WOPEE_FETCH_ANALYSIS_SUITES"] = "wopee_fetch_analysis_suites";
|
|
4
5
|
ToolName["WOPEE_DISPATCH_ANALYSIS"] = "wopee_dispatch_analysis";
|
|
5
6
|
ToolName["WOPEE_DISPATCH_AGENT"] = "wopee_dispatch_agent";
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { getConfig } from "../../utils/getConfig.js";
|
|
2
|
+
import { requestClient } from "../../utils/requestClient.js";
|
|
3
|
+
import { ToolName } from "../shared/types.js";
|
|
4
|
+
import { CreateBlankAnalysisSuite } from "../shared/gql-queries.js";
|
|
5
|
+
export const wopeeCreateBlankSuite = {
|
|
6
|
+
name: ToolName.WOPEE_CREATE_BLANK_SUITE,
|
|
7
|
+
config: {
|
|
8
|
+
title: "Create blank analysis suite",
|
|
9
|
+
description: "Create a blank analysis suite for a project",
|
|
10
|
+
},
|
|
11
|
+
handler: async () => {
|
|
12
|
+
const { WOPEE_PROJECT_UUID } = getConfig();
|
|
13
|
+
if (!WOPEE_PROJECT_UUID)
|
|
14
|
+
return {
|
|
15
|
+
content: [
|
|
16
|
+
{
|
|
17
|
+
type: "text",
|
|
18
|
+
text: "WOPEE_PROJECT_UUID is not set",
|
|
19
|
+
},
|
|
20
|
+
],
|
|
21
|
+
};
|
|
22
|
+
const result = await requestClient(CreateBlankAnalysisSuite, {
|
|
23
|
+
projectUuid: WOPEE_PROJECT_UUID,
|
|
24
|
+
});
|
|
25
|
+
if (!result || !result.createBlankAnalysisSuite)
|
|
26
|
+
return {
|
|
27
|
+
content: [
|
|
28
|
+
{
|
|
29
|
+
type: "text",
|
|
30
|
+
text: "Failed to fetch analysis suites",
|
|
31
|
+
},
|
|
32
|
+
],
|
|
33
|
+
};
|
|
34
|
+
return {
|
|
35
|
+
content: [
|
|
36
|
+
{
|
|
37
|
+
type: "text",
|
|
38
|
+
text: JSON.stringify(result.createBlankAnalysisSuite, null, 2),
|
|
39
|
+
},
|
|
40
|
+
],
|
|
41
|
+
};
|
|
42
|
+
},
|
|
43
|
+
};
|