File tree Expand file tree Collapse file tree 1 file changed +11
-4
lines changed Expand file tree Collapse file tree 1 file changed +11
-4
lines changed Original file line number Diff line number Diff line change 1- // ========== FILE: src/tools/bstack-sdk.ts ==========
21import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js" ;
32import { CallToolResult } from "@modelcontextprotocol/sdk/types.js" ;
43import { z } from "zod" ;
@@ -43,18 +42,26 @@ export async function bootstrapProjectWithSDK({
4342 detectedBrowserAutomationFramework === "cypress" ||
4443 detectedTestingFramework === "webdriverio"
4544 ) {
46- const instructions = getInstructionsForProjectConfiguration (
45+ let instructions = getInstructionsForProjectConfiguration (
4746 detectedBrowserAutomationFramework ,
4847 detectedTestingFramework ,
4948 detectedLanguage ,
5049 ) ;
50+ if ( enablePercy ) {
51+ const percyInstructions = getPercyInstructions (
52+ detectedLanguage ,
53+ detectedBrowserAutomationFramework ,
54+ detectedTestingFramework ,
55+ ) ;
56+ if ( percyInstructions ) {
57+ instructions += formatPercyInstructions ( percyInstructions ) ;
58+ }
59+ }
5160 return {
5261 content : [ { type : "text" , text : instructions , isError : false } ] ,
5362 } ;
5463 }
5564
56- // --- Default flow for frameworks using browserstack.yml (e.g., Playwright, Selenium) ---
57-
5865 let fullInstructions = "" ;
5966 // Add language-dependent prefix command
6067 fullInstructions += getSDKPrefixCommand (
You can’t perform that action at this time.
0 commit comments