Source symbols: packages/playwright-core/src/tools/mcp/config.ts
Deterministic, value-free symbol metadata extracted from public source. Implementations and literal values are not copied into this page.
- Revision: main@4cd8608744bf4d18c9f23578c3cf4a1cd1862b2d · 2026-07-20T11:02:36Z
- Declarations: 71
- Referenced calls: 48
Declared symbols
fileExistsAsync— function at line 29; referencesstat,isFileViewportSize— type at line 33CLIOptions— exported type at line 35defaultConfig— const at line 82BrowserUserConfig— type at line 94MergedConfig— exported type at line 96FullConfig— exported type at line 103resolveConfig— exported function at line 111; referencesmergeConfig,validateBrowserConfigmerged— const at line 112; referencesmergeConfig,validateBrowserConfigbrowser— const at line 113; referencesvalidateBrowserConfigresolveCLIConfigForMCP— exported function at line 117; referencesconfigFromEnv,configFromCLIOptions,loadConfig,dirname,resolve,cwd,mergeConfig,resolveConfigPaths,validateBrowserConfig,platform,validateOutputDirenvOverrides— const at line 118; referencesconfigFromEnv,configFromCLIOptions,loadConfig,dirname,resolve,cwd,mergeConfig,resolveConfigPaths,validateBrowserConfig,platform,validateOutputDircliOverrides— const at line 119; referencesconfigFromCLIOptions,loadConfig,dirname,resolve,cwd,mergeConfig,resolveConfigPaths,validateBrowserConfig,platform,validateOutputDirconfigFile— const at line 120; referencesloadConfig,dirname,resolve,cwd,mergeConfig,resolveConfigPaths,validateBrowserConfig,platform,validateOutputDirconfigInFile— const at line 121; referencesloadConfig,dirname,resolve,cwd,mergeConfig,resolveConfigPaths,validateBrowserConfig,platform,validateOutputDirconfigDir— const at line 122; referencesdirname,resolve,cwd,mergeConfig,resolveConfigPaths,validateBrowserConfig,platform,validateOutputDirresult— let at line 124; referencesmergeConfig,resolveConfigPaths,cwd,validateBrowserConfig,platform,validateOutputDirbrowser— const at line 129; referencesvalidateBrowserConfig,platform,validateOutputDirvalidateOutputDir— function at line 138; referencesisSystemDirectory,ErrorresolveCLIConfigForCLI— exported function at line 145; referencesresolve,existsSync,configFromCLIOptions,configFromEnv,loadConfig,dirname,cwd,join,homedir,mergeConfig,resolveConfigPaths,validateBrowserConfig,validateOutputDirconfig— const at line 146; referencesresolve,existsSyncdefaultConfigFile— const at line 148; referencesresolve,existsSyncdaemonOverrides— const at line 154; referencesconfigFromCLIOptionsenvOverrides— const at line 167; referencesconfigFromEnv,loadConfig,dirname,resolve,cwd,join,homedir,existsSync,mergeConfig,resolveConfigPaths,validateBrowserConfig,validateOutputDirconfigFile— const at line 168; referencesloadConfig,dirname,resolve,cwd,join,homedir,existsSync,mergeConfig,resolveConfigPaths,validateBrowserConfig,validateOutputDirconfigInFile— const at line 169; referencesloadConfig,dirname,resolve,cwd,join,homedir,existsSync,mergeConfig,resolveConfigPaths,validateBrowserConfig,validateOutputDirconfigDir— const at line 170; referencesdirname,resolve,cwd,join,homedir,existsSync,loadConfig,mergeConfig,resolveConfigPaths,validateBrowserConfig,validateOutputDirglobalConfigPath— const at line 171; referencesjoin,homedir,existsSync,loadConfig,dirname,cwd,mergeConfig,resolveConfigPaths,validateBrowserConfig,validateOutputDir,resolveglobalConfigExists— const at line 172; referencesexistsSync,loadConfig,dirname,cwd,mergeConfig,resolveConfigPaths,validateBrowserConfig,validateOutputDir,resolveglobalConfigInFile— const at line 173; referencesloadConfig,dirname,cwd,mergeConfig,resolveConfigPaths,validateBrowserConfig,validateOutputDir,resolveglobalConfigDir— const at line 174; referencesdirname,cwd,mergeConfig,resolveConfigPaths,validateBrowserConfig,validateOutputDir,resolveresult— let at line 176; referencesmergeConfig,resolveConfigPaths,cwd,validateBrowserConfig,validateOutputDir,resolvebrowser— const at line 188; referencesvalidateBrowserConfig,validateOutputDir,resolvebrowserToken— const at line 194; referencesresolveuserDataDir— const at line 195; referencesresolveresolveExtensionOptions— exported function at line 202; referencesenvToString,resolveBrowserParambrowser— const at line 203; referencesenvToString,resolveBrowserParamexecutablePath— const at line 205; referencesenvToStringvalidateBrowserConfig— function at line 209; referencesError,for,fileExistsAsync,some,includes,pushbrowserName— let at line 210resolveBrowserParam— function at line 256configFromCLIOptions— function at line 282; referencesresolveBrowserParam,ErrorlaunchOptions— const at line 286device— let at line 297; referencesErrorcontextOptions— const at line 310proxy— const at line 313config— const at line 340configFromEnv— exported function at line 392; referencescommaSeparatedList,semicolonSeparatedList,envToBoolean,envToString,headerParser,numberParser,dotenvFileLoader,resolutionParser,configFromCLIOptionse— const at line 393options— const at line 394initPage— const at line 415; referencesenvToString,envToBoolean,numberParser,headerParser,dotenvFileLoader,resolutionParser,configFromCLIOptions,endsWith,configFromIniFile,readFile,parse,charCodeAt,sliceinitScript— const at line 418; referencesenvToString,envToBoolean,numberParser,headerParser,dotenvFileLoader,resolutionParser,configFromCLIOptions,endsWith,configFromIniFile,readFile,parse,charCodeAt,sliceloadConfig— exported function at line 443; referencesendsWith,configFromIniFile,readFile,parse,charCodeAt,slicedata— const at line 451; referencesreadFile,parse,charCodeAt,slice,configFromIniFileresolveConfigPaths— function at line 462; referencesresolvepickDefined— function at line 470; referencesfromEntries,entriesmergeConfig— function at line 476; referencespickDefined,startsWithbrowser— const at line 477; referencespickDefinedsemicolonSeparatedList— exported function at line 524; referencessplit,trimcommaSeparatedList— exported function at line 530; referencessplit,trimdotenvFileLoader— exported function at line 536; referencesparse,readFileSyncnumberParser— exported function at line 542resolutionParser— exported function at line 548; referencesincludes,split,isNaN,ErrorheaderParser— exported function at line 569; referencesindexOf,trim,substringresult— const at line 572colonIndex— const at line 573; referencesindexOf,trim,substring,includes,Errorname— const at line 575; referencestrim,substring,includes,Errorvalue— const at line 576; referencessubstring,trim,includes,ErrorenumParser— exported function at line 581; referencesincludes,ErrorenvToBoolean— function at line 587envToString— function at line 595; referencestrim
Imported modules
fspathosdotenv@utils/fileUtils../../inprocess./configIni../../.../config.d
File-level call references
stat— line 30isFile— line 30mergeConfig— line 112validateBrowserConfig— line 113configFromEnv— line 118configFromCLIOptions— line 119loadConfig— line 121dirname— line 122resolve— line 122cwd— line 122resolveConfigPaths— line 125platform— line 131validateOutputDir— line 133isSystemDirectory— line 141Error— line 142existsSync— line 149join— line 171homedir— line 171envToString— line 203resolveBrowserParam— line 204for— line 229fileExistsAsync— line 230some— line 249includes— line 249push— line 250commaSeparatedList— line 395semicolonSeparatedList— line 396envToBoolean— line 397headerParser— line 403numberParser— line 404dotenvFileLoader— line 432resolutionParser— line 439endsWith— line 447configFromIniFile— line 448readFile— line 451parse— line 452charCodeAt— line 452slice— line 452fromEntries— line 471entries— line 472pickDefined— line 478startsWith— line 494split— line 527trim— line 527readFileSync— line 539isNaN— line 553indexOf— line 573substring— line 575
Source: packages/playwright-core/src/tools/mcp/config.ts