File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -64,8 +64,8 @@ interface McpContextOptions {
6464 experimentalIncludeAllPages ?: boolean ;
6565}
6666
67- const DEFAULT_TIMEOUT = 30_000 ;
68- const NAVIGATION_TIMEOUT = 60_000 ;
67+ const DEFAULT_TIMEOUT = 5_000 ;
68+ const NAVIGATION_TIMEOUT = 10_000 ;
6969
7070function getNetworkMultiplierFromString ( condition : string | null ) : number {
7171 const puppeteerCondition =
Original file line number Diff line number Diff line change @@ -96,10 +96,8 @@ const logDisclaimers = () => {
9696 console . error (
9797 `chrome-devtools-mcp exposes content of the browser instance to the MCP clients allowing them to inspect,
9898debug, and modify any data in the browser or DevTools.
99- Avoid sharing sensitive or personal information that you do not want to share with MCP clients.` ,
100- ) ;
101- console . error (
102- `Performance tools may send trace URLs to the Google CrUX API to fetch real-user experience data.` ,
99+ Avoid sharing sensitive or personal information that you do not want to share with MCP clients.
100+ Performance tools may send trace URLs to the Google CrUX API to fetch real-user experience data.` ,
103101 ) ;
104102} ;
105103
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -193,15 +193,18 @@ async function stopTracingAndAppendOutput(
193193 }
194194}
195195
196+ /** We tell CrUXManager to fetch data so it's available when DevTools.PerformanceTraceFormatter is invoked */
196197async function populateCruxData ( result : TraceResult ) : Promise < void > {
197198 logger ( 'populateCruxData called' ) ;
198199 const cruxManager = DevTools . CrUXManager . CrUXManager . instance ( ) ;
199200 // go/jtfbx
200201 cruxManager . setEndpointForTesting (
201202 'https://chromeuxreport.googleapis.com/v1/records:queryRecord?key=AIzaSyBn5gimNjhiEyA_euicSKko6IlD3HdgUfk' ,
202203 ) ;
203- const settings = DevTools . Common . Settings . Settings . instance ( ) ;
204- const cruxSetting = settings . createSetting ( 'field-data' , { enabled : true } ) ;
204+ const cruxSetting =
205+ DevTools . Common . Settings . Settings . instance ( ) . createSetting ( 'field-data' , {
206+ enabled : true ,
207+ } ) ;
205208 cruxSetting . set ( { enabled : true } ) ;
206209
207210 // Gather URLs to fetch CrUX data for
@@ -215,6 +218,7 @@ async function populateCruxData(result: TraceResult): Promise<void> {
215218 logger ( 'No URLs found for CrUX data' ) ;
216219 return ;
217220 }
221+
218222 logger (
219223 `Fetching CrUX data for ${ urlSet . size } URLs: ${ Array . from ( urlSet ) . join ( ', ' ) } ` ,
220224 ) ;
Original file line number Diff line number Diff line change @@ -71,7 +71,7 @@ exports[`McpResponse > adds throttling setting when it is not null 1`] = `
7171# test response
7272## Network emulation
7373Emulating: Slow 3G
74- Default navigation timeout set to 600000 ms
74+ Default navigation timeout set to 100000 ms
7575`;
7676
7777exports[`McpResponse > allows response text lines to be added 1`] = `
You can’t perform that action at this time.
0 commit comments