wopee-mcp 1.5.1 โ†’ 1.6.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/build/index.js CHANGED
@@ -1,6 +1,8 @@
1
+ #!/usr/bin/env node
1
2
  import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
2
3
  import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";
3
4
  import { TOOLS } from "./tools/index.js";
5
+ import { PROMPTS } from "./prompts/index.js";
4
6
  const server = new McpServer({
5
7
  name: "wopee-mcp",
6
8
  version: "1.0.0",
@@ -8,6 +10,9 @@ const server = new McpServer({
8
10
  for (const { name, config, handler } of TOOLS) {
9
11
  server.registerTool(name, config, handler);
10
12
  }
13
+ for (const { name, config, handler } of PROMPTS) {
14
+ server.registerPrompt(name, config, handler);
15
+ }
11
16
  async function main() {
12
17
  const transport = new StdioServerTransport();
13
18
  await server.connect(transport);
@@ -0,0 +1,60 @@
1
+ import { PromptName } from "../shared/types.js";
2
+ export const fetchProjectSummary = {
3
+ name: PromptName.FETCH_PROJECT_SUMMARY,
4
+ config: {
5
+ title: "Fetch project summary",
6
+ description: "Fetch project summary in pre-formatted markdown tables",
7
+ },
8
+ handler: () => ({
9
+ messages: [
10
+ {
11
+ role: "user",
12
+ content: {
13
+ type: "text",
14
+ text: `Please, fetch my analysis suites using 'wopee_fetch_analysis_suites' tool and if there are more than 5 suites, ask the user to specify how many suites he wishes to use for further processing. Then for each suite in the list, fetch its user stories/test cases using 'wopee_fetch_file' tool with the file type 'USER_STORIES' OR 'TEST_CASES' (no need to specify both arguments as they both return the same output).
15
+
16
+ After fetching all of the necessary data, summarize and display two readable markdown tables as an output in the same chat conversation. Do NOT create, write, or save any files to disk - only display the formatted tables in your response:
17
+
18
+ - The first table should have the following columns:
19
+ - analysis name
20
+ - number of user stories
21
+ - number of test cases
22
+
23
+ ### Example of the first table:
24
+
25
+ | ๐Ÿ“Š Analysis Name | ๐Ÿ“ User Stories | โœ… Test Cases |
26
+ |-------------------|-----------------|---------------|
27
+ | Analysis - A068 | 5 | 8 |
28
+ | Analysis - A067 | 5 | 7 |
29
+
30
+ ___
31
+
32
+ - The second table should have the following columns:
33
+ - analysis name
34
+ - user story category
35
+ - user story name
36
+ - test case name
37
+ - number of steps
38
+
39
+ ### Example of the second table:
40
+ | ๐Ÿ“Š Analysis Name | ๐Ÿ“ User Story Category | ๐Ÿ“‹ User Story Name | ๐Ÿงช Test Case Name | ๐Ÿ”ข Steps |
41
+ |-------------------|------------------------|-------------------|-------------------|-------------|
42
+ | Analysis - A068 | User Authentication | Authentication and Access to Promotions | Successful Sign In and Promotion Visibility | 7 |
43
+ | | | | Login Form Validation - Empty Required Fields | 4 |
44
+ | | | | Login Failure with Invalid Credentials | 7 |
45
+ | | Account Support | Account Assistance and Support Navigation | Navigate to sign-in page and verify 'Forget your password?' link | 2 |
46
+ | | | | Password help link redirects to support page | 5 |
47
+ | Analysis - A067 | User Authentication | Sign In with @tesena.com Email to Access Catalogue | Sign in form loads with all required elements present | 5 |
48
+ | | | | Sign in with valid @tesena.com credentials redirects to catalogue | 5 |
49
+
50
+ ___
51
+
52
+ ## Important Notes:
53
+ - Use short, yet descriptive names for the column headers.
54
+ - Please, add emojis for the column headers.
55
+ `,
56
+ },
57
+ },
58
+ ],
59
+ }),
60
+ };
@@ -0,0 +1,2 @@
1
+ import { fetchProjectSummary } from "./fetch_project_summary/index.js";
2
+ export const PROMPTS = [fetchProjectSummary];
@@ -0,0 +1,4 @@
1
+ export var PromptName;
2
+ (function (PromptName) {
3
+ PromptName["FETCH_PROJECT_SUMMARY"] = "fetch-project-summary";
4
+ })(PromptName || (PromptName = {}));
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "bin": {
5
5
  "wopee-mcp": "./build/index.js"
6
6
  },
7
- "version": "1.5.1",
7
+ "version": "1.6.1",
8
8
  "description": "Wopee.io MCP server",
9
9
  "main": "./build/index.js",
10
10
  "scripts": {