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.`,
103
126
);
104
127
}
105
128
}
106
129
107
-
fullInstructions+=`\n\nAfter setting up the files above, follow these final steps:\n${instructionsForProjectConfiguration}`;
130
+
// Apply consistent formatting for all configurations
@@ -127,21 +160,25 @@ export default function addSDKTools(server: McpServer) {
127
160
.describe(
128
161
"The automation framework configured in the project. Example: 'playwright', 'selenium'",
129
162
),
163
+
130
164
detectedTestingFramework: z
131
165
.nativeEnum(SDKSupportedTestingFrameworkEnum)
132
166
.describe(
133
167
"The testing framework used in the project. Be precise with framework selection Example: 'webdriverio', 'jest', 'pytest', 'junit4', 'junit5', 'mocha'",
134
168
),
169
+
135
170
detectedLanguage: z
136
171
.nativeEnum(SDKSupportedLanguageEnum)
137
172
.describe(
138
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