@nbakka/mcp-appium 2.0.70 → 2.0.71

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 +6 -13
  2. package/package.json +1 -1
package/lib/server.js CHANGED
@@ -613,7 +613,7 @@ tool(
613
613
  );
614
614
 
615
615
  tool(
616
- "generate_testcases_from_ticket_data",
616
+ "upload_png_to_openai",
617
617
  "Generate manual test cases by analyzing PNG design with JIRA requirements",
618
618
  {
619
619
  jiraSummary: zod_1.z.string().describe("Jira issue summary"),
@@ -647,22 +647,20 @@ tool(
647
647
  const base64Image = pngBuffer.toString('base64');
648
648
 
649
649
  const completion = await client.chat.completions.create({
650
- model: "gpt-5", // Use vision model for image analysis
650
+ model: "gpt-5", // Use GPT-5 model for image analysis
651
651
  messages: [{
652
652
  role: "user",
653
653
  content: [
654
654
  {
655
655
  type: "text",
656
- text: `Generate comprehensive manual test cases based on the following:
656
+ text: `Generate manual test cases based on the following:
657
657
 
658
658
  JIRA Summary: ${jiraSummary}
659
659
 
660
660
  JIRA Description: ${jiraDescription}
661
661
 
662
662
  Test Case Generation Guidelines:
663
- ${guidelines}
664
-
665
- Please analyze the provided Figma design (PNG image) and create detailed manual test cases that cover all the functionality described in the JIRA requirements. Focus on UI/UX changes, user interactions, navigation flows, and edge cases.`
663
+ ${guidelines}`
666
664
  },
667
665
  {
668
666
  type: "image_url",
@@ -673,17 +671,12 @@ Please analyze the provided Figma design (PNG image) and create detailed manual
673
671
  }
674
672
  ]
675
673
  }],
676
- max_tokens: 10000
674
+ max_completion_tokens: 10000
677
675
  });
678
676
 
679
677
  const testCases = completion.choices[0].message.content;
680
678
 
681
- // Save the generated test cases to a file for reference
682
- const timestamp = new Date().toISOString().replace(/[:.]/g, "-").slice(0, -5);
683
- const testCasesPath = path.join(figmaDir, `test-cases-${timestamp}.txt`);
684
- await fs.writeFile(testCasesPath, testCases);
685
-
686
- return `✅ Test cases generated successfully!\n\nSaved to: ${testCasesPath}\n\n${testCases}`;
679
+ return testCases;
687
680
  } catch (err) {
688
681
  return `❌ Error generating test cases: ${err.message}`;
689
682
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nbakka/mcp-appium",
3
- "version": "2.0.70",
3
+ "version": "2.0.71",
4
4
  "description": "Appium MCP",
5
5
  "engines": {
6
6
  "node": ">=18"