You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
`Percy is currently not supported through MCP for ${detectedLanguage} with ${detectedTestingFramework}. If you want to run the test cases without Percy, disable Percy and run it again.`,
`Percy is currently not supported through MCP for ${detectedLanguage} with ${detectedTestingFramework}. If you want to run the test cases without Percy, disable Percy and run it again.`,
100
126
);
101
127
}
102
128
}
103
129
104
-
fullInstructions+=`\n\nAfter setting up the files above, follow these final steps:\n${instructionsForProjectConfiguration}`;
130
+
// Apply consistent formatting for all configurations
@@ -124,21 +160,25 @@ export default function addSDKTools(server: McpServer) {
124
160
.describe(
125
161
"The automation framework configured in the project. Example: 'playwright', 'selenium'",
126
162
),
163
+
127
164
detectedTestingFramework: z
128
165
.nativeEnum(SDKSupportedTestingFrameworkEnum)
129
166
.describe(
130
167
"The testing framework used in the project. Be precise with framework selection Example: 'webdriverio', 'jest', 'pytest', 'junit4', 'junit5', 'mocha'",
131
168
),
169
+
132
170
detectedLanguage: z
133
171
.nativeEnum(SDKSupportedLanguageEnum)
134
172
.describe(
135
173
"The programming language used in the project. Example: 'nodejs', 'python', 'java', 'csharp'",
Copy file name to clipboardExpand all lines: src/tools/sdk-utils/commands.ts
+16-2Lines changed: 16 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -28,7 +28,18 @@ export function getSDKPrefixCommand(
28
28
): string{
29
29
switch(language){
30
30
case"nodejs":
31
-
return`Install BrowserStack Node SDK\nusing command | npm i -D browserstack-node-sdk@latest\n| and then run following command to setup browserstack sdk:\n npx setup --username ${process.env.BROWSERSTACK_USERNAME} --key ${process.env.BROWSERSTACK_ACCESS_KEY}\n\n. This will create browserstack.yml file in the project root. Edit the file to add your desired platforms and browsers. If the file is not created :\n`;
31
+
return`---STEP---
32
+
Install BrowserStack Node SDK using command:
33
+
\`\`\`bash
34
+
npm i -D browserstack-node-sdk@latest
35
+
\`\`\`
36
+
---STEP---
37
+
Run the following command to setup browserstack sdk:
0 commit comments