@vibebrowser/chrome-devtools-mcp 0.26.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 (294) hide show
  1. package/LICENSE +202 -0
  2. package/README.md +873 -0
  3. package/build/src/DevToolsConnectionAdapter.js +70 -0
  4. package/build/src/DevtoolsUtils.js +295 -0
  5. package/build/src/HeapSnapshotManager.js +110 -0
  6. package/build/src/McpContext.js +605 -0
  7. package/build/src/McpPage.js +315 -0
  8. package/build/src/McpResponse.js +858 -0
  9. package/build/src/Mutex.js +38 -0
  10. package/build/src/PageCollector.js +297 -0
  11. package/build/src/SlimMcpResponse.js +19 -0
  12. package/build/src/TextSnapshot.js +236 -0
  13. package/build/src/ToolHandler.js +217 -0
  14. package/build/src/WaitForHelper.js +190 -0
  15. package/build/src/bin/check-latest-version.js +50 -0
  16. package/build/src/bin/chrome-devtools-cli-options.js +840 -0
  17. package/build/src/bin/chrome-devtools-mcp-cli-options.js +350 -0
  18. package/build/src/bin/chrome-devtools-mcp-main.js +94 -0
  19. package/build/src/bin/chrome-devtools-mcp.js +31 -0
  20. package/build/src/bin/chrome-devtools.js +189 -0
  21. package/build/src/bin/install-service.js +246 -0
  22. package/build/src/bin/service/chrome-devtools-mcp.service.template +17 -0
  23. package/build/src/bin/service/com.vibebrowser.chrome-devtools-mcp.plist.template +37 -0
  24. package/build/src/browser.js +204 -0
  25. package/build/src/daemon/client.js +154 -0
  26. package/build/src/daemon/daemon.js +204 -0
  27. package/build/src/daemon/types.js +7 -0
  28. package/build/src/daemon/utils.js +115 -0
  29. package/build/src/formatters/ConsoleFormatter.js +288 -0
  30. package/build/src/formatters/HeapSnapshotFormatter.js +54 -0
  31. package/build/src/formatters/IssueFormatter.js +193 -0
  32. package/build/src/formatters/NetworkFormatter.js +236 -0
  33. package/build/src/formatters/SnapshotFormatter.js +135 -0
  34. package/build/src/index.js +140 -0
  35. package/build/src/issue-descriptions.js +40 -0
  36. package/build/src/logger.js +37 -0
  37. package/build/src/polyfill.js +8 -0
  38. package/build/src/telemetry/ClearcutLogger.js +169 -0
  39. package/build/src/telemetry/WatchdogClient.js +61 -0
  40. package/build/src/telemetry/errors.js +18 -0
  41. package/build/src/telemetry/flagUtils.js +89 -0
  42. package/build/src/telemetry/metricsRegistry.js +89 -0
  43. package/build/src/telemetry/persistence.js +72 -0
  44. package/build/src/telemetry/transformation.js +134 -0
  45. package/build/src/telemetry/types.js +31 -0
  46. package/build/src/telemetry/watchdog/ClearcutSender.js +205 -0
  47. package/build/src/telemetry/watchdog/main.js +128 -0
  48. package/build/src/third_party/devtools-formatter-worker.js +8 -0
  49. package/build/src/third_party/devtools-heap-snapshot-worker.js +8 -0
  50. package/build/src/third_party/index.js +32 -0
  51. package/build/src/third_party/issue-descriptions/CoepCoopSandboxedIframeCannotNavigateToCoopPage.md +4 -0
  52. package/build/src/third_party/issue-descriptions/CoepCorpNotSameOrigin.md +8 -0
  53. package/build/src/third_party/issue-descriptions/CoepCorpNotSameOriginAfterDefaultedToSameOriginByCoep.md +18 -0
  54. package/build/src/third_party/issue-descriptions/CoepCorpNotSameSite.md +7 -0
  55. package/build/src/third_party/issue-descriptions/CoepFrameResourceNeedsCoepHeader.md +10 -0
  56. package/build/src/third_party/issue-descriptions/CompatibilityModeQuirks.md +5 -0
  57. package/build/src/third_party/issue-descriptions/CookieAttributeValueExceedsMaxSize.md +5 -0
  58. package/build/src/third_party/issue-descriptions/LowTextContrast.md +5 -0
  59. package/build/src/third_party/issue-descriptions/SameSiteExcludeContextDowngradeRead.md +8 -0
  60. package/build/src/third_party/issue-descriptions/SameSiteExcludeContextDowngradeSet.md +8 -0
  61. package/build/src/third_party/issue-descriptions/SameSiteExcludeNavigationContextDowngrade.md +8 -0
  62. package/build/src/third_party/issue-descriptions/SameSiteNoneInsecureErrorRead.md +8 -0
  63. package/build/src/third_party/issue-descriptions/SameSiteNoneInsecureErrorSet.md +8 -0
  64. package/build/src/third_party/issue-descriptions/SameSiteNoneInsecureWarnRead.md +8 -0
  65. package/build/src/third_party/issue-descriptions/SameSiteNoneInsecureWarnSet.md +8 -0
  66. package/build/src/third_party/issue-descriptions/SameSiteUnspecifiedLaxAllowUnsafeRead.md +9 -0
  67. package/build/src/third_party/issue-descriptions/SameSiteUnspecifiedLaxAllowUnsafeSet.md +9 -0
  68. package/build/src/third_party/issue-descriptions/SameSiteWarnCrossDowngradeRead.md +8 -0
  69. package/build/src/third_party/issue-descriptions/SameSiteWarnCrossDowngradeSet.md +8 -0
  70. package/build/src/third_party/issue-descriptions/SameSiteWarnStrictLaxDowngradeStrict.md +8 -0
  71. package/build/src/third_party/issue-descriptions/arInsecureContext.md +7 -0
  72. package/build/src/third_party/issue-descriptions/arInvalidInfoHeader.md +5 -0
  73. package/build/src/third_party/issue-descriptions/arInvalidRegisterOsSourceHeader.md +5 -0
  74. package/build/src/third_party/issue-descriptions/arInvalidRegisterOsTriggerHeader.md +5 -0
  75. package/build/src/third_party/issue-descriptions/arInvalidRegisterSourceHeader.md +5 -0
  76. package/build/src/third_party/issue-descriptions/arInvalidRegisterTriggerHeader.md +5 -0
  77. package/build/src/third_party/issue-descriptions/arNavigationRegistrationUniqueScopeAlreadySet.md +5 -0
  78. package/build/src/third_party/issue-descriptions/arNavigationRegistrationWithoutTransientUserActivation.md +6 -0
  79. package/build/src/third_party/issue-descriptions/arNoRegisterOsSourceHeader.md +5 -0
  80. package/build/src/third_party/issue-descriptions/arNoRegisterOsTriggerHeader.md +5 -0
  81. package/build/src/third_party/issue-descriptions/arNoRegisterSourceHeader.md +5 -0
  82. package/build/src/third_party/issue-descriptions/arNoRegisterTriggerHeader.md +5 -0
  83. package/build/src/third_party/issue-descriptions/arNoWebOrOsSupport.md +4 -0
  84. package/build/src/third_party/issue-descriptions/arOsSourceIgnored.md +18 -0
  85. package/build/src/third_party/issue-descriptions/arOsTriggerIgnored.md +19 -0
  86. package/build/src/third_party/issue-descriptions/arPermissionPolicyDisabled.md +8 -0
  87. package/build/src/third_party/issue-descriptions/arSourceAndTriggerHeaders.md +9 -0
  88. package/build/src/third_party/issue-descriptions/arSourceIgnored.md +13 -0
  89. package/build/src/third_party/issue-descriptions/arTriggerIgnored.md +12 -0
  90. package/build/src/third_party/issue-descriptions/arUntrustworthyReportingOrigin.md +10 -0
  91. package/build/src/third_party/issue-descriptions/arWebAndOsHeaders.md +11 -0
  92. package/build/src/third_party/issue-descriptions/bounceTrackingMitigations.md +3 -0
  93. package/build/src/third_party/issue-descriptions/clientHintMetaTagAllowListInvalidOrigin.md +4 -0
  94. package/build/src/third_party/issue-descriptions/clientHintMetaTagModifiedHTML.md +4 -0
  95. package/build/src/third_party/issue-descriptions/connectionAllowlistInvalidAllowlistItemType.md +12 -0
  96. package/build/src/third_party/issue-descriptions/connectionAllowlistInvalidHeader.md +12 -0
  97. package/build/src/third_party/issue-descriptions/connectionAllowlistInvalidUrlPattern.md +8 -0
  98. package/build/src/third_party/issue-descriptions/connectionAllowlistItemNotInnerList.md +12 -0
  99. package/build/src/third_party/issue-descriptions/connectionAllowlistMoreThanOneList.md +7 -0
  100. package/build/src/third_party/issue-descriptions/connectionAllowlistReportingEndpointNotToken.md +10 -0
  101. package/build/src/third_party/issue-descriptions/cookieCrossSiteRedirectDowngrade.md +12 -0
  102. package/build/src/third_party/issue-descriptions/cookieExcludeBlockedWithinRelatedWebsiteSet.md +4 -0
  103. package/build/src/third_party/issue-descriptions/cookieExcludeDomainNonAscii.md +11 -0
  104. package/build/src/third_party/issue-descriptions/cookieExcludePortMismatch.md +8 -0
  105. package/build/src/third_party/issue-descriptions/cookieExcludeSchemeMismatch.md +7 -0
  106. package/build/src/third_party/issue-descriptions/cookieExcludeThirdPartyPhaseoutRead.md +6 -0
  107. package/build/src/third_party/issue-descriptions/cookieExcludeThirdPartyPhaseoutSet.md +6 -0
  108. package/build/src/third_party/issue-descriptions/cookieWarnDomainNonAscii.md +11 -0
  109. package/build/src/third_party/issue-descriptions/cookieWarnMetadataGrantRead.md +4 -0
  110. package/build/src/third_party/issue-descriptions/cookieWarnMetadataGrantSet.md +4 -0
  111. package/build/src/third_party/issue-descriptions/cookieWarnThirdPartyPhaseoutRead.md +6 -0
  112. package/build/src/third_party/issue-descriptions/cookieWarnThirdPartyPhaseoutSet.md +6 -0
  113. package/build/src/third_party/issue-descriptions/corsAllowCredentialsRequired.md +6 -0
  114. package/build/src/third_party/issue-descriptions/corsDisabledScheme.md +7 -0
  115. package/build/src/third_party/issue-descriptions/corsDisallowedByMode.md +7 -0
  116. package/build/src/third_party/issue-descriptions/corsHeaderDisallowedByPreflightResponse.md +5 -0
  117. package/build/src/third_party/issue-descriptions/corsInvalidHeaderValues.md +7 -0
  118. package/build/src/third_party/issue-descriptions/corsLocalNetworkAccessPermissionDenied.md +19 -0
  119. package/build/src/third_party/issue-descriptions/corsMethodDisallowedByPreflightResponse.md +5 -0
  120. package/build/src/third_party/issue-descriptions/corsNoCorsRedirectModeNotFollow.md +5 -0
  121. package/build/src/third_party/issue-descriptions/corsOriginMismatch.md +6 -0
  122. package/build/src/third_party/issue-descriptions/corsPreflightResponseInvalid.md +5 -0
  123. package/build/src/third_party/issue-descriptions/corsRedirectContainsCredentials.md +5 -0
  124. package/build/src/third_party/issue-descriptions/corsWildcardOriginNotAllowed.md +8 -0
  125. package/build/src/third_party/issue-descriptions/cspEvalViolation.md +9 -0
  126. package/build/src/third_party/issue-descriptions/cspInlineViolation.md +10 -0
  127. package/build/src/third_party/issue-descriptions/cspTrustedTypesPolicyViolation.md +5 -0
  128. package/build/src/third_party/issue-descriptions/cspTrustedTypesSinkViolation.md +8 -0
  129. package/build/src/third_party/issue-descriptions/cspURLViolation.md +10 -0
  130. package/build/src/third_party/issue-descriptions/deprecation.md +3 -0
  131. package/build/src/third_party/issue-descriptions/federatedAuthRequestAccountsHttpNotFound.md +1 -0
  132. package/build/src/third_party/issue-descriptions/federatedAuthRequestAccountsInvalidResponse.md +1 -0
  133. package/build/src/third_party/issue-descriptions/federatedAuthRequestAccountsNoResponse.md +1 -0
  134. package/build/src/third_party/issue-descriptions/federatedAuthRequestApprovalDeclined.md +1 -0
  135. package/build/src/third_party/issue-descriptions/federatedAuthRequestCanceled.md +1 -0
  136. package/build/src/third_party/issue-descriptions/federatedAuthRequestErrorFetchingSignin.md +1 -0
  137. package/build/src/third_party/issue-descriptions/federatedAuthRequestErrorIdToken.md +1 -0
  138. package/build/src/third_party/issue-descriptions/federatedAuthRequestIdTokenHttpNotFound.md +1 -0
  139. package/build/src/third_party/issue-descriptions/federatedAuthRequestIdTokenInvalidRequest.md +1 -0
  140. package/build/src/third_party/issue-descriptions/federatedAuthRequestIdTokenInvalidResponse.md +1 -0
  141. package/build/src/third_party/issue-descriptions/federatedAuthRequestIdTokenNoResponse.md +1 -0
  142. package/build/src/third_party/issue-descriptions/federatedAuthRequestInvalidSigninResponse.md +1 -0
  143. package/build/src/third_party/issue-descriptions/federatedAuthRequestManifestHttpNotFound.md +1 -0
  144. package/build/src/third_party/issue-descriptions/federatedAuthRequestManifestInvalidResponse.md +1 -0
  145. package/build/src/third_party/issue-descriptions/federatedAuthRequestManifestNoResponse.md +1 -0
  146. package/build/src/third_party/issue-descriptions/federatedAuthRequestTooManyRequests.md +1 -0
  147. package/build/src/third_party/issue-descriptions/federatedAuthUserInfoRequestInvalidAccountsResponse.md +1 -0
  148. package/build/src/third_party/issue-descriptions/federatedAuthUserInfoRequestInvalidConfigOrWellKnown.md +1 -0
  149. package/build/src/third_party/issue-descriptions/federatedAuthUserInfoRequestNoAccountSharingPermission.md +1 -0
  150. package/build/src/third_party/issue-descriptions/federatedAuthUserInfoRequestNoApiPermission.md +1 -0
  151. package/build/src/third_party/issue-descriptions/federatedAuthUserInfoRequestNoReturningUserFromFetchedAccounts.md +1 -0
  152. package/build/src/third_party/issue-descriptions/federatedAuthUserInfoRequestNotIframe.md +1 -0
  153. package/build/src/third_party/issue-descriptions/federatedAuthUserInfoRequestNotPotentiallyTrustworthy.md +1 -0
  154. package/build/src/third_party/issue-descriptions/federatedAuthUserInfoRequestNotSameOrigin.md +1 -0
  155. package/build/src/third_party/issue-descriptions/federatedAuthUserInfoRequestNotSignedInWithIdp.md +1 -0
  156. package/build/src/third_party/issue-descriptions/fetchingPartitionedBlobURL.md +7 -0
  157. package/build/src/third_party/issue-descriptions/genericFormAriaLabelledByToNonExistingIdError.md +8 -0
  158. package/build/src/third_party/issue-descriptions/genericFormAutocompleteAttributeEmptyError.md +5 -0
  159. package/build/src/third_party/issue-descriptions/genericFormDuplicateIdForInputError.md +5 -0
  160. package/build/src/third_party/issue-descriptions/genericFormEmptyIdAndNameAttributesForInputError.md +5 -0
  161. package/build/src/third_party/issue-descriptions/genericFormInputAssignedAutocompleteValueToIdOrNameAttributeError.md +5 -0
  162. package/build/src/third_party/issue-descriptions/genericFormInputHasWrongButWellIntendedAutocompleteValueError.md +5 -0
  163. package/build/src/third_party/issue-descriptions/genericFormInputWithNoLabelError.md +5 -0
  164. package/build/src/third_party/issue-descriptions/genericFormLabelForMatchesNonExistingIdError.md +5 -0
  165. package/build/src/third_party/issue-descriptions/genericFormLabelForNameError.md +5 -0
  166. package/build/src/third_party/issue-descriptions/genericFormLabelHasNeitherForNorNestedInputError.md +5 -0
  167. package/build/src/third_party/issue-descriptions/genericFormModelContextMissingToolDescription.md +5 -0
  168. package/build/src/third_party/issue-descriptions/genericFormModelContextMissingToolName.md +5 -0
  169. package/build/src/third_party/issue-descriptions/genericFormModelContextParameterMissingName.md +5 -0
  170. package/build/src/third_party/issue-descriptions/genericFormModelContextParameterMissingTitleAndDescription.md +5 -0
  171. package/build/src/third_party/issue-descriptions/genericFormModelContextRequiredParameterMissingName.md +5 -0
  172. package/build/src/third_party/issue-descriptions/genericNavigationEntryMarkedSkippable.md +7 -0
  173. package/build/src/third_party/issue-descriptions/genericResponseWasBlockedByORB.md +4 -0
  174. package/build/src/third_party/issue-descriptions/heavyAd.md +10 -0
  175. package/build/src/third_party/issue-descriptions/mixedContent.md +5 -0
  176. package/build/src/third_party/issue-descriptions/navigatingPartitionedBlobURL.md +5 -0
  177. package/build/src/third_party/issue-descriptions/permissionElementActivationDisabled.md +7 -0
  178. package/build/src/third_party/issue-descriptions/permissionElementActivationDisabledWithOccluder.md +9 -0
  179. package/build/src/third_party/issue-descriptions/permissionElementActivationDisabledWithOccluderParent.md +9 -0
  180. package/build/src/third_party/issue-descriptions/permissionElementCspFrameAncestorsMissing.md +5 -0
  181. package/build/src/third_party/issue-descriptions/permissionElementFencedFrameDisallowed.md +5 -0
  182. package/build/src/third_party/issue-descriptions/permissionElementFontSizeTooLarge.md +5 -0
  183. package/build/src/third_party/issue-descriptions/permissionElementFontSizeTooSmall.md +5 -0
  184. package/build/src/third_party/issue-descriptions/permissionElementGeolocationDeprecated.md +5 -0
  185. package/build/src/third_party/issue-descriptions/permissionElementInsetBoxShadowUnsupported.md +5 -0
  186. package/build/src/third_party/issue-descriptions/permissionElementInvalidDisplayStyle.md +5 -0
  187. package/build/src/third_party/issue-descriptions/permissionElementInvalidSizeValue.md +5 -0
  188. package/build/src/third_party/issue-descriptions/permissionElementInvalidType.md +5 -0
  189. package/build/src/third_party/issue-descriptions/permissionElementInvalidTypeActivation.md +5 -0
  190. package/build/src/third_party/issue-descriptions/permissionElementLowContrast.md +5 -0
  191. package/build/src/third_party/issue-descriptions/permissionElementNonOpaqueColor.md +5 -0
  192. package/build/src/third_party/issue-descriptions/permissionElementPaddingBottomUnsupported.md +6 -0
  193. package/build/src/third_party/issue-descriptions/permissionElementPaddingRightUnsupported.md +6 -0
  194. package/build/src/third_party/issue-descriptions/permissionElementPermissionsPolicyBlocked.md +5 -0
  195. package/build/src/third_party/issue-descriptions/permissionElementRegistrationFailed.md +5 -0
  196. package/build/src/third_party/issue-descriptions/permissionElementRequestInProgress.md +5 -0
  197. package/build/src/third_party/issue-descriptions/permissionElementSecurityChecksFailed.md +5 -0
  198. package/build/src/third_party/issue-descriptions/permissionElementTypeNotSupported.md +5 -0
  199. package/build/src/third_party/issue-descriptions/permissionElementUntrustedEvent.md +7 -0
  200. package/build/src/third_party/issue-descriptions/placeholderDescriptionForInvisibleIssues.md +3 -0
  201. package/build/src/third_party/issue-descriptions/propertyRuleInvalidNameIssue.md +3 -0
  202. package/build/src/third_party/issue-descriptions/propertyRuleIssue.md +7 -0
  203. package/build/src/third_party/issue-descriptions/selectElementAccessibilityDisallowedOptGroupChild.md +7 -0
  204. package/build/src/third_party/issue-descriptions/selectElementAccessibilityDisallowedSelectChild.md +7 -0
  205. package/build/src/third_party/issue-descriptions/selectElementAccessibilityInteractiveContentAttributesSelectDescendant.md +3 -0
  206. package/build/src/third_party/issue-descriptions/selectElementAccessibilityInteractiveContentLegendChild.md +3 -0
  207. package/build/src/third_party/issue-descriptions/selectElementAccessibilityInteractiveContentOptionChild.md +3 -0
  208. package/build/src/third_party/issue-descriptions/selectElementAccessibilityNonPhrasingContentOptionChild.md +3 -0
  209. package/build/src/third_party/issue-descriptions/selectivePermissionsIntervention.md +7 -0
  210. package/build/src/third_party/issue-descriptions/sharedArrayBuffer.md +7 -0
  211. package/build/src/third_party/issue-descriptions/sharedDictionaryUseErrorCrossOriginNoCorsRequest.md +1 -0
  212. package/build/src/third_party/issue-descriptions/sharedDictionaryUseErrorDictionaryLoadFailure.md +3 -0
  213. package/build/src/third_party/issue-descriptions/sharedDictionaryUseErrorMatchingDictionaryNotUsed.md +3 -0
  214. package/build/src/third_party/issue-descriptions/sharedDictionaryUseErrorUnexpectedContentDictionaryHeader.md +1 -0
  215. package/build/src/third_party/issue-descriptions/sharedDictionaryWriteErrorCossOriginNoCorsRequest.md +1 -0
  216. package/build/src/third_party/issue-descriptions/sharedDictionaryWriteErrorDisallowedBySettings.md +1 -0
  217. package/build/src/third_party/issue-descriptions/sharedDictionaryWriteErrorExpiredResponse.md +3 -0
  218. package/build/src/third_party/issue-descriptions/sharedDictionaryWriteErrorFeatureDisabled.md +3 -0
  219. package/build/src/third_party/issue-descriptions/sharedDictionaryWriteErrorInsufficientResources.md +1 -0
  220. package/build/src/third_party/issue-descriptions/sharedDictionaryWriteErrorInvalidMatchField.md +1 -0
  221. package/build/src/third_party/issue-descriptions/sharedDictionaryWriteErrorInvalidStructuredHeader.md +1 -0
  222. package/build/src/third_party/issue-descriptions/sharedDictionaryWriteErrorInvalidTTLField.md +1 -0
  223. package/build/src/third_party/issue-descriptions/sharedDictionaryWriteErrorNavigationRequest.md +3 -0
  224. package/build/src/third_party/issue-descriptions/sharedDictionaryWriteErrorNoMatchField.md +1 -0
  225. package/build/src/third_party/issue-descriptions/sharedDictionaryWriteErrorNonIntegerTTLField.md +1 -0
  226. package/build/src/third_party/issue-descriptions/sharedDictionaryWriteErrorNonListMatchDestField.md +1 -0
  227. package/build/src/third_party/issue-descriptions/sharedDictionaryWriteErrorNonSecureContext.md +3 -0
  228. package/build/src/third_party/issue-descriptions/sharedDictionaryWriteErrorNonStringIdField.md +1 -0
  229. package/build/src/third_party/issue-descriptions/sharedDictionaryWriteErrorNonStringInMatchDestList.md +1 -0
  230. package/build/src/third_party/issue-descriptions/sharedDictionaryWriteErrorNonStringMatchField.md +1 -0
  231. package/build/src/third_party/issue-descriptions/sharedDictionaryWriteErrorNonTokenTypeField.md +1 -0
  232. package/build/src/third_party/issue-descriptions/sharedDictionaryWriteErrorRequestAborted.md +1 -0
  233. package/build/src/third_party/issue-descriptions/sharedDictionaryWriteErrorShuttingDown.md +1 -0
  234. package/build/src/third_party/issue-descriptions/sharedDictionaryWriteErrorTooLongIdField.md +3 -0
  235. package/build/src/third_party/issue-descriptions/sharedDictionaryWriteErrorUnsupportedType.md +3 -0
  236. package/build/src/third_party/issue-descriptions/sriInvalidSignatureHeader.md +14 -0
  237. package/build/src/third_party/issue-descriptions/sriInvalidSignatureInputHeader.md +15 -0
  238. package/build/src/third_party/issue-descriptions/sriMissingSignatureHeader.md +8 -0
  239. package/build/src/third_party/issue-descriptions/sriMissingSignatureInputHeader.md +7 -0
  240. package/build/src/third_party/issue-descriptions/sriSignatureHeaderValueIsIncorrectLength.md +11 -0
  241. package/build/src/third_party/issue-descriptions/sriSignatureHeaderValueIsNotByteSequence.md +14 -0
  242. package/build/src/third_party/issue-descriptions/sriSignatureHeaderValueIsParameterized.md +15 -0
  243. package/build/src/third_party/issue-descriptions/sriSignatureInputHeaderInvalidComponentName.md +8 -0
  244. package/build/src/third_party/issue-descriptions/sriSignatureInputHeaderInvalidComponentType.md +13 -0
  245. package/build/src/third_party/issue-descriptions/sriSignatureInputHeaderInvalidDerivedComponentParameter.md +4 -0
  246. package/build/src/third_party/issue-descriptions/sriSignatureInputHeaderInvalidHeaderComponentParameter.md +5 -0
  247. package/build/src/third_party/issue-descriptions/sriSignatureInputHeaderInvalidParameter.md +11 -0
  248. package/build/src/third_party/issue-descriptions/sriSignatureInputHeaderKeyIdLength.md +12 -0
  249. package/build/src/third_party/issue-descriptions/sriSignatureInputHeaderMissingLabel.md +6 -0
  250. package/build/src/third_party/issue-descriptions/sriSignatureInputHeaderMissingRequiredParameters.md +8 -0
  251. package/build/src/third_party/issue-descriptions/sriSignatureInputHeaderValueMissingComponents.md +11 -0
  252. package/build/src/third_party/issue-descriptions/sriSignatureInputHeaderValueNotInnerList.md +11 -0
  253. package/build/src/third_party/issue-descriptions/sriValidationFailedIntegrityMismatch.md +10 -0
  254. package/build/src/third_party/issue-descriptions/sriValidationFailedInvalidLength.md +5 -0
  255. package/build/src/third_party/issue-descriptions/sriValidationFailedSignatureExpired.md +6 -0
  256. package/build/src/third_party/issue-descriptions/sriValidationFailedSignatureMismatch.md +11 -0
  257. package/build/src/third_party/issue-descriptions/stylesheetLateImport.md +4 -0
  258. package/build/src/third_party/issue-descriptions/stylesheetRequestFailed.md +3 -0
  259. package/build/src/third_party/issue-descriptions/summaryElementAccessibilityInteractiveContentSummaryDescendant.md +3 -0
  260. package/build/src/third_party/issue-descriptions/unencodedDigestIncorrectDigestLength.md +12 -0
  261. package/build/src/third_party/issue-descriptions/unencodedDigestIncorrectDigestType.md +17 -0
  262. package/build/src/third_party/issue-descriptions/unencodedDigestMalformedDictionary.md +14 -0
  263. package/build/src/third_party/issue-descriptions/unencodedDigestUnknownAlgorithm.md +15 -0
  264. package/build/src/third_party/lighthouse-devtools-mcp-bundle.js +61598 -0
  265. package/build/src/tools/ToolDefinition.js +73 -0
  266. package/build/src/tools/categories.js +36 -0
  267. package/build/src/tools/console.js +91 -0
  268. package/build/src/tools/emulation.js +57 -0
  269. package/build/src/tools/extensions.js +96 -0
  270. package/build/src/tools/input.js +461 -0
  271. package/build/src/tools/lighthouse.js +131 -0
  272. package/build/src/tools/memory.js +106 -0
  273. package/build/src/tools/network.js +125 -0
  274. package/build/src/tools/pages.js +411 -0
  275. package/build/src/tools/performance.js +196 -0
  276. package/build/src/tools/screencast.js +95 -0
  277. package/build/src/tools/screenshot.js +87 -0
  278. package/build/src/tools/script.js +151 -0
  279. package/build/src/tools/slim/tools.js +85 -0
  280. package/build/src/tools/snapshot.js +60 -0
  281. package/build/src/tools/thirdPartyDeveloper.js +75 -0
  282. package/build/src/tools/tools.js +56 -0
  283. package/build/src/tools/webmcp.js +64 -0
  284. package/build/src/trace-processing/parse.js +85 -0
  285. package/build/src/types.js +7 -0
  286. package/build/src/utils/check-for-updates.js +74 -0
  287. package/build/src/utils/files.js +18 -0
  288. package/build/src/utils/id.js +16 -0
  289. package/build/src/utils/keyboard.js +297 -0
  290. package/build/src/utils/pagination.js +50 -0
  291. package/build/src/utils/string.js +37 -0
  292. package/build/src/utils/types.js +7 -0
  293. package/build/src/version.js +10 -0
  294. package/package.json +93 -0
package/README.md ADDED
@@ -0,0 +1,873 @@
1
+ # Chrome DevTools for Agents
2
+
3
+ [![npm chrome-devtools-mcp package](https://img.shields.io/npm/v/chrome-devtools-mcp.svg)](https://npmjs.org/package/chrome-devtools-mcp)
4
+
5
+ Chrome DevTools for Agents (`chrome-devtools-mcp`) lets your coding agent (such as Gemini, Claude, Cursor or Copilot)
6
+ control and inspect a live Chrome browser. It acts as a Model-Context-Protocol
7
+ (MCP) server, giving your AI coding assistant access to the full power of
8
+ Chrome DevTools for reliable automation, in-depth debugging, and performance analysis.
9
+ A [CLI](docs/cli.md) is also provided for use without MCP.
10
+
11
+ ## [Tool reference](./docs/tool-reference.md) | [Changelog](./CHANGELOG.md) | [Contributing](./CONTRIBUTING.md) | [Troubleshooting](./docs/troubleshooting.md) | [Design Principles](./docs/design-principles.md)
12
+
13
+ ## Key features
14
+
15
+ - **Get performance insights**: Uses [Chrome
16
+ DevTools](https://github.com/ChromeDevTools/devtools-frontend) to record
17
+ traces and extract actionable performance insights.
18
+ - **Advanced browser debugging**: Analyze network requests, take screenshots and
19
+ check browser console messages (with source-mapped stack traces).
20
+ - **Reliable automation**. Uses
21
+ [puppeteer](https://github.com/puppeteer/puppeteer) to automate actions in
22
+ Chrome and automatically wait for action results.
23
+
24
+ ## Disclaimers
25
+
26
+ `chrome-devtools-mcp` exposes content of the browser instance to the MCP clients
27
+ allowing them to inspect, debug, and modify any data in the browser or DevTools.
28
+ Avoid sharing sensitive or personal information that you don't want to share with
29
+ MCP clients.
30
+
31
+ `chrome-devtools-mcp` officially supports Google Chrome and [Chrome for Testing](https://developer.chrome.com/blog/chrome-for-testing/) only.
32
+ Other Chromium-based browsers may work, but this is not guaranteed, and you may encounter unexpected behavior. Use at your own discretion.
33
+ We are committed to providing fixes and support for the latest version of [Extended Stable Chrome](https://chromiumdash.appspot.com/schedule).
34
+
35
+ Performance tools may send trace URLs to the Google CrUX API to fetch real-user
36
+ experience data. This helps provide a holistic performance picture by
37
+ presenting field data alongside lab data. This data is collected by the [Chrome
38
+ User Experience Report (CrUX)](https://developer.chrome.com/docs/crux). To disable
39
+ this, run with the `--no-performance-crux` flag.
40
+
41
+ ## **Usage statistics**
42
+
43
+ Google collects usage statistics (such as tool invocation success rates, latency, and environment information) to improve the reliability and performance of Chrome DevTools MCP.
44
+
45
+ Data collection is **enabled by default**. You can opt-out by passing the `--no-usage-statistics` flag when starting the server:
46
+
47
+ ```json
48
+ "args": ["-y", "chrome-devtools-mcp@latest", "--no-usage-statistics"]
49
+ ```
50
+
51
+ Google handles this data in accordance with the [Google Privacy Policy](https://policies.google.com/privacy).
52
+
53
+ 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.
54
+
55
+ Collection is disabled if `CHROME_DEVTOOLS_MCP_NO_USAGE_STATISTICS` or `CI` env variables are set.
56
+
57
+ ## Update checks
58
+
59
+ By default, the server periodically checks the npm registry for updates and logs a notification when a newer version is available.
60
+ You can disable these update checks by setting the `CHROME_DEVTOOLS_MCP_NO_UPDATE_CHECKS` environment variable.
61
+
62
+ ## Requirements
63
+
64
+ - [Node.js](https://nodejs.org/) v20.19 or a newer [latest maintenance LTS](https://github.com/nodejs/Release#release-schedule) version.
65
+ - [Chrome](https://www.google.com/chrome/) current stable version or newer.
66
+ - [npm](https://www.npmjs.com/)
67
+
68
+ ## Getting started
69
+
70
+ Add the following config to your MCP client:
71
+
72
+ ```json
73
+ {
74
+ "mcpServers": {
75
+ "chrome-devtools": {
76
+ "command": "npx",
77
+ "args": ["-y", "chrome-devtools-mcp@latest"]
78
+ }
79
+ }
80
+ }
81
+ ```
82
+
83
+ > [!NOTE]
84
+ > Using `chrome-devtools-mcp@latest` ensures that your MCP client will always use the latest version of the Chrome DevTools MCP server.
85
+
86
+ If you are interested in doing only basic browser tasks, use the `--slim` mode:
87
+
88
+ ```json
89
+ {
90
+ "mcpServers": {
91
+ "chrome-devtools": {
92
+ "command": "npx",
93
+ "args": ["-y", "chrome-devtools-mcp@latest", "--slim", "--headless"]
94
+ }
95
+ }
96
+ }
97
+ ```
98
+
99
+ See [Slim tool reference](./docs/slim-tool-reference.md).
100
+
101
+ ### MCP Client configuration
102
+
103
+ <details>
104
+ <summary>Amp</summary>
105
+ Follow https://ampcode.com/manual#mcp and use the config provided above. You can also install the Chrome DevTools MCP server using the CLI:
106
+
107
+ ```bash
108
+ amp mcp add chrome-devtools -- npx chrome-devtools-mcp@latest
109
+ ```
110
+
111
+ </details>
112
+
113
+ <details>
114
+ <summary>Antigravity</summary>
115
+
116
+ 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:
117
+
118
+ ```bash
119
+ {
120
+ "mcpServers": {
121
+ "chrome-devtools": {
122
+ "command": "npx",
123
+ "args": [
124
+ "chrome-devtools-mcp@latest",
125
+ "--browser-url=http://127.0.0.1:9222",
126
+ "-y"
127
+ ]
128
+ }
129
+ }
130
+ }
131
+ ```
132
+
133
+ 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.
134
+
135
+ 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.
136
+
137
+ </details>
138
+
139
+ <details>
140
+ <summary>Claude Code</summary>
141
+
142
+ **Install via CLI (MCP only)**
143
+
144
+ Use the Claude Code CLI to add the Chrome DevTools MCP server (<a href="https://code.claude.com/docs/en/mcp">guide</a>):
145
+
146
+ ```bash
147
+ claude mcp add chrome-devtools --scope user npx chrome-devtools-mcp@latest
148
+ ```
149
+
150
+ **Install as a Plugin (MCP + Skills)**
151
+
152
+ > [!NOTE]
153
+ > If you already had Chrome DevTools MCP installed previously for Claude Code, make sure to remove it first from your installation and configuration files.
154
+
155
+ To install Chrome DevTools MCP with skills, add the marketplace registry in Claude Code:
156
+
157
+ ```sh
158
+ /plugin marketplace add ChromeDevTools/chrome-devtools-mcp
159
+ ```
160
+
161
+ Then, install the plugin:
162
+
163
+ ```sh
164
+ /plugin install chrome-devtools-mcp@chrome-devtools-plugins
165
+ ```
166
+
167
+ Restart Claude Code to have the MCP server and skills load (check with `/skills`).
168
+
169
+ > [!TIP]
170
+ > 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.
171
+
172
+ </details>
173
+
174
+ <details>
175
+ <summary>Cline</summary>
176
+ Follow https://docs.cline.bot/mcp/configuring-mcp-servers and use the config provided above.
177
+ </details>
178
+
179
+ <details>
180
+ <summary>Codex</summary>
181
+ Follow the <a href="https://developers.openai.com/codex/mcp/#configure-with-the-cli">configure MCP guide</a>
182
+ using the standard config from above. You can also install the Chrome DevTools MCP server using the Codex CLI:
183
+
184
+ ```bash
185
+ codex mcp add chrome-devtools -- npx chrome-devtools-mcp@latest
186
+ ```
187
+
188
+ **On Windows 11**
189
+
190
+ 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:
191
+
192
+ ```
193
+ [mcp_servers.chrome-devtools]
194
+ command = "cmd"
195
+ args = [
196
+ "/c",
197
+ "npx",
198
+ "-y",
199
+ "chrome-devtools-mcp@latest",
200
+ ]
201
+ env = { SystemRoot="C:\\Windows", PROGRAMFILES="C:\\Program Files" }
202
+ startup_timeout_ms = 20_000
203
+ ```
204
+
205
+ </details>
206
+
207
+ <details>
208
+ <summary>Command Code</summary>
209
+
210
+ Use the Command Code CLI to add the Chrome DevTools MCP server (<a href="https://commandcode.ai/docs/mcp">MCP guide</a>):
211
+
212
+ ```bash
213
+ cmd mcp add chrome-devtools --scope user npx chrome-devtools-mcp@latest
214
+ ```
215
+
216
+ </details>
217
+
218
+ <details>
219
+ <summary>Copilot CLI</summary>
220
+
221
+ Start Copilot CLI:
222
+
223
+ ```
224
+ copilot
225
+ ```
226
+
227
+ Start the dialog to add a new MCP server by running:
228
+
229
+ ```
230
+ /mcp add
231
+ ```
232
+
233
+ Configure the following fields and press `CTRL+S` to save the configuration:
234
+
235
+ - **Server name:** `chrome-devtools`
236
+ - **Server Type:** `[1] Local`
237
+ - **Command:** `npx -y chrome-devtools-mcp@latest`
238
+
239
+ </details>
240
+
241
+ <details>
242
+ <summary>Copilot / VS Code</summary>
243
+
244
+ **Install as a Plugin (Recommended)**
245
+
246
+ The easiest way to get up and running is to install `chrome-devtools-mcp` as an agent plugin.
247
+ This bundles the **MCP server** and all **skills** together, so your agent gets both the tools
248
+ and the expert guidance it needs to use them effectively.
249
+
250
+ 1. Open the **Command Palette** (`Cmd+Shift+P` on macOS or `Ctrl+Shift+P` on Windows/Linux).
251
+ 2. Search for and run the **Chat: Install Plugin From Source** command.
252
+ 3. Paste in our repository URL: `https://github.com/ChromeDevTools/chrome-devtools-mcp`
253
+
254
+ That's it! Your agent is now supercharged with Chrome DevTools capabilities.
255
+
256
+ ---
257
+
258
+ **Install as an MCP Server (MCP only)**
259
+
260
+ **Click the button to install:**
261
+
262
+ [<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)
263
+
264
+ [<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)
265
+
266
+ **Or install manually:**
267
+
268
+ 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:
269
+
270
+ For macOS and Linux:
271
+
272
+ ```bash
273
+ code --add-mcp '{"name":"io.github.ChromeDevTools/chrome-devtools-mcp","command":"npx","args":["-y","chrome-devtools-mcp"],"env":{}}'
274
+ ```
275
+
276
+ For Windows (PowerShell):
277
+
278
+ ```powershell
279
+ code --add-mcp '{"""name""":"""io.github.ChromeDevTools/chrome-devtools-mcp""","""command""":"""npx""","""args""":["""-y""","""chrome-devtools-mcp"""]}'
280
+ ```
281
+
282
+ </details>
283
+
284
+ <details>
285
+ <summary>Cursor</summary>
286
+
287
+ **Click the button to install:**
288
+
289
+ [<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)
290
+
291
+ **Or install manually:**
292
+
293
+ Go to `Cursor Settings` -> `MCP` -> `New MCP Server`. Use the config provided above.
294
+
295
+ </details>
296
+
297
+ <details>
298
+ <summary>Factory CLI</summary>
299
+ Use the Factory CLI to add the Chrome DevTools MCP server (<a href="https://docs.factory.ai/cli/configuration/mcp">guide</a>):
300
+
301
+ ```bash
302
+ droid mcp add chrome-devtools "npx -y chrome-devtools-mcp@latest"
303
+ ```
304
+
305
+ </details>
306
+
307
+ <details>
308
+ <summary>Gemini CLI</summary>
309
+ Install the Chrome DevTools MCP server using the Gemini CLI.
310
+
311
+ **Project wide:**
312
+
313
+ ```bash
314
+ # Either MCP only:
315
+ gemini mcp add chrome-devtools npx chrome-devtools-mcp@latest
316
+ # Or as a Gemini extension (MCP+Skills):
317
+ gemini extensions install --auto-update https://github.com/ChromeDevTools/chrome-devtools-mcp
318
+ ```
319
+
320
+ **Globally:**
321
+
322
+ ```bash
323
+ gemini mcp add -s user chrome-devtools npx chrome-devtools-mcp@latest
324
+ ```
325
+
326
+ 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.
327
+
328
+ </details>
329
+
330
+ <details>
331
+ <summary>Gemini Code Assist</summary>
332
+ Follow the <a href="https://cloud.google.com/gemini/docs/codeassist/use-agentic-chat-pair-programmer#configure-mcp-servers">configure MCP guide</a>
333
+ using the standard config from above.
334
+ </details>
335
+
336
+ <details>
337
+ <summary>JetBrains AI Assistant & Junie</summary>
338
+
339
+ Go to `Settings | Tools | AI Assistant | Model Context Protocol (MCP)` -> `Add`. Use the config provided above.
340
+ The same way chrome-devtools-mcp can be configured for JetBrains Junie in `Settings | Tools | Junie | MCP Settings` -> `Add`. Use the config provided above.
341
+
342
+ </details>
343
+
344
+ <details>
345
+ <summary>Kiro</summary>
346
+
347
+ In **Kiro Settings**, go to `Configure MCP` > `Open Workspace or User MCP Config` > Use the configuration snippet provided above.
348
+
349
+ Or, from the IDE **Activity Bar** > `Kiro` > `MCP Servers` > `Click Open MCP Config`. Use the configuration snippet provided above.
350
+
351
+ </details>
352
+
353
+ <details>
354
+ <summary>Katalon Studio</summary>
355
+
356
+ 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.
357
+
358
+ **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>.
359
+
360
+ **Step 2:** Start the Chrome DevTools MCP server with the proxy:
361
+
362
+ ```bash
363
+ mcp-proxy --transport streamablehttp --port 8080 -- npx -y chrome-devtools-mcp@latest
364
+ ```
365
+
366
+ **Note:** You may need to pick another port if 8080 is already in use.
367
+
368
+ **Step 3:** In Katalon Studio, add the server to StudioAssist with the following settings:
369
+
370
+ - **Connection URL:** `http://127.0.0.1:8080/mcp`
371
+ - **Transport type:** `HTTP`
372
+
373
+ Once connected, the Chrome DevTools MCP tools will be available in StudioAssist.
374
+
375
+ </details>
376
+
377
+ <details>
378
+ <summary>Mistral Vibe</summary>
379
+
380
+ Add in ~/.vibe/config.toml:
381
+
382
+ ```toml
383
+ [[mcp_servers]]
384
+ name = "chrome-devtools"
385
+ transport = "stdio"
386
+ command = "npx"
387
+ args = ["chrome-devtools-mcp@latest"]
388
+ ```
389
+
390
+ </details>
391
+
392
+ <details>
393
+ <summary>OpenCode</summary>
394
+
395
+ 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>):
396
+
397
+ ```json
398
+ {
399
+ "$schema": "https://opencode.ai/config.json",
400
+ "mcp": {
401
+ "chrome-devtools": {
402
+ "type": "local",
403
+ "command": ["npx", "-y", "chrome-devtools-mcp@latest"]
404
+ }
405
+ }
406
+ }
407
+ ```
408
+
409
+ </details>
410
+
411
+ <details>
412
+ <summary>Qoder</summary>
413
+
414
+ In **Qoder Settings**, go to `MCP Server` > `+ Add` > Use the configuration snippet provided above.
415
+
416
+ 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.
417
+
418
+ </details>
419
+
420
+ <details>
421
+ <summary>Qoder CLI</summary>
422
+
423
+ Install the Chrome DevTools MCP server using the Qoder CLI (<a href="https://docs.qoder.com/cli/using-cli#mcp-servers">guide</a>):
424
+
425
+ **Project wide:**
426
+
427
+ ```bash
428
+ qodercli mcp add chrome-devtools -- npx chrome-devtools-mcp@latest
429
+ ```
430
+
431
+ **Globally:**
432
+
433
+ ```bash
434
+ qodercli mcp add -s user chrome-devtools -- npx chrome-devtools-mcp@latest
435
+ ```
436
+
437
+ </details>
438
+
439
+ <details>
440
+ <summary>Visual Studio</summary>
441
+
442
+ **Click the button to install:**
443
+
444
+ [<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)
445
+
446
+ </details>
447
+
448
+ <details>
449
+ <summary>Warp</summary>
450
+
451
+ 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.
452
+
453
+ </details>
454
+
455
+ <details>
456
+ <summary>Windsurf</summary>
457
+ Follow the <a href="https://docs.windsurf.com/windsurf/cascade/mcp#mcp-config-json">configure MCP guide</a>
458
+ using the standard config from above.
459
+ </details>
460
+
461
+ ### Your first prompt
462
+
463
+ Enter the following prompt in your MCP Client to check if everything is working:
464
+
465
+ ```
466
+ Check the performance of https://developers.chrome.com
467
+ ```
468
+
469
+ Your MCP client should open the browser and record a performance trace.
470
+
471
+ > [!NOTE]
472
+ > 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.
473
+
474
+ ## Tools
475
+
476
+ If you run into any issues, checkout our [troubleshooting guide](./docs/troubleshooting.md).
477
+
478
+ <!-- BEGIN AUTO GENERATED TOOLS -->
479
+
480
+ - **Input automation** (10 tools)
481
+ - [`click`](docs/tool-reference.md#click)
482
+ - [`drag`](docs/tool-reference.md#drag)
483
+ - [`fill`](docs/tool-reference.md#fill)
484
+ - [`fill_form`](docs/tool-reference.md#fill_form)
485
+ - [`handle_dialog`](docs/tool-reference.md#handle_dialog)
486
+ - [`hover`](docs/tool-reference.md#hover)
487
+ - [`press_key`](docs/tool-reference.md#press_key)
488
+ - [`type_text`](docs/tool-reference.md#type_text)
489
+ - [`upload_file`](docs/tool-reference.md#upload_file)
490
+ - [`click_at`](docs/tool-reference.md#click_at)
491
+ - **Navigation automation** (6 tools)
492
+ - [`close_page`](docs/tool-reference.md#close_page)
493
+ - [`list_pages`](docs/tool-reference.md#list_pages)
494
+ - [`navigate_page`](docs/tool-reference.md#navigate_page)
495
+ - [`new_page`](docs/tool-reference.md#new_page)
496
+ - [`select_page`](docs/tool-reference.md#select_page)
497
+ - [`wait_for`](docs/tool-reference.md#wait_for)
498
+ - **Emulation** (2 tools)
499
+ - [`emulate`](docs/tool-reference.md#emulate)
500
+ - [`resize_page`](docs/tool-reference.md#resize_page)
501
+ - **Performance** (3 tools)
502
+ - [`performance_analyze_insight`](docs/tool-reference.md#performance_analyze_insight)
503
+ - [`performance_start_trace`](docs/tool-reference.md#performance_start_trace)
504
+ - [`performance_stop_trace`](docs/tool-reference.md#performance_stop_trace)
505
+ - **Network** (2 tools)
506
+ - [`get_network_request`](docs/tool-reference.md#get_network_request)
507
+ - [`list_network_requests`](docs/tool-reference.md#list_network_requests)
508
+ - **Debugging** (8 tools)
509
+ - [`evaluate_script`](docs/tool-reference.md#evaluate_script)
510
+ - [`get_console_message`](docs/tool-reference.md#get_console_message)
511
+ - [`lighthouse_audit`](docs/tool-reference.md#lighthouse_audit)
512
+ - [`list_console_messages`](docs/tool-reference.md#list_console_messages)
513
+ - [`take_screenshot`](docs/tool-reference.md#take_screenshot)
514
+ - [`take_snapshot`](docs/tool-reference.md#take_snapshot)
515
+ - [`screencast_start`](docs/tool-reference.md#screencast_start)
516
+ - [`screencast_stop`](docs/tool-reference.md#screencast_stop)
517
+ - **Memory** (4 tools)
518
+ - [`take_memory_snapshot`](docs/tool-reference.md#take_memory_snapshot)
519
+ - [`get_memory_snapshot_details`](docs/tool-reference.md#get_memory_snapshot_details)
520
+ - [`get_nodes_by_class`](docs/tool-reference.md#get_nodes_by_class)
521
+ - [`load_memory_snapshot`](docs/tool-reference.md#load_memory_snapshot)
522
+ - **Extensions** (5 tools)
523
+ - [`install_extension`](docs/tool-reference.md#install_extension)
524
+ - [`list_extensions`](docs/tool-reference.md#list_extensions)
525
+ - [`reload_extension`](docs/tool-reference.md#reload_extension)
526
+ - [`trigger_extension_action`](docs/tool-reference.md#trigger_extension_action)
527
+ - [`uninstall_extension`](docs/tool-reference.md#uninstall_extension)
528
+ - **Third-party** (2 tools)
529
+ - [`execute_3p_developer_tool`](docs/tool-reference.md#execute_3p_developer_tool)
530
+ - [`list_3p_developer_tools`](docs/tool-reference.md#list_3p_developer_tools)
531
+ - **WebMCP** (2 tools)
532
+ - [`execute_webmcp_tool`](docs/tool-reference.md#execute_webmcp_tool)
533
+ - [`list_webmcp_tools`](docs/tool-reference.md#list_webmcp_tools)
534
+
535
+ <!-- END AUTO GENERATED TOOLS -->
536
+
537
+ ## Configuration
538
+
539
+ The Chrome DevTools MCP server supports the following configuration option:
540
+
541
+ <!-- BEGIN AUTO GENERATED OPTIONS -->
542
+
543
+ - **`--autoConnect`/ `--auto-connect`**
544
+ 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.
545
+ - **Type:** boolean
546
+ - **Default:** `false`
547
+
548
+ - **`--browserUrl`/ `--browser-url`, `-u`**
549
+ 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.
550
+ - **Type:** string
551
+
552
+ - **`--wsEndpoint`/ `--ws-endpoint`, `-w`**
553
+ WebSocket endpoint to connect to a running Chrome instance (e.g., ws://127.0.0.1:9222/devtools/browser/<id>). Alternative to --browserUrl.
554
+ - **Type:** string
555
+
556
+ - **`--wsHeaders`/ `--ws-headers`**
557
+ Custom headers for WebSocket connection in JSON format (e.g., '{"Authorization":"Bearer token"}'). Only works with --wsEndpoint.
558
+ - **Type:** string
559
+
560
+ - **`--headless`**
561
+ Whether to run in headless (no UI) mode.
562
+ - **Type:** boolean
563
+ - **Default:** `false`
564
+
565
+ - **`--executablePath`/ `--executable-path`, `-e`**
566
+ Path to custom Chrome executable.
567
+ - **Type:** string
568
+
569
+ - **`--isolated`**
570
+ If specified, creates a temporary user-data-dir that is automatically cleaned up after the browser is closed. Defaults to false.
571
+ - **Type:** boolean
572
+
573
+ - **`--userDataDir`/ `--user-data-dir`**
574
+ Path to the user data directory for Chrome. Default is $HOME/.cache/chrome-devtools-mcp/chrome-profile$CHANNEL_SUFFIX_IF_NON_STABLE
575
+ - **Type:** string
576
+
577
+ - **`--channel`**
578
+ Specify a different Chrome channel that should be used. The default is the stable channel version.
579
+ - **Type:** string
580
+ - **Choices:** `canary`, `dev`, `beta`, `stable`
581
+
582
+ - **`--logFile`/ `--log-file`**
583
+ Path to a file to write debug logs to. Set the env variable `DEBUG` to `*` to enable verbose logs. Useful for submitting bug reports.
584
+ - **Type:** string
585
+
586
+ - **`--viewport`**
587
+ Initial viewport size for the Chrome instances started by the server. For example, `1280x720`. In headless mode, max size is 3840x2160px.
588
+ - **Type:** string
589
+
590
+ - **`--proxyServer`/ `--proxy-server`**
591
+ 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.
592
+ - **Type:** string
593
+
594
+ - **`--acceptInsecureCerts`/ `--accept-insecure-certs`**
595
+ If enabled, ignores errors relative to self-signed and expired certificates. Use with caution.
596
+ - **Type:** boolean
597
+
598
+ - **`--experimentalPageIdRouting`/ `--experimental-page-id-routing`**
599
+ Whether to expose pageId on page-scoped tools and route requests by page ID (useful for concurrent agent sessions).
600
+ - **Type:** boolean
601
+
602
+ - **`--experimentalDevtools`/ `--experimental-devtools`**
603
+ Whether to enable automation over DevTools targets
604
+ - **Type:** boolean
605
+
606
+ - **`--experimentalVision`/ `--experimental-vision`**
607
+ 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.
608
+ - **Type:** boolean
609
+
610
+ - **`--experimentalMemory`/ `--experimental-memory`**
611
+ Whether to enable experimental memory tools.
612
+ - **Type:** boolean
613
+
614
+ - **`--experimentalStructuredContent`/ `--experimental-structured-content`**
615
+ Whether to output structured formatted content.
616
+ - **Type:** boolean
617
+
618
+ - **`--experimentalIncludeAllPages`/ `--experimental-include-all-pages`**
619
+ Whether to include all kinds of pages such as webviews or background pages as pages.
620
+ - **Type:** boolean
621
+
622
+ - **`--experimentalScreencast`/ `--experimental-screencast`**
623
+ Exposes experimental screencast tools (requires ffmpeg). Install ffmpeg https://www.ffmpeg.org/download.html and ensure it is available in the MCP server PATH.
624
+ - **Type:** boolean
625
+
626
+ - **`--experimentalFfmpegPath`/ `--experimental-ffmpeg-path`**
627
+ Path to ffmpeg executable for screencast recording.
628
+ - **Type:** string
629
+
630
+ - **`--categoryExperimentalWebmcp`/ `--category-experimental-webmcp`**
631
+ Set to true to enable debugging WebMCP tools. Requires Chrome 149+ with the following flags: `--enable-features=WebMCPTesting,DevToolsWebMCPSupport`
632
+ - **Type:** boolean
633
+
634
+ - **`--chromeArg`/ `--chrome-arg`**
635
+ Additional arguments for Chrome. Only applies when Chrome is launched by chrome-devtools-mcp.
636
+ - **Type:** array
637
+
638
+ - **`--ignoreDefaultChromeArg`/ `--ignore-default-chrome-arg`**
639
+ Explicitly disable default arguments for Chrome. Only applies when Chrome is launched by chrome-devtools-mcp.
640
+ - **Type:** array
641
+
642
+ - **`--categoryEmulation`/ `--category-emulation`**
643
+ Set to false to exclude tools related to emulation.
644
+ - **Type:** boolean
645
+ - **Default:** `true`
646
+
647
+ - **`--categoryPerformance`/ `--category-performance`**
648
+ Set to false to exclude tools related to performance.
649
+ - **Type:** boolean
650
+ - **Default:** `true`
651
+
652
+ - **`--categoryNetwork`/ `--category-network`**
653
+ Set to false to exclude tools related to network.
654
+ - **Type:** boolean
655
+ - **Default:** `true`
656
+
657
+ - **`--categoryExtensions`/ `--category-extensions`**
658
+ 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.
659
+ - **Type:** boolean
660
+ - **Default:** `false`
661
+
662
+ - **`--categoryExperimentalThirdParty`/ `--category-experimental-third-party`**
663
+ Set to true to enable third-party developer tools exposed by the inspected page itself
664
+ - **Type:** boolean
665
+ - **Default:** `false`
666
+
667
+ - **`--performanceCrux`/ `--performance-crux`**
668
+ Set to false to disable sending URLs from performance traces to CrUX API to get field performance data.
669
+ - **Type:** boolean
670
+ - **Default:** `true`
671
+
672
+ - **`--usageStatistics`/ `--usage-statistics`**
673
+ 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.
674
+ - **Type:** boolean
675
+ - **Default:** `true`
676
+
677
+ - **`--slim`**
678
+ Exposes a "slim" set of 3 tools covering navigation, script execution and screenshots only. Useful for basic browser tasks.
679
+ - **Type:** boolean
680
+
681
+ - **`--redactNetworkHeaders`/ `--redact-network-headers`**
682
+ If true, redacts some of the network headers considered senstive before returning to the client.
683
+ - **Type:** boolean
684
+ - **Default:** `false`
685
+
686
+ <!-- END AUTO GENERATED OPTIONS -->
687
+
688
+ Pass them via the `args` property in the JSON configuration. For example:
689
+
690
+ ```json
691
+ {
692
+ "mcpServers": {
693
+ "chrome-devtools": {
694
+ "command": "npx",
695
+ "args": [
696
+ "chrome-devtools-mcp@latest",
697
+ "--channel=canary",
698
+ "--headless=true",
699
+ "--isolated=true"
700
+ ]
701
+ }
702
+ }
703
+ }
704
+ ```
705
+
706
+ ### Connecting via WebSocket with custom headers
707
+
708
+ You can connect directly to a Chrome WebSocket endpoint and include custom headers (e.g., for authentication):
709
+
710
+ ```json
711
+ {
712
+ "mcpServers": {
713
+ "chrome-devtools": {
714
+ "command": "npx",
715
+ "args": [
716
+ "chrome-devtools-mcp@latest",
717
+ "--wsEndpoint=ws://127.0.0.1:9222/devtools/browser/<id>",
718
+ "--wsHeaders={\"Authorization\":\"Bearer YOUR_TOKEN\"}"
719
+ ]
720
+ }
721
+ }
722
+ }
723
+ ```
724
+
725
+ 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.
726
+
727
+ You can also run `npx chrome-devtools-mcp@latest --help` to see all available configuration options.
728
+
729
+ ## Concepts
730
+
731
+ ### User data directory
732
+
733
+ `chrome-devtools-mcp` starts a Chrome's stable channel instance using the following user
734
+ data directory:
735
+
736
+ - Linux / macOS: `$HOME/.cache/chrome-devtools-mcp/chrome-profile-$CHANNEL`
737
+ - Windows: `%HOMEPATH%/.cache/chrome-devtools-mcp/chrome-profile-$CHANNEL`
738
+
739
+ The user data directory is not cleared between runs and shared across
740
+ all instances of `chrome-devtools-mcp`. Set the `isolated` option to `true`
741
+ to use a temporary user data dir instead which will be cleared automatically after
742
+ the browser is closed.
743
+
744
+ ### Connecting to a running Chrome instance
745
+
746
+ 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:
747
+
748
+ - If you would like to maintain the same application state when alternating between manual site testing and agent-driven testing.
749
+ - 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).
750
+ - 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.
751
+
752
+ In these cases, start Chrome first and let the Chrome DevTools MCP server connect to it. There are two ways to do so:
753
+
754
+ - **Automatic connection (available in Chrome 144)**: best for sharing state between manual and agent-driven testing.
755
+ - **Manual connection via remote debugging port**: best when running inside a sandboxed environment.
756
+
757
+ #### Automatically connecting to a running Chrome instance
758
+
759
+ **Step 1:** Set up remote debugging in Chrome
760
+
761
+ In Chrome (\>= M144), do the following to set up remote debugging:
762
+
763
+ 1. Navigate to `chrome://inspect/#remote-debugging` to enable remote debugging.
764
+ 2. Follow the dialog UI to allow or disallow incoming debugging connections.
765
+
766
+ **Step 2:** Configure Chrome DevTools MCP server to automatically connect to a running Chrome Instance
767
+
768
+ To connect the `chrome-devtools-mcp` server to the running Chrome instance, use
769
+ `--autoConnect` command line argument for the MCP server.
770
+
771
+ The following code snippet is an example configuration for gemini-cli:
772
+
773
+ ```json
774
+ {
775
+ "mcpServers": {
776
+ "chrome-devtools": {
777
+ "command": "npx",
778
+ "args": ["chrome-devtools-mcp@latest", "--autoConnect"]
779
+ }
780
+ }
781
+ }
782
+ ```
783
+
784
+ **Step 3:** Test your setup
785
+
786
+ Make sure your browser is running. Open gemini-cli and run the following prompt:
787
+
788
+ ```none
789
+ Check the performance of https://developers.chrome.com
790
+ ```
791
+
792
+ > [!NOTE]
793
+ > 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.
794
+
795
+ The Chrome DevTools MCP server will try to connect to your running Chrome
796
+ instance. It shows a dialog asking for user permission.
797
+
798
+ Clicking **Allow** results in the Chrome DevTools MCP server opening
799
+ [developers.chrome.com](http://developers.chrome.com) and taking a performance
800
+ trace.
801
+
802
+ #### Manual connection using port forwarding
803
+
804
+ 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.
805
+
806
+ Here is a step-by-step guide on how to connect to a running Chrome instance:
807
+
808
+ **Step 1: Configure the MCP client**
809
+
810
+ 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.
811
+
812
+ ```json
813
+ {
814
+ "mcpServers": {
815
+ "chrome-devtools": {
816
+ "command": "npx",
817
+ "args": [
818
+ "chrome-devtools-mcp@latest",
819
+ "--browser-url=http://127.0.0.1:9222"
820
+ ]
821
+ }
822
+ }
823
+ }
824
+ ```
825
+
826
+ **Step 2: Start the Chrome browser**
827
+
828
+ > [!WARNING]
829
+ > 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.
830
+
831
+ 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.
832
+
833
+ 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.
834
+
835
+ **macOS**
836
+
837
+ ```bash
838
+ /Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --remote-debugging-port=9222 --user-data-dir=/tmp/chrome-profile-stable
839
+ ```
840
+
841
+ **Linux**
842
+
843
+ ```bash
844
+ /usr/bin/google-chrome --remote-debugging-port=9222 --user-data-dir=/tmp/chrome-profile-stable
845
+ ```
846
+
847
+ **Windows**
848
+
849
+ ```bash
850
+ "C:\Program Files\Google\Chrome\Application\chrome.exe" --remote-debugging-port=9222 --user-data-dir="%TEMP%\chrome-profile-stable"
851
+ ```
852
+
853
+ **Step 3: Test your setup**
854
+
855
+ After configuring the MCP client and starting the Chrome browser, you can test your setup by running a simple prompt in your MCP client:
856
+
857
+ ```
858
+ Check the performance of https://developers.chrome.com
859
+ ```
860
+
861
+ Your MCP client should connect to the running Chrome instance and receive a performance report.
862
+
863
+ 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).
864
+
865
+ For more details on remote debugging, see the [Chrome DevTools documentation](https://developer.chrome.com/docs/devtools/remote-debugging/).
866
+
867
+ ### Debugging Chrome on Android
868
+
869
+ Please consult [these instructions](./docs/debugging-android.md).
870
+
871
+ ## Known limitations
872
+
873
+ See [Troubleshooting](./docs/troubleshooting.md).