@gabrielbryk/arc-devtools-mcp 1.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (367) hide show
  1. package/LICENSE +202 -0
  2. package/README.md +977 -0
  3. package/build/src/HeapSnapshotManager.js +148 -0
  4. package/build/src/McpContext.js +737 -0
  5. package/build/src/McpPage.js +315 -0
  6. package/build/src/McpResponse.js +990 -0
  7. package/build/src/Mutex.js +38 -0
  8. package/build/src/PageCollector.js +297 -0
  9. package/build/src/ServiceWorkerCollector.js +171 -0
  10. package/build/src/SlimMcpResponse.js +19 -0
  11. package/build/src/TextSnapshot.js +236 -0
  12. package/build/src/ToolHandler.js +223 -0
  13. package/build/src/WaitForHelper.js +190 -0
  14. package/build/src/bin/check-latest-version.js +50 -0
  15. package/build/src/bin/chrome-devtools-cli-options.js +978 -0
  16. package/build/src/bin/chrome-devtools-mcp-cli-options.js +412 -0
  17. package/build/src/bin/chrome-devtools-mcp-main.js +72 -0
  18. package/build/src/bin/chrome-devtools-mcp.js +23 -0
  19. package/build/src/bin/chrome-devtools.js +189 -0
  20. package/build/src/browser.js +253 -0
  21. package/build/src/daemon/client.js +160 -0
  22. package/build/src/daemon/daemon.js +261 -0
  23. package/build/src/daemon/types.js +7 -0
  24. package/build/src/daemon/utils.js +115 -0
  25. package/build/src/devtools/DevToolsConnectionAdapter.js +70 -0
  26. package/build/src/devtools/DevtoolsUtils.js +369 -0
  27. package/build/src/devtools/McpHostBindingAdapter.js +165 -0
  28. package/build/src/formatters/ConsoleFormatter.js +288 -0
  29. package/build/src/formatters/HeapSnapshotFormatter.js +97 -0
  30. package/build/src/formatters/IssueFormatter.js +193 -0
  31. package/build/src/formatters/NetworkFormatter.js +238 -0
  32. package/build/src/formatters/SnapshotFormatter.js +135 -0
  33. package/build/src/index.js +153 -0
  34. package/build/src/issue-descriptions.js +40 -0
  35. package/build/src/logger.js +37 -0
  36. package/build/src/polyfill.js +8 -0
  37. package/build/src/telemetry/ClearcutLogger.js +169 -0
  38. package/build/src/telemetry/WatchdogClient.js +61 -0
  39. package/build/src/telemetry/errors.js +18 -0
  40. package/build/src/telemetry/flagUtils.js +89 -0
  41. package/build/src/telemetry/metricsRegistry.js +89 -0
  42. package/build/src/telemetry/persistence.js +72 -0
  43. package/build/src/telemetry/transformation.js +134 -0
  44. package/build/src/telemetry/types.js +31 -0
  45. package/build/src/telemetry/watchdog/ClearcutSender.js +205 -0
  46. package/build/src/telemetry/watchdog/main.js +128 -0
  47. package/build/src/third_party/THIRD_PARTY_NOTICES +3637 -0
  48. package/build/src/third_party/bundled-packages.json +12 -0
  49. package/build/src/third_party/devtools-formatter-worker.js +15301 -0
  50. package/build/src/third_party/devtools-heap-snapshot-worker.js +9870 -0
  51. package/build/src/third_party/index.js +159597 -0
  52. package/build/src/third_party/issue-descriptions/CoepCoopSandboxedIframeCannotNavigateToCoopPage.md +4 -0
  53. package/build/src/third_party/issue-descriptions/CoepCorpNotSameOrigin.md +8 -0
  54. package/build/src/third_party/issue-descriptions/CoepCorpNotSameOriginAfterDefaultedToSameOriginByCoep.md +18 -0
  55. package/build/src/third_party/issue-descriptions/CoepCorpNotSameSite.md +7 -0
  56. package/build/src/third_party/issue-descriptions/CoepFrameResourceNeedsCoepHeader.md +10 -0
  57. package/build/src/third_party/issue-descriptions/CompatibilityModeQuirks.md +5 -0
  58. package/build/src/third_party/issue-descriptions/CookieAttributeValueExceedsMaxSize.md +5 -0
  59. package/build/src/third_party/issue-descriptions/LowTextContrast.md +5 -0
  60. package/build/src/third_party/issue-descriptions/SameSiteExcludeContextDowngradeRead.md +8 -0
  61. package/build/src/third_party/issue-descriptions/SameSiteExcludeContextDowngradeSet.md +8 -0
  62. package/build/src/third_party/issue-descriptions/SameSiteExcludeNavigationContextDowngrade.md +8 -0
  63. package/build/src/third_party/issue-descriptions/SameSiteNoneInsecureErrorRead.md +8 -0
  64. package/build/src/third_party/issue-descriptions/SameSiteNoneInsecureErrorSet.md +8 -0
  65. package/build/src/third_party/issue-descriptions/SameSiteNoneInsecureWarnRead.md +8 -0
  66. package/build/src/third_party/issue-descriptions/SameSiteNoneInsecureWarnSet.md +8 -0
  67. package/build/src/third_party/issue-descriptions/SameSiteUnspecifiedLaxAllowUnsafeRead.md +9 -0
  68. package/build/src/third_party/issue-descriptions/SameSiteUnspecifiedLaxAllowUnsafeSet.md +9 -0
  69. package/build/src/third_party/issue-descriptions/SameSiteWarnCrossDowngradeRead.md +8 -0
  70. package/build/src/third_party/issue-descriptions/SameSiteWarnCrossDowngradeSet.md +8 -0
  71. package/build/src/third_party/issue-descriptions/SameSiteWarnStrictLaxDowngradeStrict.md +8 -0
  72. package/build/src/third_party/issue-descriptions/arInsecureContext.md +7 -0
  73. package/build/src/third_party/issue-descriptions/arInvalidInfoHeader.md +5 -0
  74. package/build/src/third_party/issue-descriptions/arInvalidRegisterOsSourceHeader.md +5 -0
  75. package/build/src/third_party/issue-descriptions/arInvalidRegisterOsTriggerHeader.md +5 -0
  76. package/build/src/third_party/issue-descriptions/arInvalidRegisterSourceHeader.md +5 -0
  77. package/build/src/third_party/issue-descriptions/arInvalidRegisterTriggerHeader.md +5 -0
  78. package/build/src/third_party/issue-descriptions/arNavigationRegistrationUniqueScopeAlreadySet.md +5 -0
  79. package/build/src/third_party/issue-descriptions/arNavigationRegistrationWithoutTransientUserActivation.md +6 -0
  80. package/build/src/third_party/issue-descriptions/arNoRegisterOsSourceHeader.md +5 -0
  81. package/build/src/third_party/issue-descriptions/arNoRegisterOsTriggerHeader.md +5 -0
  82. package/build/src/third_party/issue-descriptions/arNoRegisterSourceHeader.md +5 -0
  83. package/build/src/third_party/issue-descriptions/arNoRegisterTriggerHeader.md +5 -0
  84. package/build/src/third_party/issue-descriptions/arNoWebOrOsSupport.md +4 -0
  85. package/build/src/third_party/issue-descriptions/arOsSourceIgnored.md +18 -0
  86. package/build/src/third_party/issue-descriptions/arOsTriggerIgnored.md +19 -0
  87. package/build/src/third_party/issue-descriptions/arPermissionPolicyDisabled.md +8 -0
  88. package/build/src/third_party/issue-descriptions/arSourceAndTriggerHeaders.md +9 -0
  89. package/build/src/third_party/issue-descriptions/arSourceIgnored.md +13 -0
  90. package/build/src/third_party/issue-descriptions/arTriggerIgnored.md +12 -0
  91. package/build/src/third_party/issue-descriptions/arUntrustworthyReportingOrigin.md +10 -0
  92. package/build/src/third_party/issue-descriptions/arWebAndOsHeaders.md +11 -0
  93. package/build/src/third_party/issue-descriptions/bounceTrackingMitigations.md +3 -0
  94. package/build/src/third_party/issue-descriptions/clientHintMetaTagAllowListInvalidOrigin.md +4 -0
  95. package/build/src/third_party/issue-descriptions/clientHintMetaTagModifiedHTML.md +4 -0
  96. package/build/src/third_party/issue-descriptions/connectionAllowlistInvalidAllowlistItemType.md +12 -0
  97. package/build/src/third_party/issue-descriptions/connectionAllowlistInvalidHeader.md +12 -0
  98. package/build/src/third_party/issue-descriptions/connectionAllowlistInvalidUrlPattern.md +8 -0
  99. package/build/src/third_party/issue-descriptions/connectionAllowlistItemNotInnerList.md +12 -0
  100. package/build/src/third_party/issue-descriptions/connectionAllowlistMoreThanOneList.md +7 -0
  101. package/build/src/third_party/issue-descriptions/connectionAllowlistReportingEndpointNotToken.md +10 -0
  102. package/build/src/third_party/issue-descriptions/cookieCrossSiteRedirectDowngrade.md +12 -0
  103. package/build/src/third_party/issue-descriptions/cookieExcludeBlockedWithinRelatedWebsiteSet.md +4 -0
  104. package/build/src/third_party/issue-descriptions/cookieExcludeDomainNonAscii.md +11 -0
  105. package/build/src/third_party/issue-descriptions/cookieExcludePortMismatch.md +8 -0
  106. package/build/src/third_party/issue-descriptions/cookieExcludeSchemeMismatch.md +7 -0
  107. package/build/src/third_party/issue-descriptions/cookieExcludeThirdPartyPhaseoutRead.md +6 -0
  108. package/build/src/third_party/issue-descriptions/cookieExcludeThirdPartyPhaseoutSet.md +6 -0
  109. package/build/src/third_party/issue-descriptions/cookieWarnDomainNonAscii.md +11 -0
  110. package/build/src/third_party/issue-descriptions/cookieWarnMetadataGrantRead.md +4 -0
  111. package/build/src/third_party/issue-descriptions/cookieWarnMetadataGrantSet.md +4 -0
  112. package/build/src/third_party/issue-descriptions/cookieWarnThirdPartyPhaseoutRead.md +6 -0
  113. package/build/src/third_party/issue-descriptions/cookieWarnThirdPartyPhaseoutSet.md +6 -0
  114. package/build/src/third_party/issue-descriptions/corsAllowCredentialsRequired.md +6 -0
  115. package/build/src/third_party/issue-descriptions/corsDisabledScheme.md +7 -0
  116. package/build/src/third_party/issue-descriptions/corsDisallowedByMode.md +7 -0
  117. package/build/src/third_party/issue-descriptions/corsHeaderDisallowedByPreflightResponse.md +5 -0
  118. package/build/src/third_party/issue-descriptions/corsInvalidHeaderValues.md +7 -0
  119. package/build/src/third_party/issue-descriptions/corsLocalNetworkAccessPermissionDenied.md +19 -0
  120. package/build/src/third_party/issue-descriptions/corsMethodDisallowedByPreflightResponse.md +5 -0
  121. package/build/src/third_party/issue-descriptions/corsNoCorsRedirectModeNotFollow.md +5 -0
  122. package/build/src/third_party/issue-descriptions/corsOriginMismatch.md +6 -0
  123. package/build/src/third_party/issue-descriptions/corsPreflightResponseInvalid.md +5 -0
  124. package/build/src/third_party/issue-descriptions/corsRedirectContainsCredentials.md +5 -0
  125. package/build/src/third_party/issue-descriptions/corsWildcardOriginNotAllowed.md +8 -0
  126. package/build/src/third_party/issue-descriptions/cspEvalViolation.md +9 -0
  127. package/build/src/third_party/issue-descriptions/cspInlineViolation.md +10 -0
  128. package/build/src/third_party/issue-descriptions/cspTrustedTypesPolicyViolation.md +5 -0
  129. package/build/src/third_party/issue-descriptions/cspTrustedTypesSinkViolation.md +8 -0
  130. package/build/src/third_party/issue-descriptions/cspURLViolation.md +10 -0
  131. package/build/src/third_party/issue-descriptions/deprecation.md +3 -0
  132. package/build/src/third_party/issue-descriptions/emailVerificationRequestAccountsEmptyList.md +1 -0
  133. package/build/src/third_party/issue-descriptions/emailVerificationRequestAccountsHttpNotFound.md +1 -0
  134. package/build/src/third_party/issue-descriptions/emailVerificationRequestAccountsInvalidContentType.md +1 -0
  135. package/build/src/third_party/issue-descriptions/emailVerificationRequestAccountsInvalidResponse.md +1 -0
  136. package/build/src/third_party/issue-descriptions/emailVerificationRequestAccountsNoResponse.md +1 -0
  137. package/build/src/third_party/issue-descriptions/emailVerificationRequestDnsFetchFailed.md +1 -0
  138. package/build/src/third_party/issue-descriptions/emailVerificationRequestDnsInvalidRecord.md +1 -0
  139. package/build/src/third_party/issue-descriptions/emailVerificationRequestEmailVerificationWellKnownHttpNotFound.md +1 -0
  140. package/build/src/third_party/issue-descriptions/emailVerificationRequestEmailVerificationWellKnownInvalidContentType.md +1 -0
  141. package/build/src/third_party/issue-descriptions/emailVerificationRequestEmailVerificationWellKnownInvalidResponse.md +1 -0
  142. package/build/src/third_party/issue-descriptions/emailVerificationRequestEmailVerificationWellKnownNoResponse.md +1 -0
  143. package/build/src/third_party/issue-descriptions/emailVerificationRequestInvalidEmail.md +1 -0
  144. package/build/src/third_party/issue-descriptions/emailVerificationRequestJwksHttpNotFound.md +1 -0
  145. package/build/src/third_party/issue-descriptions/emailVerificationRequestJwksInvalidResponse.md +1 -0
  146. package/build/src/third_party/issue-descriptions/emailVerificationRequestKeyBindingSigningFailed.md +1 -0
  147. package/build/src/third_party/issue-descriptions/emailVerificationRequestRpOriginIsOpaque.md +1 -0
  148. package/build/src/third_party/issue-descriptions/emailVerificationRequestTokenHttpNotFound.md +1 -0
  149. package/build/src/third_party/issue-descriptions/emailVerificationRequestTokenInvalidContentType.md +1 -0
  150. package/build/src/third_party/issue-descriptions/emailVerificationRequestTokenInvalidResponse.md +1 -0
  151. package/build/src/third_party/issue-descriptions/emailVerificationRequestTokenInvalidSdJwt.md +1 -0
  152. package/build/src/third_party/issue-descriptions/emailVerificationRequestTokenMalformedSdJwt.md +1 -0
  153. package/build/src/third_party/issue-descriptions/emailVerificationRequestTokenNoResponse.md +1 -0
  154. package/build/src/third_party/issue-descriptions/emailVerificationRequestTokenVerificationKbInvalidAudience.md +1 -0
  155. package/build/src/third_party/issue-descriptions/emailVerificationRequestTokenVerificationKbInvalidIssuedAt.md +1 -0
  156. package/build/src/third_party/issue-descriptions/emailVerificationRequestTokenVerificationKbInvalidNonce.md +1 -0
  157. package/build/src/third_party/issue-descriptions/emailVerificationRequestTokenVerificationKbInvalidSdHash.md +1 -0
  158. package/build/src/third_party/issue-descriptions/emailVerificationRequestTokenVerificationKbInvalidTyp.md +1 -0
  159. package/build/src/third_party/issue-descriptions/emailVerificationRequestTokenVerificationKbMissingAud.md +1 -0
  160. package/build/src/third_party/issue-descriptions/emailVerificationRequestTokenVerificationKbMissingCnf.md +1 -0
  161. package/build/src/third_party/issue-descriptions/emailVerificationRequestTokenVerificationKbMissingIat.md +1 -0
  162. package/build/src/third_party/issue-descriptions/emailVerificationRequestTokenVerificationKbMissingNonce.md +1 -0
  163. package/build/src/third_party/issue-descriptions/emailVerificationRequestTokenVerificationKbMissingSdHash.md +1 -0
  164. package/build/src/third_party/issue-descriptions/emailVerificationRequestTokenVerificationKbSignatureFailed.md +1 -0
  165. package/build/src/third_party/issue-descriptions/emailVerificationRequestTokenVerificationSdJwtInvalidEmail.md +1 -0
  166. package/build/src/third_party/issue-descriptions/emailVerificationRequestTokenVerificationSdJwtInvalidEmailVerified.md +1 -0
  167. package/build/src/third_party/issue-descriptions/emailVerificationRequestTokenVerificationSdJwtInvalidHolderKey.md +1 -0
  168. package/build/src/third_party/issue-descriptions/emailVerificationRequestTokenVerificationSdJwtInvalidIssuedAt.md +1 -0
  169. package/build/src/third_party/issue-descriptions/emailVerificationRequestTokenVerificationSdJwtInvalidIssuer.md +1 -0
  170. package/build/src/third_party/issue-descriptions/emailVerificationRequestTokenVerificationSdJwtJwksMissingKeys.md +1 -0
  171. package/build/src/third_party/issue-descriptions/emailVerificationRequestTokenVerificationSdJwtMissingCnf.md +1 -0
  172. package/build/src/third_party/issue-descriptions/emailVerificationRequestTokenVerificationSdJwtMissingEmail.md +1 -0
  173. package/build/src/third_party/issue-descriptions/emailVerificationRequestTokenVerificationSdJwtMissingIat.md +1 -0
  174. package/build/src/third_party/issue-descriptions/emailVerificationRequestTokenVerificationSdJwtMissingIss.md +1 -0
  175. package/build/src/third_party/issue-descriptions/emailVerificationRequestTokenVerificationSdJwtSignatureFailed.md +1 -0
  176. package/build/src/third_party/issue-descriptions/emailVerificationRequestTokenVerificationSdJwtUnsupportedHeaderAlg.md +1 -0
  177. package/build/src/third_party/issue-descriptions/emailVerificationRequestUserLoggedOut.md +1 -0
  178. package/build/src/third_party/issue-descriptions/emailVerificationRequestWellKnownAccountsEndpointCrossOrigin.md +1 -0
  179. package/build/src/third_party/issue-descriptions/emailVerificationRequestWellKnownHttpNotFound.md +1 -0
  180. package/build/src/third_party/issue-descriptions/emailVerificationRequestWellKnownInvalidContentType.md +1 -0
  181. package/build/src/third_party/issue-descriptions/emailVerificationRequestWellKnownInvalidResponse.md +1 -0
  182. package/build/src/third_party/issue-descriptions/emailVerificationRequestWellKnownIssuanceEndpointCrossOrigin.md +1 -0
  183. package/build/src/third_party/issue-descriptions/emailVerificationRequestWellKnownListEmpty.md +1 -0
  184. package/build/src/third_party/issue-descriptions/emailVerificationRequestWellKnownMissingAccountsEndpoint.md +1 -0
  185. package/build/src/third_party/issue-descriptions/emailVerificationRequestWellKnownMissingIssuanceEndpoint.md +1 -0
  186. package/build/src/third_party/issue-descriptions/emailVerificationRequestWellKnownNoResponse.md +1 -0
  187. package/build/src/third_party/issue-descriptions/emailVerificationRequestWellKnownUnsupportedSigningAlgorithm.md +1 -0
  188. package/build/src/third_party/issue-descriptions/federatedAuthRequestAccountsHttpNotFound.md +1 -0
  189. package/build/src/third_party/issue-descriptions/federatedAuthRequestAccountsInvalidResponse.md +1 -0
  190. package/build/src/third_party/issue-descriptions/federatedAuthRequestAccountsNoResponse.md +1 -0
  191. package/build/src/third_party/issue-descriptions/federatedAuthRequestApprovalDeclined.md +1 -0
  192. package/build/src/third_party/issue-descriptions/federatedAuthRequestCanceled.md +1 -0
  193. package/build/src/third_party/issue-descriptions/federatedAuthRequestErrorFetchingSignin.md +1 -0
  194. package/build/src/third_party/issue-descriptions/federatedAuthRequestErrorIdToken.md +1 -0
  195. package/build/src/third_party/issue-descriptions/federatedAuthRequestIdTokenHttpNotFound.md +1 -0
  196. package/build/src/third_party/issue-descriptions/federatedAuthRequestIdTokenInvalidRequest.md +1 -0
  197. package/build/src/third_party/issue-descriptions/federatedAuthRequestIdTokenInvalidResponse.md +1 -0
  198. package/build/src/third_party/issue-descriptions/federatedAuthRequestIdTokenNoResponse.md +1 -0
  199. package/build/src/third_party/issue-descriptions/federatedAuthRequestInvalidSigninResponse.md +1 -0
  200. package/build/src/third_party/issue-descriptions/federatedAuthRequestManifestHttpNotFound.md +1 -0
  201. package/build/src/third_party/issue-descriptions/federatedAuthRequestManifestInvalidResponse.md +1 -0
  202. package/build/src/third_party/issue-descriptions/federatedAuthRequestManifestNoResponse.md +1 -0
  203. package/build/src/third_party/issue-descriptions/federatedAuthRequestTooManyRequests.md +1 -0
  204. package/build/src/third_party/issue-descriptions/federatedAuthUserInfoRequestInvalidAccountsResponse.md +1 -0
  205. package/build/src/third_party/issue-descriptions/federatedAuthUserInfoRequestInvalidConfigOrWellKnown.md +1 -0
  206. package/build/src/third_party/issue-descriptions/federatedAuthUserInfoRequestNoAccountSharingPermission.md +1 -0
  207. package/build/src/third_party/issue-descriptions/federatedAuthUserInfoRequestNoApiPermission.md +1 -0
  208. package/build/src/third_party/issue-descriptions/federatedAuthUserInfoRequestNoReturningUserFromFetchedAccounts.md +1 -0
  209. package/build/src/third_party/issue-descriptions/federatedAuthUserInfoRequestNotIframe.md +1 -0
  210. package/build/src/third_party/issue-descriptions/federatedAuthUserInfoRequestNotPotentiallyTrustworthy.md +1 -0
  211. package/build/src/third_party/issue-descriptions/federatedAuthUserInfoRequestNotSameOrigin.md +1 -0
  212. package/build/src/third_party/issue-descriptions/federatedAuthUserInfoRequestNotSignedInWithIdp.md +1 -0
  213. package/build/src/third_party/issue-descriptions/fetchingPartitionedBlobURL.md +7 -0
  214. package/build/src/third_party/issue-descriptions/genericBackUINavigationWouldSkipAd.md +4 -0
  215. package/build/src/third_party/issue-descriptions/genericFormAriaLabelledByToNonExistingIdError.md +8 -0
  216. package/build/src/third_party/issue-descriptions/genericFormAutocompleteAttributeEmptyError.md +5 -0
  217. package/build/src/third_party/issue-descriptions/genericFormDuplicateIdForInputError.md +5 -0
  218. package/build/src/third_party/issue-descriptions/genericFormEmptyIdAndNameAttributesForInputError.md +5 -0
  219. package/build/src/third_party/issue-descriptions/genericFormInputAssignedAutocompleteValueToIdOrNameAttributeError.md +5 -0
  220. package/build/src/third_party/issue-descriptions/genericFormInputHasWrongButWellIntendedAutocompleteValueError.md +5 -0
  221. package/build/src/third_party/issue-descriptions/genericFormInputWithNoLabelError.md +5 -0
  222. package/build/src/third_party/issue-descriptions/genericFormLabelForMatchesNonExistingIdError.md +5 -0
  223. package/build/src/third_party/issue-descriptions/genericFormLabelForNameError.md +5 -0
  224. package/build/src/third_party/issue-descriptions/genericFormLabelHasNeitherForNorNestedInputError.md +5 -0
  225. package/build/src/third_party/issue-descriptions/genericFormModelContextMissingToolDescription.md +5 -0
  226. package/build/src/third_party/issue-descriptions/genericFormModelContextMissingToolName.md +5 -0
  227. package/build/src/third_party/issue-descriptions/genericFormModelContextParameterMissingName.md +5 -0
  228. package/build/src/third_party/issue-descriptions/genericFormModelContextParameterMissingTitleAndDescription.md +5 -0
  229. package/build/src/third_party/issue-descriptions/genericFormModelContextRequiredParameterMissingName.md +5 -0
  230. package/build/src/third_party/issue-descriptions/genericNavigationEntryMarkedSkippable.md +7 -0
  231. package/build/src/third_party/issue-descriptions/genericResponseWasBlockedByORB.md +4 -0
  232. package/build/src/third_party/issue-descriptions/heavyAd.md +10 -0
  233. package/build/src/third_party/issue-descriptions/mixedContent.md +5 -0
  234. package/build/src/third_party/issue-descriptions/navigatingPartitionedBlobURL.md +5 -0
  235. package/build/src/third_party/issue-descriptions/permissionElementActivationDisabled.md +7 -0
  236. package/build/src/third_party/issue-descriptions/permissionElementActivationDisabledWithOccluder.md +9 -0
  237. package/build/src/third_party/issue-descriptions/permissionElementActivationDisabledWithOccluderParent.md +9 -0
  238. package/build/src/third_party/issue-descriptions/permissionElementCspFrameAncestorsMissing.md +5 -0
  239. package/build/src/third_party/issue-descriptions/permissionElementFencedFrameDisallowed.md +5 -0
  240. package/build/src/third_party/issue-descriptions/permissionElementFontSizeTooLarge.md +5 -0
  241. package/build/src/third_party/issue-descriptions/permissionElementFontSizeTooSmall.md +5 -0
  242. package/build/src/third_party/issue-descriptions/permissionElementGeolocationDeprecated.md +5 -0
  243. package/build/src/third_party/issue-descriptions/permissionElementInsetBoxShadowUnsupported.md +5 -0
  244. package/build/src/third_party/issue-descriptions/permissionElementInvalidDisplayStyle.md +5 -0
  245. package/build/src/third_party/issue-descriptions/permissionElementInvalidSizeValue.md +5 -0
  246. package/build/src/third_party/issue-descriptions/permissionElementInvalidType.md +5 -0
  247. package/build/src/third_party/issue-descriptions/permissionElementInvalidTypeActivation.md +5 -0
  248. package/build/src/third_party/issue-descriptions/permissionElementLowContrast.md +5 -0
  249. package/build/src/third_party/issue-descriptions/permissionElementNonOpaqueColor.md +5 -0
  250. package/build/src/third_party/issue-descriptions/permissionElementPaddingBottomUnsupported.md +6 -0
  251. package/build/src/third_party/issue-descriptions/permissionElementPaddingRightUnsupported.md +6 -0
  252. package/build/src/third_party/issue-descriptions/permissionElementPermissionsPolicyBlocked.md +5 -0
  253. package/build/src/third_party/issue-descriptions/permissionElementRegistrationFailed.md +5 -0
  254. package/build/src/third_party/issue-descriptions/permissionElementRequestInProgress.md +5 -0
  255. package/build/src/third_party/issue-descriptions/permissionElementSecurityChecksFailed.md +5 -0
  256. package/build/src/third_party/issue-descriptions/permissionElementTypeNotSupported.md +5 -0
  257. package/build/src/third_party/issue-descriptions/permissionElementUntrustedEvent.md +7 -0
  258. package/build/src/third_party/issue-descriptions/placeholderDescriptionForInvisibleIssues.md +3 -0
  259. package/build/src/third_party/issue-descriptions/propertyRuleInvalidNameIssue.md +3 -0
  260. package/build/src/third_party/issue-descriptions/propertyRuleIssue.md +7 -0
  261. package/build/src/third_party/issue-descriptions/selectElementAccessibilityDisallowedOptGroupChild.md +7 -0
  262. package/build/src/third_party/issue-descriptions/selectElementAccessibilityDisallowedSelectChild.md +7 -0
  263. package/build/src/third_party/issue-descriptions/selectElementAccessibilityInteractiveContentAttributesSelectDescendant.md +3 -0
  264. package/build/src/third_party/issue-descriptions/selectElementAccessibilityInteractiveContentLegendChild.md +3 -0
  265. package/build/src/third_party/issue-descriptions/selectElementAccessibilityInteractiveContentOptionChild.md +3 -0
  266. package/build/src/third_party/issue-descriptions/selectElementAccessibilityNonPhrasingContentOptionChild.md +3 -0
  267. package/build/src/third_party/issue-descriptions/selectivePermissionsIntervention.md +7 -0
  268. package/build/src/third_party/issue-descriptions/sharedArrayBuffer.md +7 -0
  269. package/build/src/third_party/issue-descriptions/sharedDictionaryUseErrorCrossOriginNoCorsRequest.md +1 -0
  270. package/build/src/third_party/issue-descriptions/sharedDictionaryUseErrorDictionaryLoadFailure.md +3 -0
  271. package/build/src/third_party/issue-descriptions/sharedDictionaryUseErrorMatchingDictionaryNotUsed.md +3 -0
  272. package/build/src/third_party/issue-descriptions/sharedDictionaryUseErrorUnexpectedContentDictionaryHeader.md +1 -0
  273. package/build/src/third_party/issue-descriptions/sharedDictionaryWriteErrorCossOriginNoCorsRequest.md +1 -0
  274. package/build/src/third_party/issue-descriptions/sharedDictionaryWriteErrorDisallowedBySettings.md +1 -0
  275. package/build/src/third_party/issue-descriptions/sharedDictionaryWriteErrorExpiredResponse.md +3 -0
  276. package/build/src/third_party/issue-descriptions/sharedDictionaryWriteErrorFeatureDisabled.md +3 -0
  277. package/build/src/third_party/issue-descriptions/sharedDictionaryWriteErrorInsufficientResources.md +1 -0
  278. package/build/src/third_party/issue-descriptions/sharedDictionaryWriteErrorInvalidMatchField.md +1 -0
  279. package/build/src/third_party/issue-descriptions/sharedDictionaryWriteErrorInvalidStructuredHeader.md +1 -0
  280. package/build/src/third_party/issue-descriptions/sharedDictionaryWriteErrorInvalidTTLField.md +1 -0
  281. package/build/src/third_party/issue-descriptions/sharedDictionaryWriteErrorNavigationRequest.md +3 -0
  282. package/build/src/third_party/issue-descriptions/sharedDictionaryWriteErrorNoMatchField.md +1 -0
  283. package/build/src/third_party/issue-descriptions/sharedDictionaryWriteErrorNonIntegerTTLField.md +1 -0
  284. package/build/src/third_party/issue-descriptions/sharedDictionaryWriteErrorNonListMatchDestField.md +1 -0
  285. package/build/src/third_party/issue-descriptions/sharedDictionaryWriteErrorNonSecureContext.md +3 -0
  286. package/build/src/third_party/issue-descriptions/sharedDictionaryWriteErrorNonStringIdField.md +1 -0
  287. package/build/src/third_party/issue-descriptions/sharedDictionaryWriteErrorNonStringInMatchDestList.md +1 -0
  288. package/build/src/third_party/issue-descriptions/sharedDictionaryWriteErrorNonStringMatchField.md +1 -0
  289. package/build/src/third_party/issue-descriptions/sharedDictionaryWriteErrorNonTokenTypeField.md +1 -0
  290. package/build/src/third_party/issue-descriptions/sharedDictionaryWriteErrorRequestAborted.md +1 -0
  291. package/build/src/third_party/issue-descriptions/sharedDictionaryWriteErrorShuttingDown.md +1 -0
  292. package/build/src/third_party/issue-descriptions/sharedDictionaryWriteErrorTooLongIdField.md +3 -0
  293. package/build/src/third_party/issue-descriptions/sharedDictionaryWriteErrorUnsupportedType.md +3 -0
  294. package/build/src/third_party/issue-descriptions/sriInvalidSignatureHeader.md +14 -0
  295. package/build/src/third_party/issue-descriptions/sriInvalidSignatureInputHeader.md +15 -0
  296. package/build/src/third_party/issue-descriptions/sriMissingSignatureHeader.md +8 -0
  297. package/build/src/third_party/issue-descriptions/sriMissingSignatureInputHeader.md +7 -0
  298. package/build/src/third_party/issue-descriptions/sriSignatureHeaderValueIsIncorrectLength.md +11 -0
  299. package/build/src/third_party/issue-descriptions/sriSignatureHeaderValueIsNotByteSequence.md +14 -0
  300. package/build/src/third_party/issue-descriptions/sriSignatureHeaderValueIsParameterized.md +15 -0
  301. package/build/src/third_party/issue-descriptions/sriSignatureInputHeaderInvalidComponentName.md +8 -0
  302. package/build/src/third_party/issue-descriptions/sriSignatureInputHeaderInvalidComponentType.md +13 -0
  303. package/build/src/third_party/issue-descriptions/sriSignatureInputHeaderInvalidDerivedComponentParameter.md +4 -0
  304. package/build/src/third_party/issue-descriptions/sriSignatureInputHeaderInvalidHeaderComponentParameter.md +5 -0
  305. package/build/src/third_party/issue-descriptions/sriSignatureInputHeaderInvalidParameter.md +11 -0
  306. package/build/src/third_party/issue-descriptions/sriSignatureInputHeaderKeyIdLength.md +12 -0
  307. package/build/src/third_party/issue-descriptions/sriSignatureInputHeaderMissingLabel.md +6 -0
  308. package/build/src/third_party/issue-descriptions/sriSignatureInputHeaderMissingRequiredParameters.md +8 -0
  309. package/build/src/third_party/issue-descriptions/sriSignatureInputHeaderValueMissingComponents.md +11 -0
  310. package/build/src/third_party/issue-descriptions/sriSignatureInputHeaderValueNotInnerList.md +11 -0
  311. package/build/src/third_party/issue-descriptions/sriValidationFailedIntegrityMismatch.md +10 -0
  312. package/build/src/third_party/issue-descriptions/sriValidationFailedInvalidLength.md +5 -0
  313. package/build/src/third_party/issue-descriptions/sriValidationFailedSignatureExpired.md +6 -0
  314. package/build/src/third_party/issue-descriptions/sriValidationFailedSignatureMismatch.md +11 -0
  315. package/build/src/third_party/issue-descriptions/stylesheetLateImport.md +4 -0
  316. package/build/src/third_party/issue-descriptions/stylesheetRequestFailed.md +3 -0
  317. package/build/src/third_party/issue-descriptions/summaryElementAccessibilityInteractiveContentSummaryDescendant.md +3 -0
  318. package/build/src/third_party/issue-descriptions/unencodedDigestIncorrectDigestLength.md +12 -0
  319. package/build/src/third_party/issue-descriptions/unencodedDigestIncorrectDigestType.md +17 -0
  320. package/build/src/third_party/issue-descriptions/unencodedDigestMalformedDictionary.md +14 -0
  321. package/build/src/third_party/issue-descriptions/unencodedDigestUnknownAlgorithm.md +15 -0
  322. package/build/src/third_party/lighthouse-devtools-mcp-bundle.js +61598 -0
  323. package/build/src/tools/ToolDefinition.js +73 -0
  324. package/build/src/tools/categories.js +36 -0
  325. package/build/src/tools/console.js +98 -0
  326. package/build/src/tools/emulation.js +84 -0
  327. package/build/src/tools/extensions.js +101 -0
  328. package/build/src/tools/input.js +469 -0
  329. package/build/src/tools/lighthouse.js +136 -0
  330. package/build/src/tools/memory.js +227 -0
  331. package/build/src/tools/network.js +125 -0
  332. package/build/src/tools/pages.js +419 -0
  333. package/build/src/tools/performance.js +200 -0
  334. package/build/src/tools/screencast.js +117 -0
  335. package/build/src/tools/screenshot.js +169 -0
  336. package/build/src/tools/script.js +151 -0
  337. package/build/src/tools/slim/tools.js +88 -0
  338. package/build/src/tools/snapshot.js +61 -0
  339. package/build/src/tools/thirdPartyDeveloper.js +85 -0
  340. package/build/src/tools/tools.js +56 -0
  341. package/build/src/tools/webmcp.js +66 -0
  342. package/build/src/trace-processing/parse.js +85 -0
  343. package/build/src/types.js +7 -0
  344. package/build/src/utils/check-for-updates.js +74 -0
  345. package/build/src/utils/files.js +61 -0
  346. package/build/src/utils/id.js +16 -0
  347. package/build/src/utils/keyboard.js +297 -0
  348. package/build/src/utils/pagination.js +50 -0
  349. package/build/src/utils/string.js +37 -0
  350. package/build/src/utils/types.js +7 -0
  351. package/build/src/version.js +10 -0
  352. package/package.json +100 -0
  353. package/skills/a11y-debugging/SKILL.md +89 -0
  354. package/skills/a11y-debugging/references/a11y-snippets.md +92 -0
  355. package/skills/chrome-devtools/SKILL.md +72 -0
  356. package/skills/chrome-devtools-cli/SKILL.md +153 -0
  357. package/skills/chrome-devtools-cli/references/installation.md +14 -0
  358. package/skills/debug-optimize-lcp/SKILL.md +121 -0
  359. package/skills/debug-optimize-lcp/references/elements-and-size.md +27 -0
  360. package/skills/debug-optimize-lcp/references/lcp-breakdown.md +23 -0
  361. package/skills/debug-optimize-lcp/references/lcp-snippets.md +79 -0
  362. package/skills/debug-optimize-lcp/references/optimization-strategies.md +38 -0
  363. package/skills/memory-leak-debugging/SKILL.md +50 -0
  364. package/skills/memory-leak-debugging/references/common-leaks.md +33 -0
  365. package/skills/memory-leak-debugging/references/compare_snapshots.js +109 -0
  366. package/skills/memory-leak-debugging/references/memlab.md +29 -0
  367. package/skills/troubleshooting/SKILL.md +98 -0
package/README.md ADDED
@@ -0,0 +1,977 @@
1
+ # Arc DevTools MCP
2
+
3
+ [![npm @gabrielbryk/arc-devtools-mcp package](https://img.shields.io/npm/v/@gabrielbryk/arc-devtools-mcp.svg)](https://npmjs.org/package/@gabrielbryk/arc-devtools-mcp)
4
+
5
+ A fork of [`chrome-devtools-mcp`](https://github.com/ChromeDevTools/chrome-devtools-mcp)
6
+ (Google, Apache-2.0) that adds an **Arc browser** compatibility mode.
7
+
8
+ ## Why this fork
9
+
10
+ Arc crashes when a tab is created programmatically (`Target.createTarget`, which
11
+ `browser.newPage()` triggers). Run with `--arc` and `new_page` instead **reuses an
12
+ existing blank tab** rather than opening one:
13
+
14
+ - Reuses a blank/new tab (`about:blank`, `arc://newtab`, `chrome://newtab/`) and
15
+ loads the URL there.
16
+ - If no blank tab exists, it returns a clear error asking you to open one
17
+ (e.g. `Cmd+T`) — it never navigates one of your loaded tabs away.
18
+ - Without `--arc`, behavior is identical to upstream `chrome-devtools-mcp`.
19
+
20
+ Start Arc with remote debugging (Arc must be fully quit first):
21
+
22
+ ```bash
23
+ /Applications/Arc.app/Contents/MacOS/Arc --remote-debugging-port=9222
24
+ ```
25
+
26
+ MCP config:
27
+
28
+ ```json
29
+ {
30
+ "mcpServers": {
31
+ "arc-devtools": {
32
+ "command": "npx",
33
+ "args": ["-y", "@gabrielbryk/arc-devtools-mcp@latest", "--browserUrl=http://127.0.0.1:9222", "--arc"]
34
+ }
35
+ }
36
+ }
37
+ ```
38
+
39
+ Everything below is from upstream `chrome-devtools-mcp` and applies unchanged.
40
+
41
+ ---
42
+
43
+ # Chrome DevTools for agents
44
+
45
+ Chrome DevTools for agents lets your coding agent (such as Antigravity, Claude, Cursor or Copilot)
46
+ control and inspect a live Chrome browser. It acts as a Model-Context-Protocol
47
+ (MCP) server, giving your AI coding assistant access to the full power of
48
+ Chrome DevTools for reliable automation, in-depth debugging, and performance analysis.
49
+ A [CLI](docs/cli.md) is also provided for use without MCP.
50
+
51
+ ## [Tool reference](./docs/tool-reference.md) | [Changelog](./CHANGELOG.md) | [Contributing](./CONTRIBUTING.md) | [Troubleshooting](./docs/troubleshooting.md) | [Design Principles](./docs/design-principles.md)
52
+
53
+ ## Key features
54
+
55
+ - **Get performance insights**: Uses [Chrome
56
+ DevTools](https://github.com/ChromeDevTools/devtools-frontend) to record
57
+ traces and extract actionable performance insights.
58
+ - **Advanced browser debugging**: Analyze network requests, take screenshots and
59
+ check browser console messages (with source-mapped stack traces).
60
+ - **Reliable automation**. Uses
61
+ [puppeteer](https://github.com/puppeteer/puppeteer) to automate actions in
62
+ Chrome and automatically wait for action results.
63
+
64
+ ## Disclaimers
65
+
66
+ `chrome-devtools-mcp` exposes content of the browser instance to the MCP clients
67
+ allowing them to inspect, debug, and modify any data in the browser or DevTools.
68
+ Avoid sharing sensitive or personal information that you don't want to share with
69
+ MCP clients.
70
+
71
+ `chrome-devtools-mcp` officially supports Google Chrome and [Chrome for Testing](https://developer.chrome.com/blog/chrome-for-testing/) only.
72
+ Other Chromium-based browsers may work, but this is not guaranteed, and you may encounter unexpected behavior. Use at your own discretion.
73
+ We are committed to providing fixes and support for the latest version of [Extended Stable Chrome](https://chromiumdash.appspot.com/schedule).
74
+
75
+ Performance tools may send trace URLs to the Google CrUX API to fetch real-user
76
+ experience data. This helps provide a holistic performance picture by
77
+ presenting field data alongside lab data. This data is collected by the [Chrome
78
+ User Experience Report (CrUX)](https://developer.chrome.com/docs/crux). To disable
79
+ this, run with the `--no-performance-crux` flag.
80
+
81
+ ## **Usage statistics**
82
+
83
+ Google collects usage statistics (such as tool invocation success rates, latency, and environment information) to improve the reliability and performance of Chrome DevTools MCP.
84
+
85
+ Data collection is **enabled by default**. You can opt-out by passing the `--no-usage-statistics` flag when starting the server:
86
+
87
+ ```json
88
+ "args": ["-y", "chrome-devtools-mcp@latest", "--no-usage-statistics"]
89
+ ```
90
+
91
+ Google handles this data in accordance with the [Google Privacy Policy](https://policies.google.com/privacy).
92
+
93
+ Google's collection of usage statistics for Chrome DevTools MCP is independent from the Chrome browser's usage statistics. Opting out of Chrome metrics does not automatically opt you out of this tool, and vice-versa.
94
+
95
+ Collection is disabled if `CHROME_DEVTOOLS_MCP_NO_USAGE_STATISTICS` or `CI` env variables are set.
96
+
97
+ ## Update checks
98
+
99
+ By default, the server periodically checks the npm registry for updates and logs a notification when a newer version is available.
100
+ You can disable these update checks by setting the `CHROME_DEVTOOLS_MCP_NO_UPDATE_CHECKS` environment variable.
101
+
102
+ ## Requirements
103
+
104
+ - [Node.js](https://nodejs.org/) [LTS](https://github.com/nodejs/Release#release-schedule) version.
105
+ - [Chrome](https://www.google.com/chrome/) current stable version or newer.
106
+ - [npm](https://www.npmjs.com/)
107
+
108
+ ## Getting started
109
+
110
+ Add the following config to your MCP client:
111
+
112
+ ```json
113
+ {
114
+ "mcpServers": {
115
+ "chrome-devtools": {
116
+ "command": "npx",
117
+ "args": ["-y", "chrome-devtools-mcp@latest"]
118
+ }
119
+ }
120
+ }
121
+ ```
122
+
123
+ > [!NOTE]
124
+ > Using `chrome-devtools-mcp@latest` ensures that your MCP client will always use the latest version of the Chrome DevTools MCP server.
125
+
126
+ If you are interested in doing only basic browser tasks, use the `--slim` mode:
127
+
128
+ ```json
129
+ {
130
+ "mcpServers": {
131
+ "chrome-devtools": {
132
+ "command": "npx",
133
+ "args": ["-y", "chrome-devtools-mcp@latest", "--slim", "--headless"]
134
+ }
135
+ }
136
+ }
137
+ ```
138
+
139
+ See [Slim tool reference](./docs/slim-tool-reference.md).
140
+
141
+ ### MCP Client configuration
142
+
143
+ <details>
144
+ <summary>Amp</summary>
145
+ Follow https://ampcode.com/manual#mcp and use the config provided above. You can also install the Chrome DevTools MCP server using the CLI:
146
+
147
+ ```bash
148
+ amp mcp add chrome-devtools -- npx chrome-devtools-mcp@latest
149
+ ```
150
+
151
+ </details>
152
+
153
+ <details>
154
+ <summary>Antigravity</summary>
155
+
156
+ To use the Chrome DevTools MCP server follow the instructions from <a href="https://antigravity.google/docs/mcp">Antigravity's docs</a> to install a custom MCP server. Add the following config to the MCP servers config:
157
+
158
+ ```bash
159
+ {
160
+ "mcpServers": {
161
+ "chrome-devtools": {
162
+ "command": "npx",
163
+ "args": [
164
+ "chrome-devtools-mcp@latest",
165
+ "--browser-url=http://127.0.0.1:9222",
166
+ "-y"
167
+ ]
168
+ }
169
+ }
170
+ }
171
+ ```
172
+
173
+ This will make the Chrome DevTools MCP server automatically connect to the browser that Antigravity is using. If you are not using port 9222, make sure to adjust accordingly.
174
+
175
+ Chrome DevTools MCP will not start the browser instance automatically using this approach because the Chrome DevTools MCP server connects to Antigravity's built-in browser. If the browser is not already running, you have to start it first by clicking the Chrome icon at the top right corner.
176
+
177
+ </details>
178
+
179
+ <details>
180
+ <summary>Claude Code</summary>
181
+
182
+ **Install via CLI (MCP only)**
183
+
184
+ Use the Claude Code CLI to add the Chrome DevTools MCP server (<a href="https://code.claude.com/docs/en/mcp">guide</a>):
185
+
186
+ ```bash
187
+ claude mcp add chrome-devtools --scope user npx chrome-devtools-mcp@latest
188
+ ```
189
+
190
+ **Install as a Plugin (MCP + Skills)**
191
+
192
+ > [!NOTE]
193
+ > If you already had Chrome DevTools MCP installed previously for Claude Code, make sure to remove it first from your installation and configuration files.
194
+
195
+ To install Chrome DevTools MCP with skills, add the marketplace registry in Claude Code:
196
+
197
+ ```sh
198
+ /plugin marketplace add ChromeDevTools/chrome-devtools-mcp
199
+ ```
200
+
201
+ Then, install the plugin:
202
+
203
+ ```sh
204
+ /plugin install chrome-devtools-mcp@chrome-devtools-plugins
205
+ ```
206
+
207
+ Restart Claude Code to have the MCP server and skills load (check with `/skills`).
208
+
209
+ > [!TIP]
210
+ > If the plugin installation fails with a `Failed to clone repository` error (e.g., HTTPS connectivity issues behind a corporate firewall), see the [troubleshooting guide](./docs/troubleshooting.md#claude-code-plugin-installation-fails-with-failed-to-clone-repository) for workarounds, or use the CLI installation method above instead.
211
+
212
+ </details>
213
+
214
+ <details>
215
+ <summary>Cline</summary>
216
+ Follow https://docs.cline.bot/mcp/configuring-mcp-servers and use the config provided above.
217
+ </details>
218
+
219
+ <details>
220
+ <summary>Codex</summary>
221
+ Follow the <a href="https://developers.openai.com/codex/mcp/#configure-with-the-cli">configure MCP guide</a>
222
+ using the standard config from above. You can also install the Chrome DevTools MCP server using the Codex CLI:
223
+
224
+ ```bash
225
+ codex mcp add chrome-devtools -- npx chrome-devtools-mcp@latest
226
+ ```
227
+
228
+ **On Windows 11**
229
+
230
+ Configure the Chrome install location and increase the startup timeout by updating `.codex/config.toml` and adding the following `env` and `startup_timeout_ms` parameters:
231
+
232
+ ```
233
+ [mcp_servers.chrome-devtools]
234
+ command = "cmd"
235
+ args = [
236
+ "/c",
237
+ "npx",
238
+ "-y",
239
+ "chrome-devtools-mcp@latest",
240
+ ]
241
+ env = { SystemRoot="C:\\Windows", PROGRAMFILES="C:\\Program Files" }
242
+ startup_timeout_ms = 20_000
243
+ ```
244
+
245
+ </details>
246
+
247
+ <details>
248
+ <summary>Command Code</summary>
249
+
250
+ Use the Command Code CLI to add the Chrome DevTools MCP server (<a href="https://commandcode.ai/docs/mcp">MCP guide</a>):
251
+
252
+ ```bash
253
+ cmd mcp add chrome-devtools --scope user npx chrome-devtools-mcp@latest
254
+ ```
255
+
256
+ </details>
257
+
258
+ <details>
259
+ <summary>Copilot CLI</summary>
260
+
261
+ Start Copilot CLI:
262
+
263
+ ```
264
+ copilot
265
+ ```
266
+
267
+ Start the dialog to add a new MCP server by running:
268
+
269
+ ```
270
+ /mcp add
271
+ ```
272
+
273
+ Configure the following fields and press `CTRL+S` to save the configuration:
274
+
275
+ - **Server name:** `chrome-devtools`
276
+ - **Server Type:** `[1] Local`
277
+ - **Command:** `npx -y chrome-devtools-mcp@latest`
278
+
279
+ </details>
280
+
281
+ <details>
282
+ <summary>Copilot / VS Code</summary>
283
+
284
+ **Install as a Plugin (Recommended)**
285
+
286
+ The easiest way to get up and running is to install `chrome-devtools-mcp` as an agent plugin.
287
+ This bundles the **MCP server** and all **skills** together, so your agent gets both the tools
288
+ and the expert guidance it needs to use them effectively.
289
+
290
+ 1. Open the **Command Palette** (`Cmd+Shift+P` on macOS or `Ctrl+Shift+P` on Windows/Linux).
291
+ 2. Search for and run the **Chat: Install Plugin From Source** command.
292
+ 3. Paste in our repository name: `ChromeDevTools/chrome-devtools-mcp`.
293
+
294
+ That's it! Your agent is now supercharged with Chrome DevTools capabilities.
295
+
296
+ ---
297
+
298
+ **Install as an MCP Server (MCP only)**
299
+
300
+ **Click the button to install:**
301
+
302
+ [<img src="https://img.shields.io/badge/VS_Code-VS_Code?style=flat-square&label=Install%20Server&color=0098FF" alt="Install in VS Code">](https://vscode.dev/redirect/mcp/install?name=io.github.ChromeDevTools%2Fchrome-devtools-mcp&config=%7B%22command%22%3A%22npx%22%2C%22args%22%3A%5B%22-y%22%2C%22chrome-devtools-mcp%22%5D%2C%22env%22%3A%7B%7D%7D)
303
+
304
+ [<img src="https://img.shields.io/badge/VS_Code_Insiders-VS_Code_Insiders?style=flat-square&label=Install%20Server&color=24bfa5" alt="Install in VS Code Insiders">](https://insiders.vscode.dev/redirect?url=vscode-insiders%3Amcp%2Finstall%3F%257B%2522name%2522%253A%2522io.github.ChromeDevTools%252Fchrome-devtools-mcp%2522%252C%2522config%2522%253A%257B%2522command%2522%253A%2522npx%2522%252C%2522args%2522%253A%255B%2522-y%2522%252C%2522chrome-devtools-mcp%2522%255D%252C%2522env%2522%253A%257B%257D%257D%257D)
305
+
306
+ **Or install manually:**
307
+
308
+ Follow the VS Code [MCP configuration guide](https://code.visualstudio.com/docs/copilot/chat/mcp-servers#_add-an-mcp-server) using the standard config from above, or use the CLI:
309
+
310
+ For macOS and Linux:
311
+
312
+ ```bash
313
+ code --add-mcp '{"name":"io.github.ChromeDevTools/chrome-devtools-mcp","command":"npx","args":["-y","chrome-devtools-mcp"],"env":{}}'
314
+ ```
315
+
316
+ For Windows (PowerShell):
317
+
318
+ ```powershell
319
+ code --add-mcp '{"""name""":"""io.github.ChromeDevTools/chrome-devtools-mcp""","""command""":"""npx""","""args""":["""-y""","""chrome-devtools-mcp"""]}'
320
+ ```
321
+
322
+ </details>
323
+
324
+ <details>
325
+ <summary>Cursor</summary>
326
+
327
+ **Click the button to install:**
328
+
329
+ [<img src="https://cursor.com/deeplink/mcp-install-dark.svg" alt="Install in Cursor">](https://cursor.com/en/install-mcp?name=chrome-devtools&config=eyJjb21tYW5kIjoibnB4IC15IGNocm9tZS1kZXZ0b29scy1tY3BAbGF0ZXN0In0%3D)
330
+
331
+ **Or install manually:**
332
+
333
+ Go to `Cursor Settings` -> `MCP` -> `New MCP Server`. Use the config provided above.
334
+
335
+ </details>
336
+
337
+ <details>
338
+ <summary>Factory CLI</summary>
339
+ Use the Factory CLI to add the Chrome DevTools MCP server (<a href="https://docs.factory.ai/cli/configuration/mcp">guide</a>):
340
+
341
+ ```bash
342
+ droid mcp add chrome-devtools "npx -y chrome-devtools-mcp@latest"
343
+ ```
344
+
345
+ </details>
346
+
347
+ <details>
348
+ <summary>Gemini CLI</summary>
349
+ Install the Chrome DevTools MCP server using the Gemini CLI.
350
+
351
+ **Project wide:**
352
+
353
+ ```bash
354
+ # Either MCP only:
355
+ gemini mcp add chrome-devtools npx chrome-devtools-mcp@latest
356
+ # Or as a Gemini extension (MCP+Skills):
357
+ gemini extensions install --auto-update https://github.com/ChromeDevTools/chrome-devtools-mcp
358
+ ```
359
+
360
+ **Globally:**
361
+
362
+ ```bash
363
+ gemini mcp add -s user chrome-devtools npx chrome-devtools-mcp@latest
364
+ ```
365
+
366
+ Alternatively, follow the <a href="https://github.com/google-gemini/gemini-cli/blob/main/docs/tools/mcp-server.md#how-to-set-up-your-mcp-server">MCP guide</a> and use the standard config from above.
367
+
368
+ </details>
369
+
370
+ <details>
371
+ <summary>Gemini Code Assist</summary>
372
+ Follow the <a href="https://cloud.google.com/gemini/docs/codeassist/use-agentic-chat-pair-programmer#configure-mcp-servers">configure MCP guide</a>
373
+ using the standard config from above.
374
+ </details>
375
+
376
+ <details>
377
+ <summary>JetBrains AI Assistant & Junie</summary>
378
+
379
+ Go to `Settings | Tools | AI Assistant | Model Context Protocol (MCP)` -> `Add`. Use the config provided above.
380
+ The same way chrome-devtools-mcp can be configured for JetBrains Junie in `Settings | Tools | Junie | MCP Settings` -> `Add`. Use the config provided above.
381
+
382
+ </details>
383
+
384
+ <details>
385
+ <summary>Kiro</summary>
386
+
387
+ In **Kiro Settings**, go to `Configure MCP` > `Open Workspace or User MCP Config` > Use the configuration snippet provided above.
388
+
389
+ Or, from the IDE **Activity Bar** > `Kiro` > `MCP Servers` > `Click Open MCP Config`. Use the configuration snippet provided above.
390
+
391
+ </details>
392
+
393
+ <details>
394
+ <summary>Katalon Studio</summary>
395
+
396
+ The Chrome DevTools MCP server can be used with <a href="https://docs.katalon.com/katalon-studio/studioassist/mcp-servers/setting-up-chrome-devtools-mcp-server-for-studioassist">Katalon StudioAssist</a> via an MCP proxy.
397
+
398
+ **Step 1:** Install the MCP proxy by following the <a href="https://docs.katalon.com/katalon-studio/studioassist/mcp-servers/setting-up-mcp-proxy-for-stdio-mcp-servers">MCP proxy setup guide</a>.
399
+
400
+ **Step 2:** Start the Chrome DevTools MCP server with the proxy:
401
+
402
+ ```bash
403
+ mcp-proxy --transport streamablehttp --port 8080 -- npx -y chrome-devtools-mcp@latest
404
+ ```
405
+
406
+ **Note:** You may need to pick another port if 8080 is already in use.
407
+
408
+ **Step 3:** In Katalon Studio, add the server to StudioAssist with the following settings:
409
+
410
+ - **Connection URL:** `http://127.0.0.1:8080/mcp`
411
+ - **Transport type:** `HTTP`
412
+
413
+ Once connected, the Chrome DevTools MCP tools will be available in StudioAssist.
414
+
415
+ </details>
416
+
417
+ <details>
418
+ <summary>Mistral Vibe</summary>
419
+
420
+ Add in ~/.vibe/config.toml:
421
+
422
+ ```toml
423
+ [[mcp_servers]]
424
+ name = "chrome-devtools"
425
+ transport = "stdio"
426
+ command = "npx"
427
+ args = ["chrome-devtools-mcp@latest"]
428
+ ```
429
+
430
+ </details>
431
+
432
+ <details>
433
+ <summary>OpenCode</summary>
434
+
435
+ Add the following configuration to your `opencode.json` file. If you don't have one, create it at `~/.config/opencode/opencode.json` (<a href="https://opencode.ai/docs/mcp-servers">guide</a>):
436
+
437
+ ```json
438
+ {
439
+ "$schema": "https://opencode.ai/config.json",
440
+ "mcp": {
441
+ "chrome-devtools": {
442
+ "type": "local",
443
+ "command": ["npx", "-y", "chrome-devtools-mcp@latest"]
444
+ }
445
+ }
446
+ }
447
+ ```
448
+
449
+ </details>
450
+
451
+ <details>
452
+ <summary>Qoder</summary>
453
+
454
+ In **Qoder Settings**, go to `MCP Server` > `+ Add` > Use the configuration snippet provided above.
455
+
456
+ Alternatively, follow the <a href="https://docs.qoder.com/user-guide/chat/model-context-protocol">MCP guide</a> and use the standard config from above.
457
+
458
+ </details>
459
+
460
+ <details>
461
+ <summary>Qoder CLI</summary>
462
+
463
+ Install the Chrome DevTools MCP server using the Qoder CLI (<a href="https://docs.qoder.com/cli/using-cli#mcp-servers">guide</a>):
464
+
465
+ **Project wide:**
466
+
467
+ ```bash
468
+ qodercli mcp add chrome-devtools -- npx chrome-devtools-mcp@latest
469
+ ```
470
+
471
+ **Globally:**
472
+
473
+ ```bash
474
+ qodercli mcp add -s user chrome-devtools -- npx chrome-devtools-mcp@latest
475
+ ```
476
+
477
+ </details>
478
+
479
+ <details>
480
+ <summary>Visual Studio</summary>
481
+
482
+ **Click the button to install:**
483
+
484
+ [<img src="https://img.shields.io/badge/Visual_Studio-Install-C16FDE?logo=visualstudio&logoColor=white" alt="Install in Visual Studio">](https://vs-open.link/mcp-install?%7B%22name%22%3A%22chrome-devtools%22%2C%22command%22%3A%22npx%22%2C%22args%22%3A%5B%22chrome-devtools-mcp%40latest%22%5D%7D)
485
+
486
+ </details>
487
+
488
+ <details>
489
+ <summary>Warp</summary>
490
+
491
+ Go to `Settings | AI | Manage MCP Servers` -> `+ Add` to [add an MCP Server](https://docs.warp.dev/knowledge-and-collaboration/mcp#adding-an-mcp-server). Use the config provided above.
492
+
493
+ </details>
494
+
495
+ <details>
496
+ <summary>Windsurf</summary>
497
+ Follow the <a href="https://docs.windsurf.com/windsurf/cascade/mcp#mcp-config-json">configure MCP guide</a>
498
+ using the standard config from above.
499
+ </details>
500
+
501
+ ### Your first prompt
502
+
503
+ Enter the following prompt in your MCP Client to check if everything is working:
504
+
505
+ ```
506
+ Check the performance of https://developers.chrome.com
507
+ ```
508
+
509
+ Your MCP client should open the browser and record a performance trace.
510
+
511
+ > [!NOTE]
512
+ > The MCP server will start the browser automatically once the MCP client uses a tool that requires a running browser instance. Connecting to the Chrome DevTools MCP server on its own will not automatically start the browser.
513
+
514
+ ## Tools
515
+
516
+ If you run into any issues, checkout our [troubleshooting guide](./docs/troubleshooting.md).
517
+
518
+ <!-- BEGIN AUTO GENERATED TOOLS -->
519
+
520
+ - **Input automation** (10 tools)
521
+ - [`click`](docs/tool-reference.md#click)
522
+ - [`drag`](docs/tool-reference.md#drag)
523
+ - [`fill`](docs/tool-reference.md#fill)
524
+ - [`fill_form`](docs/tool-reference.md#fill_form)
525
+ - [`handle_dialog`](docs/tool-reference.md#handle_dialog)
526
+ - [`hover`](docs/tool-reference.md#hover)
527
+ - [`press_key`](docs/tool-reference.md#press_key)
528
+ - [`type_text`](docs/tool-reference.md#type_text)
529
+ - [`upload_file`](docs/tool-reference.md#upload_file)
530
+ - [`click_at`](docs/tool-reference.md#click_at)
531
+ - **Navigation automation** (6 tools)
532
+ - [`close_page`](docs/tool-reference.md#close_page)
533
+ - [`list_pages`](docs/tool-reference.md#list_pages)
534
+ - [`navigate_page`](docs/tool-reference.md#navigate_page)
535
+ - [`new_page`](docs/tool-reference.md#new_page)
536
+ - [`select_page`](docs/tool-reference.md#select_page)
537
+ - [`wait_for`](docs/tool-reference.md#wait_for)
538
+ - **Emulation** (2 tools)
539
+ - [`emulate`](docs/tool-reference.md#emulate)
540
+ - [`resize_page`](docs/tool-reference.md#resize_page)
541
+ - **Performance** (3 tools)
542
+ - [`performance_analyze_insight`](docs/tool-reference.md#performance_analyze_insight)
543
+ - [`performance_start_trace`](docs/tool-reference.md#performance_start_trace)
544
+ - [`performance_stop_trace`](docs/tool-reference.md#performance_stop_trace)
545
+ - **Network** (2 tools)
546
+ - [`get_network_request`](docs/tool-reference.md#get_network_request)
547
+ - [`list_network_requests`](docs/tool-reference.md#list_network_requests)
548
+ - **Debugging** (8 tools)
549
+ - [`evaluate_script`](docs/tool-reference.md#evaluate_script)
550
+ - [`get_console_message`](docs/tool-reference.md#get_console_message)
551
+ - [`lighthouse_audit`](docs/tool-reference.md#lighthouse_audit)
552
+ - [`list_console_messages`](docs/tool-reference.md#list_console_messages)
553
+ - [`take_screenshot`](docs/tool-reference.md#take_screenshot)
554
+ - [`take_snapshot`](docs/tool-reference.md#take_snapshot)
555
+ - [`screencast_start`](docs/tool-reference.md#screencast_start)
556
+ - [`screencast_stop`](docs/tool-reference.md#screencast_stop)
557
+ - **Memory** (9 tools)
558
+ - [`take_heapsnapshot`](docs/tool-reference.md#take_heapsnapshot)
559
+ - [`close_heapsnapshot`](docs/tool-reference.md#close_heapsnapshot)
560
+ - [`get_heapsnapshot_class_nodes`](docs/tool-reference.md#get_heapsnapshot_class_nodes)
561
+ - [`get_heapsnapshot_details`](docs/tool-reference.md#get_heapsnapshot_details)
562
+ - [`get_heapsnapshot_dominators`](docs/tool-reference.md#get_heapsnapshot_dominators)
563
+ - [`get_heapsnapshot_edges`](docs/tool-reference.md#get_heapsnapshot_edges)
564
+ - [`get_heapsnapshot_retainers`](docs/tool-reference.md#get_heapsnapshot_retainers)
565
+ - [`get_heapsnapshot_retaining_paths`](docs/tool-reference.md#get_heapsnapshot_retaining_paths)
566
+ - [`get_heapsnapshot_summary`](docs/tool-reference.md#get_heapsnapshot_summary)
567
+ - **Extensions** (5 tools)
568
+ - [`install_extension`](docs/tool-reference.md#install_extension)
569
+ - [`list_extensions`](docs/tool-reference.md#list_extensions)
570
+ - [`reload_extension`](docs/tool-reference.md#reload_extension)
571
+ - [`trigger_extension_action`](docs/tool-reference.md#trigger_extension_action)
572
+ - [`uninstall_extension`](docs/tool-reference.md#uninstall_extension)
573
+ - **Third-party** (2 tools)
574
+ - [`execute_3p_developer_tool`](docs/tool-reference.md#execute_3p_developer_tool)
575
+ - [`list_3p_developer_tools`](docs/tool-reference.md#list_3p_developer_tools)
576
+ - **WebMCP** (2 tools)
577
+ - [`execute_webmcp_tool`](docs/tool-reference.md#execute_webmcp_tool)
578
+ - [`list_webmcp_tools`](docs/tool-reference.md#list_webmcp_tools)
579
+
580
+ <!-- END AUTO GENERATED TOOLS -->
581
+
582
+ ## Configuration
583
+
584
+ The Chrome DevTools MCP server supports the following configuration option:
585
+
586
+ <!-- BEGIN AUTO GENERATED OPTIONS -->
587
+
588
+ - **`--autoConnect`/ `--auto-connect`**
589
+ If specified, automatically connects to a browser (Chrome 144+) running locally from the user data directory identified by the channel param (default channel is stable). Requires the remote debugging server to be started in the Chrome instance via chrome://inspect/#remote-debugging.
590
+ - **Type:** boolean
591
+ - **Default:** `false`
592
+
593
+ - **`--browserUrl`/ `--browser-url`, `-u`**
594
+ Connect to a running, debuggable Chrome instance (e.g. `http://127.0.0.1:9222`). For more details see: https://github.com/ChromeDevTools/chrome-devtools-mcp#connecting-to-a-running-chrome-instance.
595
+ - **Type:** string
596
+
597
+ - **`--wsEndpoint`/ `--ws-endpoint`, `-w`**
598
+ WebSocket endpoint to connect to a running Chrome instance (e.g., ws://127.0.0.1:9222/devtools/browser/<id>). Alternative to --browserUrl.
599
+ - **Type:** string
600
+
601
+ - **`--wsHeaders`/ `--ws-headers`**
602
+ Custom headers for WebSocket connection in JSON format (e.g., '{"Authorization":"Bearer token"}'). Only works with --wsEndpoint.
603
+ - **Type:** string
604
+
605
+ - **`--headless`**
606
+ Whether to run in headless (no UI) mode.
607
+ - **Type:** boolean
608
+ - **Default:** `false`
609
+
610
+ - **`--executablePath`/ `--executable-path`, `-e`**
611
+ Path to custom Chrome executable.
612
+ - **Type:** string
613
+
614
+ - **`--isolated`**
615
+ If specified, creates a temporary user-data-dir that is automatically cleaned up after the browser is closed. Defaults to false.
616
+ - **Type:** boolean
617
+
618
+ - **`--userDataDir`/ `--user-data-dir`**
619
+ Path to the user data directory for Chrome. Default is $HOME/.cache/chrome-devtools-mcp/chrome-profile$CHANNEL_SUFFIX_IF_NON_STABLE
620
+ - **Type:** string
621
+
622
+ - **`--channel`**
623
+ Specify a different Chrome channel that should be used. The default is the stable channel version.
624
+ - **Type:** string
625
+ - **Choices:** `canary`, `dev`, `beta`, `stable`
626
+
627
+ - **`--logFile`/ `--log-file`**
628
+ Path to a file to write debug logs to. Set the env variable `DEBUG` to `*` to enable verbose logs. Useful for submitting bug reports.
629
+ - **Type:** string
630
+
631
+ - **`--viewport`**
632
+ Initial viewport size for the Chrome instances started by the server. For example, `1280x720`. In headless mode, max size is 3840x2160px.
633
+ - **Type:** string
634
+
635
+ - **`--proxyServer`/ `--proxy-server`**
636
+ Proxy server configuration for Chrome passed as --proxy-server when launching the browser. See https://www.chromium.org/developers/design-documents/network-settings/ for details.
637
+ - **Type:** string
638
+
639
+ - **`--acceptInsecureCerts`/ `--accept-insecure-certs`**
640
+ If enabled, ignores errors relative to self-signed and expired certificates. Use with caution.
641
+ - **Type:** boolean
642
+
643
+ - **`--experimentalPageIdRouting`/ `--experimental-page-id-routing`**
644
+ Whether to expose pageId on page-scoped tools and route requests by page ID (useful for concurrent agent sessions).
645
+ - **Type:** boolean
646
+
647
+ - **`--experimentalDevtools`/ `--experimental-devtools`**
648
+ Whether to enable automation over DevTools targets
649
+ - **Type:** boolean
650
+
651
+ - **`--experimentalVision`/ `--experimental-vision`**
652
+ Whether to enable coordinate-based tools such as click_at(x,y). Usually requires a computer-use model able to produce accurate coordinates by looking at screenshots.
653
+ - **Type:** boolean
654
+
655
+ - **`--memoryDebugging`/ `--memory-debugging`, `-experimentalMemory`**
656
+ Whether to enable memory debugging tools.
657
+ - **Type:** boolean
658
+
659
+ - **`--experimentalStructuredContent`/ `--experimental-structured-content`**
660
+ Whether to output structured formatted content.
661
+ - **Type:** boolean
662
+
663
+ - **`--experimentalIncludeAllPages`/ `--experimental-include-all-pages`**
664
+ Whether to include all kinds of pages such as webviews or background pages as pages.
665
+ - **Type:** boolean
666
+
667
+ - **`--experimentalScreencast`/ `--experimental-screencast`**
668
+ Exposes experimental screencast tools (requires ffmpeg). Install ffmpeg https://www.ffmpeg.org/download.html and ensure it is available in the MCP server PATH.
669
+ - **Type:** boolean
670
+
671
+ - **`--experimentalFfmpegPath`/ `--experimental-ffmpeg-path`**
672
+ Path to ffmpeg executable for screencast recording.
673
+ - **Type:** string
674
+
675
+ - **`--categoryExperimentalWebmcp`/ `--category-experimental-webmcp`**
676
+ Set to true to enable debugging WebMCP tools. Requires Chrome 149+ with the following flags: `--enable-features=WebMCP,DevToolsWebMCPSupport`
677
+ - **Type:** boolean
678
+
679
+ - **`--chromeArg`/ `--chrome-arg`**
680
+ Additional arguments for Chrome. Only applies when Chrome is launched by chrome-devtools-mcp.
681
+ - **Type:** array
682
+
683
+ - **`--blockedUrlPattern`/ `--blocked-url-pattern`**
684
+ Restricts network access by blocking specified URL patterns (uses https://urlpattern.spec.whatwg.org/). Silently detaches from targets with blocked URLs upon connection, and blocks runtime requests (including navigations and subresources). Accepts an array of patterns.
685
+ - **Type:** array
686
+
687
+ - **`--allowedUrlPattern`/ `--allowed-url-pattern`**
688
+ Restricts network access by allowing only specified URL patterns (uses https://urlpattern.spec.whatwg.org/). Requires Chrome 149+. Silently detaches from targets with unallowed URLs upon connection, and blocks runtime requests (including navigations and subresources). Accepts an array of patterns.
689
+ - **Type:** array
690
+
691
+ - **`--ignoreDefaultChromeArg`/ `--ignore-default-chrome-arg`**
692
+ Explicitly disable default arguments for Chrome. Only applies when Chrome is launched by chrome-devtools-mcp.
693
+ - **Type:** array
694
+
695
+ - **`--categoryEmulation`/ `--category-emulation`**
696
+ Set to false to exclude tools related to emulation.
697
+ - **Type:** boolean
698
+ - **Default:** `true`
699
+
700
+ - **`--categoryPerformance`/ `--category-performance`**
701
+ Set to false to exclude tools related to performance.
702
+ - **Type:** boolean
703
+ - **Default:** `true`
704
+
705
+ - **`--categoryNetwork`/ `--category-network`**
706
+ Set to false to exclude tools related to network.
707
+ - **Type:** boolean
708
+ - **Default:** `true`
709
+
710
+ - **`--categoryExtensions`/ `--category-extensions`**
711
+ Set to true to include tools related to extensions. Note: This feature is currently only supported with a pipe connection. autoConnect, browserUrl, and wsEndpoint are not supported with this feature until 149 will be released.
712
+ - **Type:** boolean
713
+ - **Default:** `false`
714
+
715
+ - **`--categoryExperimentalThirdParty`/ `--category-experimental-third-party`**
716
+ Set to true to enable third-party developer tools exposed by the inspected page itself
717
+ - **Type:** boolean
718
+ - **Default:** `false`
719
+
720
+ - **`--performanceCrux`/ `--performance-crux`**
721
+ Set to false to disable sending URLs from performance traces to CrUX API to get field performance data.
722
+ - **Type:** boolean
723
+ - **Default:** `true`
724
+
725
+ - **`--usageStatistics`/ `--usage-statistics`**
726
+ Set to false to opt-out of usage statistics collection. Google collects usage data to improve the tool, handled under the Google Privacy Policy (https://policies.google.com/privacy). This is independent from Chrome browser metrics. Disabled if `CHROME_DEVTOOLS_MCP_NO_USAGE_STATISTICS` or `CI` env variables are set.
727
+ - **Type:** boolean
728
+ - **Default:** `true`
729
+
730
+ - **`--screenshotFormat`/ `--screenshot-format`**
731
+ Override the default output format used by take_screenshot when the caller does not specify one. JPEG and WebP are ~3-5x smaller than PNG, which helps reduce context size in AI conversations. Unset preserves the existing default ("png").
732
+ - **Type:** string
733
+ - **Choices:** `jpeg`, `png`, `webp`
734
+
735
+ - **`--screenshotQuality`/ `--screenshot-quality`**
736
+ Override the default compression quality (0-100) used by take_screenshot for JPEG and WebP when the caller does not specify one. Lower values mean smaller files. Ignored for PNG. Unset preserves the Puppeteer default.
737
+ - **Type:** number
738
+
739
+ - **`--screenshotMaxWidth`/ `--screenshot-max-width`**
740
+ Maximum width in pixels for screenshots. If the captured image is wider, it is downscaled (preserving aspect ratio) before being returned. Reduces context size in AI conversations. Unset means no resize.
741
+ - **Type:** number
742
+
743
+ - **`--screenshotMaxHeight`/ `--screenshot-max-height`**
744
+ Maximum height in pixels for screenshots. If the captured image is taller, it is downscaled (preserving aspect ratio) before being returned. Can be combined with --screenshot-max-width; the smaller scale factor wins. Unset means no resize.
745
+ - **Type:** number
746
+
747
+ - **`--slim`**
748
+ Exposes a "slim" set of 3 tools covering navigation, script execution and screenshots only. Useful for basic browser tasks.
749
+ - **Type:** boolean
750
+
751
+ - **`--redactNetworkHeaders`/ `--redact-network-headers`**
752
+ If true, redacts some of the network headers considered sensitive before returning to the client.
753
+ - **Type:** boolean
754
+ - **Default:** `false`
755
+
756
+ <!-- END AUTO GENERATED OPTIONS -->
757
+
758
+ Pass them via the `args` property in the JSON configuration. For example:
759
+
760
+ ```json
761
+ {
762
+ "mcpServers": {
763
+ "chrome-devtools": {
764
+ "command": "npx",
765
+ "args": [
766
+ "chrome-devtools-mcp@latest",
767
+ "--channel=canary",
768
+ "--headless=true",
769
+ "--isolated=true"
770
+ ]
771
+ }
772
+ }
773
+ }
774
+ ```
775
+
776
+ ### Connecting via WebSocket with custom headers
777
+
778
+ You can connect directly to a Chrome WebSocket endpoint and include custom headers (e.g., for authentication):
779
+
780
+ ```json
781
+ {
782
+ "mcpServers": {
783
+ "chrome-devtools": {
784
+ "command": "npx",
785
+ "args": [
786
+ "chrome-devtools-mcp@latest",
787
+ "--wsEndpoint=ws://127.0.0.1:9222/devtools/browser/<id>",
788
+ "--wsHeaders={\"Authorization\":\"Bearer YOUR_TOKEN\"}"
789
+ ]
790
+ }
791
+ }
792
+ }
793
+ ```
794
+
795
+ To get the WebSocket endpoint from a running Chrome instance, visit `http://127.0.0.1:9222/json/version` and look for the `webSocketDebuggerUrl` field.
796
+
797
+ You can also run `npx chrome-devtools-mcp@latest --help` to see all available configuration options.
798
+
799
+ ## Concepts
800
+
801
+ ### Concurrent sessions
802
+
803
+ Most MCP clients start one Chrome DevTools MCP server per conversation. If your
804
+ client shares a single server instance across concurrent agents or subagents,
805
+ start the server with `--experimentalPageIdRouting`. This exposes `pageId` on
806
+ page-scoped tools so each agent can route tool calls to the tab it is working
807
+ with.
808
+
809
+ ```json
810
+ {
811
+ "mcpServers": {
812
+ "chrome-devtools": {
813
+ "command": "npx",
814
+ "args": [
815
+ "-y",
816
+ "chrome-devtools-mcp@latest",
817
+ "--experimentalPageIdRouting"
818
+ ]
819
+ }
820
+ }
821
+ }
822
+ ```
823
+
824
+ If you run multiple independent MCP client sessions and want each session to
825
+ launch its own temporary Chrome profile, also pass `--isolated`. This avoids
826
+ sharing the default Chrome DevTools MCP user data directory between those
827
+ server instances.
828
+
829
+ ### User data directory
830
+
831
+ `chrome-devtools-mcp` starts a Chrome's stable channel instance using the following user
832
+ data directory:
833
+
834
+ - Linux / macOS: `$HOME/.cache/chrome-devtools-mcp/chrome-profile-$CHANNEL`
835
+ - Windows: `%HOMEPATH%/.cache/chrome-devtools-mcp/chrome-profile-$CHANNEL`
836
+
837
+ The user data directory is not cleared between runs and shared across
838
+ all instances of `chrome-devtools-mcp`. Set the `isolated` option to `true`
839
+ to use a temporary user data dir instead which will be cleared automatically after
840
+ the browser is closed.
841
+
842
+ ### Connecting to a running Chrome instance
843
+
844
+ By default, the Chrome DevTools MCP server will start a new Chrome instance with a dedicated profile. This might not be ideal in all situations:
845
+
846
+ - If you would like to maintain the same application state when alternating between manual site testing and agent-driven testing.
847
+ - When the MCP needs to sign into a website. Some accounts may prevent sign-in when the browser is controlled via WebDriver (the default launch mechanism for the Chrome DevTools MCP server).
848
+ - If you're running your LLM inside a sandboxed environment, but you would like to connect to a Chrome instance that runs outside the sandbox.
849
+
850
+ In these cases, start Chrome first and let the Chrome DevTools MCP server connect to it. There are two ways to do so:
851
+
852
+ - **Automatic connection (available in Chrome 144)**: best for sharing state between manual and agent-driven testing.
853
+ - **Manual connection via remote debugging port**: best when running inside a sandboxed environment.
854
+
855
+ #### Automatically connecting to a running Chrome instance
856
+
857
+ **Step 1:** Set up remote debugging in Chrome
858
+
859
+ In Chrome (\>= M144), do the following to set up remote debugging:
860
+
861
+ 1. Navigate to `chrome://inspect/#remote-debugging` to enable remote debugging.
862
+ 2. Follow the dialog UI to allow or disallow incoming debugging connections.
863
+
864
+ **Step 2:** Configure Chrome DevTools MCP server to automatically connect to a running Chrome Instance
865
+
866
+ To connect the `chrome-devtools-mcp` server to the running Chrome instance, use
867
+ `--autoConnect` command line argument for the MCP server.
868
+
869
+ The following code snippet is an example configuration for gemini-cli:
870
+
871
+ ```json
872
+ {
873
+ "mcpServers": {
874
+ "chrome-devtools": {
875
+ "command": "npx",
876
+ "args": ["chrome-devtools-mcp@latest", "--autoConnect"]
877
+ }
878
+ }
879
+ }
880
+ ```
881
+
882
+ **Step 3:** Test your setup
883
+
884
+ Make sure your browser is running. Open gemini-cli and run the following prompt:
885
+
886
+ ```none
887
+ Check the performance of https://developers.chrome.com
888
+ ```
889
+
890
+ > [!NOTE]
891
+ > The <code>autoConnect</code> option requires the user to start Chrome. If the user has multiple active profiles, the MCP server will connect to the default profile (as determined by Chrome). The MCP server has access to all open windows for the selected profile.
892
+
893
+ The Chrome DevTools MCP server will try to connect to your running Chrome
894
+ instance. It shows a dialog asking for user permission.
895
+
896
+ Clicking **Allow** results in the Chrome DevTools MCP server opening
897
+ [developers.chrome.com](http://developers.chrome.com) and taking a performance
898
+ trace.
899
+
900
+ #### Manual connection using port forwarding
901
+
902
+ You can connect to a running Chrome instance by using the `--browser-url` option. This is useful if you are running the MCP server in a sandboxed environment that does not allow starting a new Chrome instance.
903
+
904
+ Here is a step-by-step guide on how to connect to a running Chrome instance:
905
+
906
+ **Step 1: Configure the MCP client**
907
+
908
+ Add the `--browser-url` option to your MCP client configuration. The value of this option should be the URL of the running Chrome instance. `http://127.0.0.1:9222` is a common default.
909
+
910
+ ```json
911
+ {
912
+ "mcpServers": {
913
+ "chrome-devtools": {
914
+ "command": "npx",
915
+ "args": [
916
+ "chrome-devtools-mcp@latest",
917
+ "--browser-url=http://127.0.0.1:9222"
918
+ ]
919
+ }
920
+ }
921
+ }
922
+ ```
923
+
924
+ **Step 2: Start the Chrome browser**
925
+
926
+ > [!WARNING]
927
+ > Enabling the remote debugging port opens up a debugging port on the running browser instance. Any application on your machine can connect to this port and control the browser. Make sure that you are not browsing any sensitive websites while the debugging port is open.
928
+
929
+ Start the Chrome browser with the remote debugging port enabled. Make sure to close any running Chrome instances before starting a new one with the debugging port enabled. The port number you choose must be the same as the one you specified in the `--browser-url` option in your MCP client configuration.
930
+
931
+ For security reasons, [Chrome requires you to use a non-default user data directory](https://developer.chrome.com/blog/remote-debugging-port) when enabling the remote debugging port. You can specify a custom directory using the `--user-data-dir` flag. This ensures that your regular browsing profile and data are not exposed to the debugging session.
932
+
933
+ **macOS**
934
+
935
+ ```bash
936
+ /Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --remote-debugging-port=9222 --user-data-dir=/tmp/chrome-profile-stable
937
+ ```
938
+
939
+ **Linux**
940
+
941
+ ```bash
942
+ /usr/bin/google-chrome --remote-debugging-port=9222 --user-data-dir=/tmp/chrome-profile-stable
943
+ ```
944
+
945
+ **Windows**
946
+
947
+ ```bash
948
+ "C:\Program Files\Google\Chrome\Application\chrome.exe" --remote-debugging-port=9222 --user-data-dir="%TEMP%\chrome-profile-stable"
949
+ ```
950
+
951
+ **Step 3: Test your setup**
952
+
953
+ After configuring the MCP client and starting the Chrome browser, you can test your setup by running a simple prompt in your MCP client:
954
+
955
+ ```
956
+ Check the performance of https://developers.chrome.com
957
+ ```
958
+
959
+ Your MCP client should connect to the running Chrome instance and receive a performance report.
960
+
961
+ If you hit VM-to-host port forwarding issues, see the “Remote debugging between virtual machine (VM) and host fails” section in [`docs/troubleshooting.md`](./docs/troubleshooting.md#remote-debugging-between-virtual-machine-vm-and-host-fails).
962
+
963
+ For more details on remote debugging, see the [Chrome DevTools documentation](https://developer.chrome.com/docs/devtools/remote-debugging/).
964
+
965
+ ### Debugging Chrome on Android
966
+
967
+ Please consult [these instructions](./docs/debugging-android.md).
968
+
969
+ ## Known limitations
970
+
971
+ See [Troubleshooting](./docs/troubleshooting.md).
972
+
973
+ ## Integrating as a browser subagent
974
+
975
+ If you are developing agentic tooling and want to provide an integrated browser subagent as part of your product, we recommend building on top of Chrome DevTools for agents.
976
+
977
+ For a reference implementation, see the [Gemini CLI browser agent documentation](https://geminicli.com/docs/core/subagents/#browser-agent).