@skyramp/mcp 0.0.9 → 0.0.12

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.
@@ -103,6 +103,9 @@ Let us generate a UI test with frontend playwright trace file skyramp_playwright
103
103
  - Default Framework: Pytest
104
104
  - Supported Languages: Python, Java, JavaScript, TypeScript
105
105
  - Supported Frameworks: Pytest, Robot, JUnit, Playwright
106
+
107
+ **IMPORTANT:**
108
+ - WHEN GENERATING TESTS USING TRACE, EXCLUDE THE PATHS THAT ARE NOT API ENDPOINTS.
106
109
  `,
107
110
  },
108
111
  },
@@ -152,7 +152,10 @@ ${result}
152
152
  method: params.method,
153
153
  apiSchema: params.apiSchema ? [params.apiSchema] : [],
154
154
  language: params.language ?? "python",
155
- framework: params.framework ?? "",
155
+ framework: params.framework ??
156
+ (params.language === "typescript" || params.language === "javascript"
157
+ ? "playwright"
158
+ : ""),
156
159
  output: params.output,
157
160
  outputDir: params.outputDir,
158
161
  force: params.force ?? true,
@@ -63,7 +63,7 @@ export const baseTraceSchema = z.object({
63
63
  exclude: z
64
64
  .array(z.string())
65
65
  .default([])
66
- .describe("List of endpoints or patterns to exclude from test generation. DO NOT ASSUME ANYTHING IF NOT PROVIDED"),
66
+ .describe("List of endpoints or patterns to exclude from test generation. EXCLUDE THE PATHS THAT ARE NOT API ENDPOINTS."),
67
67
  });
68
68
  // Base schema that all test tools share
69
69
  export const baseTestSchema = {
@@ -7,7 +7,7 @@ export function getModularizationPrompt() {
7
7
  3. Do not change or remove any existing lines of code, variable names, function names, or function structures.
8
8
  4. Only extract reusable logical sections into helper functions or parameterized structures where applicable.
9
9
  5. SEARCH REPOSITORY FOR CODE THAT CAN BE REUSED AND USE IT. WITHOUT BREAKING NEW OR EXISTING TESTS/FUNCTIONS/CODE.
10
- 6. Do not create any new test cases but only helper functions.
10
+ 6. Do not create any new test cases or a new modular file but only helper functions with modularization done in the same file.
11
11
  7. Make sure the logic is same and the test works as expected.
12
12
  8. Do not add any new logic or classes or any other files.
13
13
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@skyramp/mcp",
3
- "version": "0.0.9",
3
+ "version": "0.0.12",
4
4
  "main": "build/index.js",
5
5
  "type": "module",
6
6
  "bin": {
@@ -42,7 +42,7 @@
42
42
  },
43
43
  "dependencies": {
44
44
  "@modelcontextprotocol/sdk": "^1.11.4",
45
- "@skyramp/skyramp": "^1.2.10",
45
+ "@skyramp/skyramp": "^1.2.13",
46
46
  "dockerode": "^4.0.6",
47
47
  "zod": "^3.25.3"
48
48
  },