@nbakka/mcp-appium 2.0.75 → 2.0.77

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.
Files changed (2) hide show
  1. package/lib/server.js +21 -11
  2. package/package.json +1 -1
package/lib/server.js CHANGED
@@ -674,14 +674,14 @@ tool(
674
674
  }
675
675
  );
676
676
 
677
- const generateTestcasesFromTicketData = {
678
- name: "generate_testcases_from_ticket_data",
679
- description: "Generate manual test cases by analyzing PNG design with JIRA requirements",
680
- inputSchema: z.object({
681
- jiraSummary: z.string().describe("Jira issue summary"),
682
- jiraDescription: z.string().describe("Jira issue description")
683
- }),
684
- handler: async ({ jiraSummary, jiraDescription }) => {
677
+ server.tool(
678
+ "generate_testcases_from_ticket_data",
679
+ "Generate manual test cases by analyzing PNG design with JIRA requirements",
680
+ {
681
+ jiraSummary: zod_1.z.string().describe("Jira issue summary"),
682
+ jiraDescription: zod_1.z.string().describe("Jira issue description")
683
+ },
684
+ async ({ jiraSummary, jiraDescription }) => {
685
685
  try {
686
686
  // Clear the generated test cases file before starting
687
687
  const testCasesFilePath = path.join(__dirname, 'generated-testcases.txt');
@@ -748,12 +748,22 @@ ${guidelines}`
748
748
  await fs.writeFile(testCasesFilePath, `Error generating test cases: ${error.message}`);
749
749
  });
750
750
 
751
- return "✅ Test case generation started. Use 'check_testcases_status' tool to check if generation is complete.";
751
+ return {
752
+ content: [{
753
+ type: "text",
754
+ text: "✅ Test case generation started. Use 'check_testcases_status' tool to check if generation is complete."
755
+ }]
756
+ };
752
757
  } catch (err) {
753
- return `❌ Error starting test case generation: ${err.message}`;
758
+ return {
759
+ content: [{
760
+ type: "text",
761
+ text: `❌ Error starting test case generation: ${err.message}`
762
+ }]
763
+ };
754
764
  }
755
765
  }
756
- };
766
+ );
757
767
 
758
768
  tool(
759
769
  "check_testcases_status",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nbakka/mcp-appium",
3
- "version": "2.0.75",
3
+ "version": "2.0.77",
4
4
  "description": "Appium MCP",
5
5
  "engines": {
6
6
  "node": ">=18"