@chenpx976/chrome-devtools-mcp 0.0.0-stage → 1.13.1
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.
- package/LICENSE +202 -0
- package/README.md +223 -2
- package/out/Default/gen/src/ArcBrowser.js +128 -0
- package/out/Default/gen/src/BrowserManager.js +562 -0
- package/out/Default/gen/src/LogpointManager.js +287 -0
- package/out/Default/gen/src/McpContext.js +1031 -0
- package/out/Default/gen/src/McpPage.js +1427 -0
- package/out/Default/gen/src/McpResponse.js +1350 -0
- package/out/Default/gen/src/McpWorker.js +66 -0
- package/out/Default/gen/src/NetworkOverrideManager.js +447 -0
- package/out/Default/gen/src/SlimMcpResponse.js +23 -0
- package/out/Default/gen/src/TextSnapshot.js +336 -0
- package/out/Default/gen/src/ToolHandler.js +531 -0
- package/out/Default/gen/src/bin/check-latest-version.js +53 -0
- package/out/Default/gen/src/bin/chrome-devtools-mcp-main.js +80 -0
- package/out/Default/gen/src/bin/chrome-devtools-mcp.js +23 -0
- package/out/Default/gen/src/bin/chrome-devtools.js +213 -0
- package/out/Default/gen/src/collectors/PageCollector.js +325 -0
- package/out/Default/gen/src/collectors/ServiceWorkerCollector.js +198 -0
- package/out/Default/gen/src/collectors/constants.js +7 -0
- package/out/Default/gen/src/config/ConfigLocator.js +70 -0
- package/out/Default/gen/src/config/ConfigParser.js +163 -0
- package/out/Default/gen/src/config/ConfigWatcher.js +94 -0
- package/out/Default/gen/src/config/ServerConfig.js +284 -0
- package/out/Default/gen/src/config/browser-options.js +135 -0
- package/out/Default/gen/src/config/category-options.js +84 -0
- package/out/Default/gen/src/config/cli-commands.js +208 -0
- package/out/Default/gen/src/config/cli-options.js +2090 -0
- package/out/Default/gen/src/config/mcp-options.js +371 -0
- package/out/Default/gen/src/config/puppeteer-options.js +69 -0
- package/out/Default/gen/src/config/tool-options.js +60 -0
- package/out/Default/gen/src/daemon/client.js +281 -0
- package/out/Default/gen/src/daemon/daemon.js +280 -0
- package/out/Default/gen/src/daemon/types.js +7 -0
- package/out/Default/gen/src/daemon/utils.js +173 -0
- package/out/Default/gen/src/devtools/DevToolsCommentBridge.js +151 -0
- package/out/Default/gen/src/devtools/DevtoolsUtils.js +413 -0
- package/out/Default/gen/src/devtools/McpHostBindingAdapter.js +164 -0
- package/out/Default/gen/src/devtools/issueDescriptions.js +42 -0
- package/out/Default/gen/src/formatters/CommentFormatter.js +73 -0
- package/out/Default/gen/src/formatters/ConsoleFormatter.js +363 -0
- package/out/Default/gen/src/formatters/CssFormatter.js +883 -0
- package/out/Default/gen/src/formatters/HeapSnapshotFormatter.js +239 -0
- package/out/Default/gen/src/formatters/IssueFormatter.js +194 -0
- package/out/Default/gen/src/formatters/LogpointFormatter.js +62 -0
- package/out/Default/gen/src/formatters/NetworkFormatter.js +295 -0
- package/out/Default/gen/src/formatters/NetworkOverridesFormatter.js +57 -0
- package/out/Default/gen/src/formatters/RemoteObjectFormatter.js +231 -0
- package/out/Default/gen/src/formatters/SnapshotFormatter.js +172 -0
- package/out/Default/gen/src/formatters/WebAuthnFormatter.js +56 -0
- package/out/Default/gen/src/formatters/constants.js +8 -0
- package/out/Default/gen/src/index.js +434 -0
- package/out/Default/gen/src/processors/ChunkedTraceParser.js +361 -0
- package/out/Default/gen/src/processors/HeapSnapshotManager.js +595 -0
- package/out/Default/gen/src/processors/PerformanceTrace.js +132 -0
- package/out/Default/gen/src/telemetry/ClearcutLogger.js +271 -0
- package/out/Default/gen/src/telemetry/WatchdogClient.js +60 -0
- package/out/Default/gen/src/telemetry/errors.js +18 -0
- package/out/Default/gen/src/telemetry/flagUtils.js +89 -0
- package/out/Default/gen/src/telemetry/metricsRegistry.js +85 -0
- package/out/Default/gen/src/telemetry/persistence.js +82 -0
- package/out/Default/gen/src/telemetry/transformation.js +229 -0
- package/out/Default/gen/src/telemetry/types.js +36 -0
- package/out/Default/gen/src/telemetry/watchdog/ClearcutSender.js +213 -0
- package/out/Default/gen/src/telemetry/watchdog/main.js +142 -0
- package/out/Default/gen/src/third_party/THIRD_PARTY_NOTICES +3774 -0
- package/out/Default/gen/src/third_party/browser.js +808 -0
- package/out/Default/gen/src/third_party/bundled-packages.json +11 -0
- package/out/Default/gen/src/third_party/cli.js +139 -0
- package/out/Default/gen/src/third_party/devtools-formatter-worker.js +125 -0
- package/out/Default/gen/src/third_party/devtools-heap-snapshot-worker.js +111 -0
- package/out/Default/gen/src/third_party/index.js +128 -0
- package/out/Default/gen/src/third_party/issue-descriptions/CoepCoopSandboxedIframeCannotNavigateToCoopPage.md +4 -0
- package/out/Default/gen/src/third_party/issue-descriptions/CoepCorpNotSameOrigin.md +8 -0
- package/out/Default/gen/src/third_party/issue-descriptions/CoepCorpNotSameOriginAfterDefaultedToSameOriginByCoep.md +18 -0
- package/out/Default/gen/src/third_party/issue-descriptions/CoepCorpNotSameSite.md +7 -0
- package/out/Default/gen/src/third_party/issue-descriptions/CoepFrameResourceNeedsCoepHeader.md +10 -0
- package/out/Default/gen/src/third_party/issue-descriptions/CompatibilityModeQuirks.md +5 -0
- package/out/Default/gen/src/third_party/issue-descriptions/CookieAttributeValueExceedsMaxSize.md +5 -0
- package/out/Default/gen/src/third_party/issue-descriptions/LowTextContrast.md +5 -0
- package/out/Default/gen/src/third_party/issue-descriptions/SameSiteNoneInsecureErrorRead.md +8 -0
- package/out/Default/gen/src/third_party/issue-descriptions/SameSiteNoneInsecureErrorSet.md +8 -0
- package/out/Default/gen/src/third_party/issue-descriptions/SameSiteNoneInsecureWarnRead.md +8 -0
- package/out/Default/gen/src/third_party/issue-descriptions/SameSiteNoneInsecureWarnSet.md +8 -0
- package/out/Default/gen/src/third_party/issue-descriptions/SameSiteUnspecifiedLaxAllowUnsafeRead.md +9 -0
- package/out/Default/gen/src/third_party/issue-descriptions/SameSiteUnspecifiedLaxAllowUnsafeSet.md +9 -0
- package/out/Default/gen/src/third_party/issue-descriptions/bounceTrackingMitigations.md +3 -0
- package/out/Default/gen/src/third_party/issue-descriptions/clientHintMetaTagAllowListInvalidOrigin.md +4 -0
- package/out/Default/gen/src/third_party/issue-descriptions/clientHintMetaTagModifiedHTML.md +4 -0
- package/out/Default/gen/src/third_party/issue-descriptions/connectionAllowlistEmbeddingRequirementNotSatisfied.md +26 -0
- package/out/Default/gen/src/third_party/issue-descriptions/connectionAllowlistIFrameAttributeLoosensEmbeddingRequirement.md +19 -0
- package/out/Default/gen/src/third_party/issue-descriptions/connectionAllowlistInvalidAllowConnectionAllowlistFrom.md +21 -0
- package/out/Default/gen/src/third_party/issue-descriptions/connectionAllowlistInvalidAllowlistItemType.md +12 -0
- package/out/Default/gen/src/third_party/issue-descriptions/connectionAllowlistInvalidHeader.md +12 -0
- package/out/Default/gen/src/third_party/issue-descriptions/connectionAllowlistInvalidUrlPattern.md +8 -0
- package/out/Default/gen/src/third_party/issue-descriptions/connectionAllowlistItemNotInnerList.md +12 -0
- package/out/Default/gen/src/third_party/issue-descriptions/connectionAllowlistMoreThanOneList.md +7 -0
- package/out/Default/gen/src/third_party/issue-descriptions/connectionAllowlistReportingEndpointNotToken.md +10 -0
- package/out/Default/gen/src/third_party/issue-descriptions/cookieCrossSiteRedirectDowngrade.md +12 -0
- package/out/Default/gen/src/third_party/issue-descriptions/cookieExcludeDomainNonAscii.md +11 -0
- package/out/Default/gen/src/third_party/issue-descriptions/cookieExcludePortMismatch.md +8 -0
- package/out/Default/gen/src/third_party/issue-descriptions/cookieExcludeSchemeMismatch.md +7 -0
- package/out/Default/gen/src/third_party/issue-descriptions/cookieExcludeThirdPartyPhaseoutRead.md +6 -0
- package/out/Default/gen/src/third_party/issue-descriptions/cookieExcludeThirdPartyPhaseoutSet.md +6 -0
- package/out/Default/gen/src/third_party/issue-descriptions/cookieWarnDomainNonAscii.md +11 -0
- package/out/Default/gen/src/third_party/issue-descriptions/cookieWarnMetadataGrantRead.md +3 -0
- package/out/Default/gen/src/third_party/issue-descriptions/cookieWarnMetadataGrantReadOptOut.md +5 -0
- package/out/Default/gen/src/third_party/issue-descriptions/cookieWarnMetadataGrantSet.md +3 -0
- package/out/Default/gen/src/third_party/issue-descriptions/cookieWarnMetadataGrantSetOptOut.md +5 -0
- package/out/Default/gen/src/third_party/issue-descriptions/cookieWarnThirdPartyPhaseoutRead.md +6 -0
- package/out/Default/gen/src/third_party/issue-descriptions/cookieWarnThirdPartyPhaseoutSet.md +6 -0
- package/out/Default/gen/src/third_party/issue-descriptions/corsAllowCredentialsRequired.md +6 -0
- package/out/Default/gen/src/third_party/issue-descriptions/corsDisabledScheme.md +7 -0
- package/out/Default/gen/src/third_party/issue-descriptions/corsDisallowedByMode.md +7 -0
- package/out/Default/gen/src/third_party/issue-descriptions/corsHeaderDisallowedByPreflightResponse.md +5 -0
- package/out/Default/gen/src/third_party/issue-descriptions/corsInvalidHeaderValues.md +7 -0
- package/out/Default/gen/src/third_party/issue-descriptions/corsLocalNetworkAccessPermissionDenied.md +19 -0
- package/out/Default/gen/src/third_party/issue-descriptions/corsMethodDisallowedByPreflightResponse.md +5 -0
- package/out/Default/gen/src/third_party/issue-descriptions/corsNoCorsRedirectModeNotFollow.md +5 -0
- package/out/Default/gen/src/third_party/issue-descriptions/corsOriginMismatch.md +6 -0
- package/out/Default/gen/src/third_party/issue-descriptions/corsPreflightResponseInvalid.md +5 -0
- package/out/Default/gen/src/third_party/issue-descriptions/corsRedirectContainsCredentials.md +5 -0
- package/out/Default/gen/src/third_party/issue-descriptions/corsWildcardOriginNotAllowed.md +9 -0
- package/out/Default/gen/src/third_party/issue-descriptions/cspEvalViolation.md +9 -0
- package/out/Default/gen/src/third_party/issue-descriptions/cspInlineViolation.md +10 -0
- package/out/Default/gen/src/third_party/issue-descriptions/cspTrustedTypesPolicyViolation.md +5 -0
- package/out/Default/gen/src/third_party/issue-descriptions/cspTrustedTypesSinkViolation.md +8 -0
- package/out/Default/gen/src/third_party/issue-descriptions/cspURLViolation.md +10 -0
- package/out/Default/gen/src/third_party/issue-descriptions/deprecation.md +3 -0
- package/out/Default/gen/src/third_party/issue-descriptions/emailVerificationRequestAccountsEmptyList.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/emailVerificationRequestAccountsHttpNotFound.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/emailVerificationRequestAccountsInvalidContentType.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/emailVerificationRequestAccountsInvalidResponse.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/emailVerificationRequestAccountsNoResponse.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/emailVerificationRequestDnsFetchFailed.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/emailVerificationRequestDnsInvalidRecord.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/emailVerificationRequestEmailVerificationWellKnownHttpNotFound.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/emailVerificationRequestEmailVerificationWellKnownInvalidContentType.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/emailVerificationRequestEmailVerificationWellKnownInvalidResponse.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/emailVerificationRequestEmailVerificationWellKnownNoResponse.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/emailVerificationRequestInvalidEmail.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/emailVerificationRequestJwksHttpNotFound.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/emailVerificationRequestJwksInvalidResponse.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/emailVerificationRequestKeyBindingSigningFailed.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/emailVerificationRequestRpOriginIsOpaque.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/emailVerificationRequestTokenHttpNotFound.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/emailVerificationRequestTokenInvalidContentType.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/emailVerificationRequestTokenInvalidResponse.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/emailVerificationRequestTokenInvalidSdJwt.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/emailVerificationRequestTokenMalformedSdJwt.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/emailVerificationRequestTokenNoResponse.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/emailVerificationRequestTokenVerificationKbInvalidAudience.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/emailVerificationRequestTokenVerificationKbInvalidIssuedAt.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/emailVerificationRequestTokenVerificationKbInvalidNonce.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/emailVerificationRequestTokenVerificationKbInvalidSdHash.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/emailVerificationRequestTokenVerificationKbInvalidTyp.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/emailVerificationRequestTokenVerificationKbMissingAud.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/emailVerificationRequestTokenVerificationKbMissingCnf.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/emailVerificationRequestTokenVerificationKbMissingIat.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/emailVerificationRequestTokenVerificationKbMissingNonce.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/emailVerificationRequestTokenVerificationKbMissingSdHash.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/emailVerificationRequestTokenVerificationKbSignatureFailed.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/emailVerificationRequestTokenVerificationSdJwtInvalidEmail.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/emailVerificationRequestTokenVerificationSdJwtInvalidEmailVerified.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/emailVerificationRequestTokenVerificationSdJwtInvalidHolderKey.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/emailVerificationRequestTokenVerificationSdJwtInvalidIssuedAt.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/emailVerificationRequestTokenVerificationSdJwtInvalidIssuer.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/emailVerificationRequestTokenVerificationSdJwtJwksMissingKeys.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/emailVerificationRequestTokenVerificationSdJwtMissingCnf.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/emailVerificationRequestTokenVerificationSdJwtMissingEmail.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/emailVerificationRequestTokenVerificationSdJwtMissingIat.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/emailVerificationRequestTokenVerificationSdJwtMissingIss.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/emailVerificationRequestTokenVerificationSdJwtSignatureFailed.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/emailVerificationRequestTokenVerificationSdJwtUnsupportedHeaderAlg.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/emailVerificationRequestUserLoggedOut.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/emailVerificationRequestWellKnownAccountsEndpointCrossOrigin.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/emailVerificationRequestWellKnownHttpNotFound.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/emailVerificationRequestWellKnownInvalidContentType.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/emailVerificationRequestWellKnownInvalidResponse.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/emailVerificationRequestWellKnownIssuanceEndpointCrossOrigin.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/emailVerificationRequestWellKnownListEmpty.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/emailVerificationRequestWellKnownMissingAccountsEndpoint.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/emailVerificationRequestWellKnownMissingIssuanceEndpoint.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/emailVerificationRequestWellKnownNoResponse.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/emailVerificationRequestWellKnownUnsupportedSigningAlgorithm.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/federatedAuthRequestAccountsBlockedByConnectionAllowlist.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/federatedAuthRequestAccountsHttpNotFound.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/federatedAuthRequestAccountsInvalidResponse.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/federatedAuthRequestAccountsNoResponse.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/federatedAuthRequestApprovalDeclined.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/federatedAuthRequestCanceled.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/federatedAuthRequestConfigBlockedByConnectionAllowlist.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/federatedAuthRequestErrorFetchingSignin.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/federatedAuthRequestErrorIdToken.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/federatedAuthRequestIdTokenBlockedByConnectionAllowlist.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/federatedAuthRequestIdTokenHttpNotFound.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/federatedAuthRequestIdTokenInvalidRequest.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/federatedAuthRequestIdTokenInvalidResponse.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/federatedAuthRequestIdTokenNoResponse.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/federatedAuthRequestInvalidSigninResponse.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/federatedAuthRequestManifestHttpNotFound.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/federatedAuthRequestManifestInvalidResponse.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/federatedAuthRequestManifestNoResponse.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/federatedAuthRequestTooManyRequests.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/federatedAuthRequestWellKnownBlockedByConnectionAllowlist.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/federatedAuthUserInfoRequestInvalidAccountsResponse.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/federatedAuthUserInfoRequestInvalidConfigOrWellKnown.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/federatedAuthUserInfoRequestNoAccountSharingPermission.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/federatedAuthUserInfoRequestNoApiPermission.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/federatedAuthUserInfoRequestNoReturningUserFromFetchedAccounts.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/federatedAuthUserInfoRequestNotIframe.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/federatedAuthUserInfoRequestNotPotentiallyTrustworthy.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/federatedAuthUserInfoRequestNotSameOrigin.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/federatedAuthUserInfoRequestNotSignedInWithIdp.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/fetchingPartitionedBlobURL.md +7 -0
- package/out/Default/gen/src/third_party/issue-descriptions/genericBackUINavigationWouldSkipAd.md +4 -0
- package/out/Default/gen/src/third_party/issue-descriptions/genericFormAriaLabelledByToNonExistingIdError.md +8 -0
- package/out/Default/gen/src/third_party/issue-descriptions/genericFormAutocompleteAttributeEmptyError.md +5 -0
- package/out/Default/gen/src/third_party/issue-descriptions/genericFormDuplicateIdForInputError.md +5 -0
- package/out/Default/gen/src/third_party/issue-descriptions/genericFormEmptyIdAndNameAttributesForInputError.md +5 -0
- package/out/Default/gen/src/third_party/issue-descriptions/genericFormInputAssignedAutocompleteValueToIdOrNameAttributeError.md +5 -0
- package/out/Default/gen/src/third_party/issue-descriptions/genericFormInputHasWrongButWellIntendedAutocompleteValueError.md +5 -0
- package/out/Default/gen/src/third_party/issue-descriptions/genericFormInputWithNoLabelError.md +5 -0
- package/out/Default/gen/src/third_party/issue-descriptions/genericFormLabelForMatchesNonExistingIdError.md +5 -0
- package/out/Default/gen/src/third_party/issue-descriptions/genericFormLabelForNameError.md +5 -0
- package/out/Default/gen/src/third_party/issue-descriptions/genericFormLabelHasNeitherForNorNestedInputError.md +5 -0
- package/out/Default/gen/src/third_party/issue-descriptions/genericFormModelContextMissingToolDescription.md +5 -0
- package/out/Default/gen/src/third_party/issue-descriptions/genericFormModelContextMissingToolName.md +5 -0
- package/out/Default/gen/src/third_party/issue-descriptions/genericFormModelContextParameterMissingName.md +5 -0
- package/out/Default/gen/src/third_party/issue-descriptions/genericFormModelContextParameterMissingTitleAndDescription.md +5 -0
- package/out/Default/gen/src/third_party/issue-descriptions/genericFormModelContextRequiredParameterMissingName.md +5 -0
- package/out/Default/gen/src/third_party/issue-descriptions/genericGeolocationPromptWithoutUserGesture.md +5 -0
- package/out/Default/gen/src/third_party/issue-descriptions/genericNavigationEntryMarkedSkippable.md +7 -0
- package/out/Default/gen/src/third_party/issue-descriptions/genericResponseWasBlockedByORB.md +4 -0
- package/out/Default/gen/src/third_party/issue-descriptions/heavyAd.md +10 -0
- package/out/Default/gen/src/third_party/issue-descriptions/lazyLoadImageZeroSize.md +7 -0
- package/out/Default/gen/src/third_party/issue-descriptions/mixedContent.md +5 -0
- package/out/Default/gen/src/third_party/issue-descriptions/navigatingPartitionedBlobURL.md +5 -0
- package/out/Default/gen/src/third_party/issue-descriptions/permissionElementActivationDisabled.md +7 -0
- package/out/Default/gen/src/third_party/issue-descriptions/permissionElementActivationDisabledWithOccluder.md +9 -0
- package/out/Default/gen/src/third_party/issue-descriptions/permissionElementActivationDisabledWithOccluderParent.md +9 -0
- package/out/Default/gen/src/third_party/issue-descriptions/permissionElementCspFrameAncestorsMissing.md +5 -0
- package/out/Default/gen/src/third_party/issue-descriptions/permissionElementFencedFrameDisallowed.md +5 -0
- package/out/Default/gen/src/third_party/issue-descriptions/permissionElementFontSizeTooLarge.md +5 -0
- package/out/Default/gen/src/third_party/issue-descriptions/permissionElementFontSizeTooSmall.md +5 -0
- package/out/Default/gen/src/third_party/issue-descriptions/permissionElementGeolocationDeprecated.md +5 -0
- package/out/Default/gen/src/third_party/issue-descriptions/permissionElementInsetBoxShadowUnsupported.md +5 -0
- package/out/Default/gen/src/third_party/issue-descriptions/permissionElementInvalidDisplayStyle.md +5 -0
- package/out/Default/gen/src/third_party/issue-descriptions/permissionElementInvalidSizeValue.md +5 -0
- package/out/Default/gen/src/third_party/issue-descriptions/permissionElementInvalidType.md +5 -0
- package/out/Default/gen/src/third_party/issue-descriptions/permissionElementInvalidTypeActivation.md +5 -0
- package/out/Default/gen/src/third_party/issue-descriptions/permissionElementLowContrast.md +5 -0
- package/out/Default/gen/src/third_party/issue-descriptions/permissionElementNonOpaqueColor.md +5 -0
- package/out/Default/gen/src/third_party/issue-descriptions/permissionElementPaddingBottomUnsupported.md +6 -0
- package/out/Default/gen/src/third_party/issue-descriptions/permissionElementPaddingRightUnsupported.md +6 -0
- package/out/Default/gen/src/third_party/issue-descriptions/permissionElementPermissionsPolicyBlocked.md +5 -0
- package/out/Default/gen/src/third_party/issue-descriptions/permissionElementRegistrationFailed.md +5 -0
- package/out/Default/gen/src/third_party/issue-descriptions/permissionElementRequestInProgress.md +5 -0
- package/out/Default/gen/src/third_party/issue-descriptions/permissionElementSecurityChecksFailed.md +5 -0
- package/out/Default/gen/src/third_party/issue-descriptions/permissionElementTypeNotSupported.md +5 -0
- package/out/Default/gen/src/third_party/issue-descriptions/permissionElementUntrustedEvent.md +7 -0
- package/out/Default/gen/src/third_party/issue-descriptions/placeholderDescriptionForInvisibleIssues.md +3 -0
- package/out/Default/gen/src/third_party/issue-descriptions/propertyRuleInvalidNameIssue.md +3 -0
- package/out/Default/gen/src/third_party/issue-descriptions/propertyRuleIssue.md +7 -0
- package/out/Default/gen/src/third_party/issue-descriptions/selectElementAccessibilityDisallowedOptGroupChild.md +7 -0
- package/out/Default/gen/src/third_party/issue-descriptions/selectElementAccessibilityDisallowedSelectChild.md +7 -0
- package/out/Default/gen/src/third_party/issue-descriptions/selectElementAccessibilityInteractiveContentAttributesSelectDescendant.md +3 -0
- package/out/Default/gen/src/third_party/issue-descriptions/selectElementAccessibilityInteractiveContentLegendChild.md +3 -0
- package/out/Default/gen/src/third_party/issue-descriptions/selectElementAccessibilityInteractiveContentOptionChild.md +3 -0
- package/out/Default/gen/src/third_party/issue-descriptions/selectElementAccessibilityNonPhrasingContentOptionChild.md +3 -0
- package/out/Default/gen/src/third_party/issue-descriptions/selectivePermissionsIntervention.md +7 -0
- package/out/Default/gen/src/third_party/issue-descriptions/sharedArrayBuffer.md +7 -0
- package/out/Default/gen/src/third_party/issue-descriptions/sharedDictionaryUseErrorCrossOriginNoCorsRequest.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/sharedDictionaryUseErrorDictionaryLoadFailure.md +3 -0
- package/out/Default/gen/src/third_party/issue-descriptions/sharedDictionaryUseErrorMatchingDictionaryNotUsed.md +3 -0
- package/out/Default/gen/src/third_party/issue-descriptions/sharedDictionaryUseErrorUnexpectedContentDictionaryHeader.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/sharedDictionaryWriteErrorCossOriginNoCorsRequest.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/sharedDictionaryWriteErrorDisallowedBySettings.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/sharedDictionaryWriteErrorExpiredResponse.md +3 -0
- package/out/Default/gen/src/third_party/issue-descriptions/sharedDictionaryWriteErrorFeatureDisabled.md +3 -0
- package/out/Default/gen/src/third_party/issue-descriptions/sharedDictionaryWriteErrorInsufficientResources.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/sharedDictionaryWriteErrorInvalidMatchField.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/sharedDictionaryWriteErrorInvalidStructuredHeader.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/sharedDictionaryWriteErrorInvalidTTLField.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/sharedDictionaryWriteErrorNavigationRequest.md +3 -0
- package/out/Default/gen/src/third_party/issue-descriptions/sharedDictionaryWriteErrorNoMatchField.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/sharedDictionaryWriteErrorNonIntegerTTLField.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/sharedDictionaryWriteErrorNonListMatchDestField.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/sharedDictionaryWriteErrorNonSecureContext.md +3 -0
- package/out/Default/gen/src/third_party/issue-descriptions/sharedDictionaryWriteErrorNonStringIdField.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/sharedDictionaryWriteErrorNonStringInMatchDestList.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/sharedDictionaryWriteErrorNonStringMatchField.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/sharedDictionaryWriteErrorNonTokenTypeField.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/sharedDictionaryWriteErrorRequestAborted.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/sharedDictionaryWriteErrorShuttingDown.md +1 -0
- package/out/Default/gen/src/third_party/issue-descriptions/sharedDictionaryWriteErrorTooLongIdField.md +3 -0
- package/out/Default/gen/src/third_party/issue-descriptions/sharedDictionaryWriteErrorUnsupportedType.md +3 -0
- package/out/Default/gen/src/third_party/issue-descriptions/sriInvalidSignatureHeader.md +14 -0
- package/out/Default/gen/src/third_party/issue-descriptions/sriInvalidSignatureInputHeader.md +15 -0
- package/out/Default/gen/src/third_party/issue-descriptions/sriMissingSignatureHeader.md +8 -0
- package/out/Default/gen/src/third_party/issue-descriptions/sriMissingSignatureInputHeader.md +7 -0
- package/out/Default/gen/src/third_party/issue-descriptions/sriSignatureHeaderValueIsIncorrectLength.md +11 -0
- package/out/Default/gen/src/third_party/issue-descriptions/sriSignatureHeaderValueIsNotByteSequence.md +14 -0
- package/out/Default/gen/src/third_party/issue-descriptions/sriSignatureHeaderValueIsParameterized.md +15 -0
- package/out/Default/gen/src/third_party/issue-descriptions/sriSignatureInputHeaderInvalidComponentName.md +8 -0
- package/out/Default/gen/src/third_party/issue-descriptions/sriSignatureInputHeaderInvalidComponentType.md +13 -0
- package/out/Default/gen/src/third_party/issue-descriptions/sriSignatureInputHeaderInvalidDerivedComponentParameter.md +4 -0
- package/out/Default/gen/src/third_party/issue-descriptions/sriSignatureInputHeaderInvalidHeaderComponentParameter.md +5 -0
- package/out/Default/gen/src/third_party/issue-descriptions/sriSignatureInputHeaderInvalidParameter.md +11 -0
- package/out/Default/gen/src/third_party/issue-descriptions/sriSignatureInputHeaderKeyIdLength.md +12 -0
- package/out/Default/gen/src/third_party/issue-descriptions/sriSignatureInputHeaderMissingLabel.md +6 -0
- package/out/Default/gen/src/third_party/issue-descriptions/sriSignatureInputHeaderMissingRequiredParameters.md +8 -0
- package/out/Default/gen/src/third_party/issue-descriptions/sriSignatureInputHeaderValueMissingComponents.md +11 -0
- package/out/Default/gen/src/third_party/issue-descriptions/sriSignatureInputHeaderValueNotInnerList.md +11 -0
- package/out/Default/gen/src/third_party/issue-descriptions/sriValidationFailedIntegrityMismatch.md +12 -0
- package/out/Default/gen/src/third_party/issue-descriptions/sriValidationFailedInvalidLength.md +5 -0
- package/out/Default/gen/src/third_party/issue-descriptions/sriValidationFailedSignatureExpired.md +6 -0
- package/out/Default/gen/src/third_party/issue-descriptions/sriValidationFailedSignatureMismatch.md +11 -0
- package/out/Default/gen/src/third_party/issue-descriptions/stylesheetLateImport.md +4 -0
- package/out/Default/gen/src/third_party/issue-descriptions/stylesheetRequestFailed.md +3 -0
- package/out/Default/gen/src/third_party/issue-descriptions/summaryElementAccessibilityInteractiveContentSummaryDescendant.md +3 -0
- package/out/Default/gen/src/third_party/issue-descriptions/unencodedDigestIncorrectDigestLength.md +12 -0
- package/out/Default/gen/src/third_party/issue-descriptions/unencodedDigestIncorrectDigestType.md +17 -0
- package/out/Default/gen/src/third_party/issue-descriptions/unencodedDigestMalformedDictionary.md +14 -0
- package/out/Default/gen/src/third_party/issue-descriptions/unencodedDigestUnknownAlgorithm.md +15 -0
- package/out/Default/gen/src/third_party/issue-descriptions/webInstallManifestMissingId.md +3 -0
- package/out/Default/gen/src/third_party/issue-descriptions/webInstallManifestMissingNameOrShortName.md +3 -0
- package/out/Default/gen/src/third_party/issue-descriptions/webInstallManifestParsingOrNetworkError.md +3 -0
- package/out/Default/gen/src/third_party/issue-descriptions/webInstallNoManifest.md +3 -0
- package/out/Default/gen/src/third_party/issue-descriptions/webInstallStartUrlInvalid.md +3 -0
- package/out/Default/gen/src/third_party/lighthouse-devtools-mcp-bundle.js +60395 -0
- package/out/Default/gen/src/tools/ToolDefinition.js +180 -0
- package/out/Default/gen/src/tools/categories.js +37 -0
- package/out/Default/gen/src/tools/comments.js +230 -0
- package/out/Default/gen/src/tools/console.js +122 -0
- package/out/Default/gen/src/tools/css.js +54 -0
- package/out/Default/gen/src/tools/emulation.js +98 -0
- package/out/Default/gen/src/tools/extensions.js +108 -0
- package/out/Default/gen/src/tools/input.js +658 -0
- package/out/Default/gen/src/tools/lighthouse.js +279 -0
- package/out/Default/gen/src/tools/logpoints.js +51 -0
- package/out/Default/gen/src/tools/memory.js +531 -0
- package/out/Default/gen/src/tools/network.js +325 -0
- package/out/Default/gen/src/tools/pages.js +420 -0
- package/out/Default/gen/src/tools/performance.js +258 -0
- package/out/Default/gen/src/tools/pwa.js +152 -0
- package/out/Default/gen/src/tools/screencast.js +160 -0
- package/out/Default/gen/src/tools/screenshot.js +315 -0
- package/out/Default/gen/src/tools/script.js +319 -0
- package/out/Default/gen/src/tools/slim/tools.js +110 -0
- package/out/Default/gen/src/tools/snapshot.js +88 -0
- package/out/Default/gen/src/tools/thirdPartyDeveloper.js +73 -0
- package/out/Default/gen/src/tools/toolNames.js +10 -0
- package/out/Default/gen/src/tools/tools.js +72 -0
- package/out/Default/gen/src/tools/webauthn.js +51 -0
- package/out/Default/gen/src/tools/webmcp.js +55 -0
- package/out/Default/gen/src/types.js +21 -0
- package/out/Default/gen/src/utils/TaskRunner.js +151 -0
- package/out/Default/gen/src/utils/WaitForHelper.js +343 -0
- package/out/Default/gen/src/utils/bytes.js +95 -0
- package/out/Default/gen/src/utils/check-for-updates.js +81 -0
- package/out/Default/gen/src/utils/disclaimers.js +27 -0
- package/out/Default/gen/src/utils/errorHandling.js +23 -0
- package/out/Default/gen/src/utils/files.js +81 -0
- package/out/Default/gen/src/utils/id.js +16 -0
- package/out/Default/gen/src/utils/keyboard.js +307 -0
- package/out/Default/gen/src/utils/logger.js +145 -0
- package/out/Default/gen/src/utils/logpoint.js +44 -0
- package/out/Default/gen/src/utils/network.js +81 -0
- package/out/Default/gen/src/utils/pagination.js +50 -0
- package/out/Default/gen/src/utils/polyfill.js +11 -0
- package/out/Default/gen/src/utils/raceWithSignal.js +26 -0
- package/out/Default/gen/src/utils/resourceType.js +27 -0
- package/out/Default/gen/src/utils/text.js +43 -0
- package/out/Default/gen/src/utils/timeout.js +14 -0
- package/out/Default/gen/src/utils/url.js +311 -0
- package/out/Default/gen/src/version.js +11 -0
- package/package.json +125 -4
- package/skills/a11y-debugging/SKILL.md +86 -0
- package/skills/a11y-debugging/references/a11y-snippets.md +92 -0
- package/skills/arc-compatibility/SKILL.md +174 -0
- package/skills/arc-compatibility/SOURCES.md +238 -0
- package/skills/arc-compatibility/references/compatibility.md +115 -0
- package/skills/arc-compatibility/references/output-contract.md +62 -0
- package/skills/arc-compatibility/references/workflows.md +108 -0
- package/skills/chrome-devtools/SKILL.md +80 -0
- package/skills/chrome-devtools-cli/SKILL.md +208 -0
- package/skills/chrome-devtools-cli/references/installation.md +24 -0
- package/skills/cookie-debugging/SKILL.md +152 -0
- package/skills/debug-optimize-lcp/SKILL.md +121 -0
- package/skills/debug-optimize-lcp/references/elements-and-size.md +27 -0
- package/skills/debug-optimize-lcp/references/lcp-breakdown.md +23 -0
- package/skills/debug-optimize-lcp/references/lcp-snippets.md +79 -0
- package/skills/debug-optimize-lcp/references/optimization-strategies.md +38 -0
- package/skills/inspect-in-devtools/SKILL.md +82 -0
- package/skills/memory-leak-debugging/SKILL.md +58 -0
- package/skills/memory-leak-debugging/references/common-leaks.md +33 -0
- package/skills/troubleshooting/SKILL.md +107 -0
|
@@ -0,0 +1,174 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: arc-compatibility
|
|
3
|
+
description: >-
|
|
4
|
+
Maintains the macOS Arc fork @chenpx976/chrome-devtools-mcp.
|
|
5
|
+
Use when asked to adapt Chrome DevTools MCP to Arc, reapply the Arc patch
|
|
6
|
+
after an upstream update, manually publish scoped npm releases, or configure
|
|
7
|
+
and verify a local build or installed Arc package. Preserves upstream tools,
|
|
8
|
+
native new-tab behavior, package identity, and rollback.
|
|
9
|
+
Does not apply to ordinary page debugging or unmodified Chrome setup.
|
|
10
|
+
compatibility: >-
|
|
11
|
+
Source maintenance requires the Arc fork's checkout. Installed-package
|
|
12
|
+
verification requires a published scoped release. Native verification
|
|
13
|
+
requires macOS, Arc with local remote debugging, and Automation permission.
|
|
14
|
+
---
|
|
15
|
+
|
|
16
|
+
# Arc compatibility maintenance
|
|
17
|
+
|
|
18
|
+
Port the browser adaptation onto the requested upstream revision while
|
|
19
|
+
preserving this fork's scoped identity. Build locally or install a verified
|
|
20
|
+
scoped release, connect the client to that artifact, and verify native behavior.
|
|
21
|
+
Treat this as a workflow-process skill. Read repository instructions before
|
|
22
|
+
changing code; interpret source paths below relative to the repository root.
|
|
23
|
+
|
|
24
|
+
Load bundled references as needed:
|
|
25
|
+
|
|
26
|
+
- Read [compatibility contract](references/compatibility.md) before porting.
|
|
27
|
+
- Read [example workflows](references/workflows.md) for failure recovery,
|
|
28
|
+
guarded setup, and rejected approaches.
|
|
29
|
+
- Use [the output contract](references/output-contract.md) for every handoff.
|
|
30
|
+
- Consult [source provenance](SOURCES.md) when revisiting a design decision.
|
|
31
|
+
|
|
32
|
+
## 1. Establish the baseline
|
|
33
|
+
|
|
34
|
+
1. Record the fork revision (`chenpx976/chrome-devtools-mcp`, `arc-support`),
|
|
35
|
+
official upstream URL and target revision, scoped package name/version,
|
|
36
|
+
Node requirement, publication status, and existing local changes.
|
|
37
|
+
Resolve a request for "latest" against official upstream tags/releases or
|
|
38
|
+
its current branch; record the exact resulting commit. Do not infer
|
|
39
|
+
currency from the npm version alone.
|
|
40
|
+
2. Preserve the known-good patched checkout and current client server config.
|
|
41
|
+
Work on a separate branch or checkout when local work would otherwise be
|
|
42
|
+
overwritten. Do not reset, clean, or discard unrelated changes.
|
|
43
|
+
3. Inspect current `package.json`, `AGENTS.md`, build registrations, CLI/config
|
|
44
|
+
definitions, browser connection ownership, and page lifecycle. Start from
|
|
45
|
+
`src/BrowserManager.ts` and `src/McpContext.ts`; locate their replacements
|
|
46
|
+
if upstream moved them. Read current callers before changing interfaces.
|
|
47
|
+
4. Record Arc's app version and Chromium/CDP version separately. Inspect the
|
|
48
|
+
installed app bundle's `Contents/Resources/Arc.sdef`. Do not assume that a
|
|
49
|
+
newer upstream Puppeteer supports every protocol command in installed Arc.
|
|
50
|
+
5. Identify the MCP client config and the actual spawned server entry point.
|
|
51
|
+
Preserve an existing local configuration when it already meets the contract.
|
|
52
|
+
6. Inspect npm identity and publication evidence when preparing a release.
|
|
53
|
+
Until registry and installed-artifact verification succeeds, report the
|
|
54
|
+
package as not yet published/verified and use a local build. GitHub repo
|
|
55
|
+
ownership does not prove ownership of the npm scope. Follow the checkout's
|
|
56
|
+
`docs/arc.md` publishing instructions; do not publish without authorization.
|
|
57
|
+
|
|
58
|
+
## 2. Port only the Arc delta
|
|
59
|
+
|
|
60
|
+
1. Compare the previous patch with the new upstream implementation. Retain
|
|
61
|
+
current upstream tools, schemas, page IDs, collectors, task queues,
|
|
62
|
+
reconnection handling, lazy browser loading, and generated interfaces.
|
|
63
|
+
Do not replace whole files with the old fork's implementations.
|
|
64
|
+
2. Add or preserve opt-in `arc`, default `false`, across CLI/config plumbing
|
|
65
|
+
and early validation. Reuse existing `browserUrl`/`wsEndpoint` connection
|
|
66
|
+
handling. Apply the exact constraints in the compatibility contract.
|
|
67
|
+
3. Keep native tab creation in `src/ArcBrowser.ts` (or the current equivalent)
|
|
68
|
+
and call it from `McpContext.newPage`. Preserve common page initialization
|
|
69
|
+
and return types. Create a new native tab with a unique marker, then attach
|
|
70
|
+
to its matching CDP target; never select a pre-existing tab as a substitute.
|
|
71
|
+
4. Preserve foreground/background behavior and reject `isolatedContext`
|
|
72
|
+
before creating anything. Keep all native errors explicit. Never introduce
|
|
73
|
+
a `browser.newPage()` or `Target.createTarget` fallback in Arc mode.
|
|
74
|
+
5. Update the affected source/tests build registrations, config tests, native
|
|
75
|
+
adapter tests, opt-in smoke script, and user documentation. Follow current
|
|
76
|
+
repository patterns; do not edit vendored dependencies to mask an Arc gap.
|
|
77
|
+
6. Preserve `@chenpx976/chrome-devtools-mcp` in package/lockfile metadata,
|
|
78
|
+
install commands, plugin launches, update checks, and release configuration.
|
|
79
|
+
Keep the fork repository and publisher identity, unscoped plugin names,
|
|
80
|
+
and executable names `chrome-devtools-mcp` and `chrome-devtools`. Preserve
|
|
81
|
+
upstream author attribution and real upstream source links. Publish only
|
|
82
|
+
the scoped main package, never the separate upstream CLI alias package.
|
|
83
|
+
Review these identities after every upstream merge; do not accept upstream
|
|
84
|
+
metadata wholesale or restore an official npm fallback.
|
|
85
|
+
|
|
86
|
+
## 3. Prepare the runtime
|
|
87
|
+
|
|
88
|
+
1. Install/sync dependencies using the checkout's documented package scripts.
|
|
89
|
+
Use the repository's supported Node version, lockfile, and submodule pins.
|
|
90
|
+
2. Locate Arc by its application identity, `company.thebrowser.Browser`.
|
|
91
|
+
Require a running normal Arc window and a loopback debugging endpoint.
|
|
92
|
+
If Arc needs remote debugging enabled, have the user save work and quit it
|
|
93
|
+
manually, or obtain explicit permission for `npm run arc:restart`. Reuse
|
|
94
|
+
permission already granted in the session. Never force-quit Arc or restart
|
|
95
|
+
the user's main browser without authorization.
|
|
96
|
+
3. Keep the endpoint local. Do not expose a public listener or tunnel to a
|
|
97
|
+
different machine: native AppleScript and CDP must control the same Arc.
|
|
98
|
+
4. For local development or an unpublished release, configure `node` with the
|
|
99
|
+
absolute path to the checkout's built MCP entry. Resolve it from
|
|
100
|
+
`package.json`'s `bin` field; the current entry is
|
|
101
|
+
`out/Default/gen/src/bin/chrome-devtools-mcp.js`. For a verified published
|
|
102
|
+
release, use `npx -y @chenpx976/chrome-devtools-mcp@<verified-version>` or
|
|
103
|
+
its installed binary. In both cases add `--arc` and an explicit loopback
|
|
104
|
+
endpoint. A published package does not contain uncommitted local edits.
|
|
105
|
+
5. Remove or override conflicting official-package entries for this Arc
|
|
106
|
+
connection. Fork plugins launch the scoped package but default to Chrome;
|
|
107
|
+
add the Arc arguments. Never fall back to `npx chrome-devtools-mcp@latest`
|
|
108
|
+
or an official pinned package. Installing this skill alone does not patch
|
|
109
|
+
an MCP server.
|
|
110
|
+
6. Preserve the user's telemetry and other compatible preferences. Restart
|
|
111
|
+
only the MCP client/server as needed after building; leave Arc running.
|
|
112
|
+
|
|
113
|
+
## 4. Validate after integration
|
|
114
|
+
|
|
115
|
+
Run these steps from the patched repository after all code changes land:
|
|
116
|
+
|
|
117
|
+
```sh
|
|
118
|
+
npm run gen
|
|
119
|
+
npm run format
|
|
120
|
+
npm run test
|
|
121
|
+
npm run arc:smoke -- --browser-url=http://127.0.0.1:9222
|
|
122
|
+
```
|
|
123
|
+
|
|
124
|
+
Confirm script names and arguments against the target revision first. `gen`
|
|
125
|
+
currently builds and generates CLI/docs/metrics and also formats; keep the
|
|
126
|
+
explicit formatting step required by the repository checklist. `test` builds
|
|
127
|
+
and runs the full suite. Keep generated files with the patch.
|
|
128
|
+
|
|
129
|
+
For packaging changes and releases, run `npm run build:release` and
|
|
130
|
+
`npm run verify-npm-package` against the candidate checkout. Use a new package
|
|
131
|
+
version and publish manually from the verified local checkout after npm login
|
|
132
|
+
and scope checks. Follow `docs/arc.md` for the interactive `npm publish` command
|
|
133
|
+
and browser 2FA. Reuse publication authorization already given by the user;
|
|
134
|
+
pause only when their security-key or other identity confirmation is needed.
|
|
135
|
+
Do not require Trusted Publisher setup or enable automatic publishing while
|
|
136
|
+
syncing upstream. Release PRs and tags must not automatically publish to npm.
|
|
137
|
+
|
|
138
|
+
After publication, wait for the exact version to become available in the
|
|
139
|
+
registry, then query its integrity and install it into a clean temporary
|
|
140
|
+
directory. Inspect its package name/version, both bins, built files, and
|
|
141
|
+
bundled skills. Run both installed binaries' `--help`, then exercise the
|
|
142
|
+
installed MCP server through the client with Arc. Record its actual installed
|
|
143
|
+
path and tool inventory; a source-build smoke alone does not verify the
|
|
144
|
+
distributed artifact. Retain the previous published version for rollback.
|
|
145
|
+
|
|
146
|
+
Use the opt-in native smoke only against the user's intended Arc instance.
|
|
147
|
+
Verify new tab identity, preservation of pre-existing tabs/URLs, background
|
|
148
|
+
selection, basic page operations, and cleanup of only smoke-owned tabs.
|
|
149
|
+
Exercise the selected local or installed server through the real client to
|
|
150
|
+
confirm its entry point and current advertised tool schemas. Keep unsupported
|
|
151
|
+
isolation and invalid config checks in deterministic tests so they cannot
|
|
152
|
+
mutate the real session.
|
|
153
|
+
|
|
154
|
+
Do not replace a failing command with a success claim or a smaller suite.
|
|
155
|
+
Classify the failure, fix its cause, and rerun affected checks; run the full
|
|
156
|
+
suite after code changes needed for acceptance. If macOS, Arc, permission, or
|
|
157
|
+
an endpoint is unavailable, finish reachable checks and report native smoke
|
|
158
|
+
as unverified with the exact missing prerequisite. Do not call this full Arc
|
|
159
|
+
compatibility merely because generation or unit tests passed.
|
|
160
|
+
|
|
161
|
+
## 5. Report and retain rollback
|
|
162
|
+
|
|
163
|
+
Use the output contract to separate verified behavior, unsupported behavior,
|
|
164
|
+
failed checks, and unverified CDP features. Include the exact upstream commit,
|
|
165
|
+
local build entry or installed scoped artifact, versions, and check evidence.
|
|
166
|
+
Report npm authentication, scope ownership, publication, and OIDC setup as
|
|
167
|
+
separate states; never infer one from another. State only observed results.
|
|
168
|
+
|
|
169
|
+
Keep the previous working checkout/build or scoped package version and client
|
|
170
|
+
configuration until the replacement is verified. To roll back, stop the new
|
|
171
|
+
MCP server, restore the prior entry/version and config, and restart the client.
|
|
172
|
+
Leave Arc tabs and profile data intact. To return to ordinary Chrome operation,
|
|
173
|
+
remove `--arc` and select a Chrome configuration deliberately; do not silently
|
|
174
|
+
redirect the Arc workflow to the official npm package.
|
|
@@ -0,0 +1,238 @@
|
|
|
1
|
+
# Sources and synthesis record
|
|
2
|
+
|
|
3
|
+
## Contents
|
|
4
|
+
|
|
5
|
+
- [Scope and provenance](#scope-and-provenance)
|
|
6
|
+
- [Decisions](#decisions)
|
|
7
|
+
- [Coverage](#coverage)
|
|
8
|
+
- [Evaluation and gaps](#evaluation-and-gaps)
|
|
9
|
+
- [Maintenance](#maintenance)
|
|
10
|
+
|
|
11
|
+
## Scope and provenance
|
|
12
|
+
|
|
13
|
+
Class: `workflow-process`. Selected profile: skill-writer's
|
|
14
|
+
`references/examples/workflow-process-skill.md`. Apply its preconditions,
|
|
15
|
+
ordered flow, boundaries, acceptance checks, failure recovery, handoff, and
|
|
16
|
+
example requirements. Retrieval date: 2026-11-23. Source links to moving
|
|
17
|
+
branches are historical retrieval locations, not pinned future guarantees.
|
|
18
|
+
|
|
19
|
+
1. **Upstream baseline repository:** `AGENTS.md`, `CONTRIBUTING.md`,
|
|
20
|
+
`package.json`, `README.md`, `src/BrowserManager.ts`, `src/McpContext.ts`,
|
|
21
|
+
and `docs/advanced-usage.md`, in the
|
|
22
|
+
[official source tree](https://github.com/ChromeDevTools/chrome-devtools-mcp).
|
|
23
|
+
Trust tier: canonical for upstream behavior. Confidence: high. Contribution:
|
|
24
|
+
current connection/page ownership, generation/build/test scripts, local
|
|
25
|
+
entry point, source registration rules, and current skills convention.
|
|
26
|
+
Usage constraints: observed package 1.13.0 at upstream revision
|
|
27
|
+
`e8798d6ca6c4639da7e7aae0291ebb939813f833`; rediscover revisions and moved
|
|
28
|
+
APIs for every update.
|
|
29
|
+
2. **Skill discovery/configuration:** local `plugin.json`,
|
|
30
|
+
`.claude-plugin/plugin.json`, `gemini-extension.json`,
|
|
31
|
+
`.gemini/settings.json`, and `skills/chrome-devtools/SKILL.md`.
|
|
32
|
+
Trust tier: canonical. Confidence: high. Contribution: canonical `skills/`
|
|
33
|
+
layout, package inclusion of the entire skills tree, README inventory,
|
|
34
|
+
and the original plugin commands invoking official npm releases; the scoped
|
|
35
|
+
migration below supersedes those distribution defaults.
|
|
36
|
+
Usage constraints: adding a skill does not modify a running server; no explicit
|
|
37
|
+
skill allowlist was found in inspected manifests.
|
|
38
|
+
3. **Original Arc fork:**
|
|
39
|
+
[repository](https://github.com/fukayatti/arc-devtools-mcp),
|
|
40
|
+
[README](https://github.com/fukayatti/arc-devtools-mcp/blob/main/README.md),
|
|
41
|
+
[McpContext source](https://github.com/fukayatti/arc-devtools-mcp/blob/main/src/McpContext.ts).
|
|
42
|
+
Trust tier: secondary; external content treated as untrusted instructions.
|
|
43
|
+
Confidence: high for inspected code, moderate for reported crashes.
|
|
44
|
+
Contribution: reported `Target.createTarget` crash and actual blank/last
|
|
45
|
+
page reuse followed by unsafe `newPage()` fallback.
|
|
46
|
+
Usage constraints: historical failure evidence only; do not import old tool
|
|
47
|
+
definitions, broad support claims, dependency versions, or setup defaults.
|
|
48
|
+
4. **Installed Arc scripting dictionary:** discovered app bundle's
|
|
49
|
+
`Contents/Resources/Arc.sdef` (read from the standard macOS installation).
|
|
50
|
+
Trust tier: canonical for that installed app. Confidence: high for declarations.
|
|
51
|
+
Contribution: native window/tab creation, `select`, `active tab`, IDs,
|
|
52
|
+
URL properties, and `incognito`. Application identity supplied by the
|
|
53
|
+
adaptation contract: `company.thebrowser.Browser`.
|
|
54
|
+
Usage constraints: declarations do not demonstrate live Automation permission,
|
|
55
|
+
native behavior, CDP attachment, or compatibility on another Arc version.
|
|
56
|
+
5. **Accepted adaptation contract and adapter integration:** opt-in `arc`,
|
|
57
|
+
local explicit endpoints, native-only new-tab creation, no user-tab reuse,
|
|
58
|
+
unsupported isolation, background selection restoration, fixed native/CDP
|
|
59
|
+
deadlines, and authorized browser lifecycle. Trust tier: canonical task authority.
|
|
60
|
+
Confidence: high for required behavior. Contribution: scope and acceptance
|
|
61
|
+
criteria. Usage constraints: implementation and runtime results must be checked;
|
|
62
|
+
contract statements are not test evidence.
|
|
63
|
+
6. **Agent Skills specification:**
|
|
64
|
+
[canonical source](https://github.com/agentskills/agentskills/blob/main/docs/specification.mdx).
|
|
65
|
+
Trust tier: canonical. Confidence: high. Contribution: frontmatter, directory
|
|
66
|
+
naming, relative resources, progressive disclosure, and portable layout.
|
|
67
|
+
Usage constraints: the rendered site fetch failed; canonical raw source was read
|
|
68
|
+
instead. Specification conformance alone does not prove workflow quality.
|
|
69
|
+
7. **Authoring method:** active skill-writer `SKILL.md`, mode selection,
|
|
70
|
+
synthesis, authoring, design principles, skill/workflow/output patterns,
|
|
71
|
+
workflow-process profile, description optimization, evaluation, and
|
|
72
|
+
registration/validation references. Trust tier: canonical local authoring
|
|
73
|
+
guidance. Confidence: high. Contribution: source scoring, coverage gates,
|
|
74
|
+
examples, deterministic output, trigger cases, and explicit limitations.
|
|
75
|
+
Usage constraints: provenance only; the shipped skill has no runtime dependency
|
|
76
|
+
on another installed skill or a host-specific skill directory.
|
|
77
|
+
8. **Native probe on 2026-11-23:** Arc 1.108.0 and Chromium 139.0.7258.128.
|
|
78
|
+
Trust tier: direct runtime evidence. Confidence: high for exercised paths.
|
|
79
|
+
Contribution: foreground creation, exact CDP marker matching, existing-tab
|
|
80
|
+
preservation, and owned-tab cleanup passed. Cached window specifiers,
|
|
81
|
+
immediate `whose URL` lookup, and native `about:blank` creation failed;
|
|
82
|
+
direct index specifiers and a temporary loopback HTTP marker corrected them.
|
|
83
|
+
Usage constraints: this probe does not verify the complete MCP server or
|
|
84
|
+
other Arc versions. Background restoration requires the integrated smoke.
|
|
85
|
+
9. **Integrated MCP smoke on 2026-11-23:** Arc 1.108.0 and Chromium
|
|
86
|
+
139.0.7258.128. Trust tier: direct runtime evidence. Confidence: high for
|
|
87
|
+
exercised paths. `npm run arc:smoke -- --browser-url=http://127.0.0.1:9222`
|
|
88
|
+
passed native background creation, preservation of existing pages and visible
|
|
89
|
+
selection, snapshot, script, console, network, screenshot, and owned-tab
|
|
90
|
+
closure while keeping the browser connected. The screenshot was inspected.
|
|
91
|
+
Enumeration required lazy Arc page initialization. Marker-server shutdown
|
|
92
|
+
required closing all connections after stopping the listener; incomplete
|
|
93
|
+
connections otherwise prevented the native creation helper from returning.
|
|
94
|
+
The smoke explicitly configures its temporary directory as a filesystem
|
|
95
|
+
root. Usage constraints: this does not establish support for advanced CDP
|
|
96
|
+
features or other Arc/Chromium versions.
|
|
97
|
+
10. **Scoped distribution migration, 2026-11-25:** accepted maintenance
|
|
98
|
+
contract and current
|
|
99
|
+
[fork](https://github.com/chenpx976/chrome-devtools-mcp/tree/arc-support),
|
|
100
|
+
package metadata, plugin manifests, and release-workflow configuration.
|
|
101
|
+
Trust tier: canonical for fork identity. Confidence: high for intended
|
|
102
|
+
configuration. Contribution: `@chenpx976/chrome-devtools-mcp`, maintained
|
|
103
|
+
`arc-support`, unchanged binary/plugin names, one package containing both
|
|
104
|
+
bins, initial public bootstrap, and subsequent GitHub OIDC publisher
|
|
105
|
+
(`chenpx976`, `chrome-devtools-mcp`, `publish-to-npm-on-tag.yml`).
|
|
106
|
+
Usage constraints: the scoped registry `/latest` lookup returned HTTP 404
|
|
107
|
+
and `npm whoami` returned `ENEEDAUTH`; npm identity/scope ownership,
|
|
108
|
+
publication, OIDC registration, and registry artifact behavior are not
|
|
109
|
+
verified. Never treat local build evidence as a published result.
|
|
110
|
+
11. **Manual publishing policy, 2026-11-30:** explicit maintainer instruction
|
|
111
|
+
and commit `54a831c53c5681da576e72d1372e14d097c64a7e`. Trust tier:
|
|
112
|
+
canonical for release policy. Contribution: local interactive npm publish;
|
|
113
|
+
no release-please dispatch or tag-push publication trigger. This supersedes
|
|
114
|
+
source 10's proposed subsequent OIDC setup. Trusted Publisher registration
|
|
115
|
+
was not completed and is not required for local manual publication.
|
|
116
|
+
12. **Published artifact verification, 2026-11-25:** scoped version `1.13.0`
|
|
117
|
+
was published manually. Registry integrity matched the validated tarball;
|
|
118
|
+
clean npm installation, both binary help surfaces, and installed-package
|
|
119
|
+
Arc smoke passed. Trust tier: observed runtime evidence. Usage constraint:
|
|
120
|
+
verify every later release independently; this does not establish OIDC.
|
|
121
|
+
|
|
122
|
+
## Decisions
|
|
123
|
+
|
|
124
|
+
- **Adopted:** port the browser delta into current upstream, retaining current
|
|
125
|
+
tools and page lifecycle. Sources 1 and 3 show why copying the old context
|
|
126
|
+
would lose newer architecture and features.
|
|
127
|
+
- **Adopted:** require explicit local endpoint configuration and reuse current
|
|
128
|
+
connection code. Sources 1 and 5 establish ownership and the Arc contract.
|
|
129
|
+
- **Adopted:** create a native marker tab and attach by identity; reject
|
|
130
|
+
isolation/incognito and preserve background selection. Sources 4 and 5.
|
|
131
|
+
- **Rejected:** reuse blank/last tabs or fall back to CDP tab creation. Source
|
|
132
|
+
3 directly implements these behaviors; source 5 requires true new tabs.
|
|
133
|
+
- **Adopted:** use a local compiled entry during development or a verified
|
|
134
|
+
scoped artifact for published installs. Sources 1, 2, and 10 establish the
|
|
135
|
+
entries; source 5 requires the intended patch to reach the running server.
|
|
136
|
+
Preserve fork package/publisher identity across upstream updates and never
|
|
137
|
+
fall back to official npm. Plugin defaults still require explicit Arc args.
|
|
138
|
+
- **Rejected:** unauthorized quit/relaunch or broad CDP compatibility claims.
|
|
139
|
+
Sources 3–5 establish a real user session and version gaps; an explicitly
|
|
140
|
+
authorized normal restart is available through `npm run arc:restart`.
|
|
141
|
+
- **Deferred:** an automated upstream patch/rebase script. Source 1 shows
|
|
142
|
+
architecture changes that require inspecting ownership; a blind patch
|
|
143
|
+
would be less maintainable than a bounded reviewable workflow.
|
|
144
|
+
|
|
145
|
+
## Coverage
|
|
146
|
+
|
|
147
|
+
- **Preconditions — complete:** exact revision, runtime versions, local changes,
|
|
148
|
+
config entry point, Arc window, endpoint, and permission checks in SKILL.
|
|
149
|
+
- **Ordered execution — complete:** baseline, narrow port, local/scoped runtime,
|
|
150
|
+
generation/format/full tests/native smoke, artifact/client check, and handoff.
|
|
151
|
+
- **Safety boundaries — complete:** no unauthorized browser termination, no
|
|
152
|
+
borrowed-tab navigation, local endpoint, no fallback, preserved rollback.
|
|
153
|
+
- **Acceptance/output — complete:** separate check and feature statuses in
|
|
154
|
+
`references/output-contract.md`; current tools and actual build required.
|
|
155
|
+
- **Failure/retry — complete:** permission/endpoint blockers and timed-out
|
|
156
|
+
marker creation; diagnose before rerun and never retry uncertain creation.
|
|
157
|
+
- **Escalation/handoff — complete:** precise missing prerequisite and retained
|
|
158
|
+
artifacts; implementation can finish while native verification is blocked.
|
|
159
|
+
- **Profile examples — complete:** happy path, guarded setup, failure-recovery
|
|
160
|
+
transcript, anti-pattern corrections, output template, and changelog rules
|
|
161
|
+
in the bundled references.
|
|
162
|
+
- **Platform/version evidence — partial:** dictionary and current source
|
|
163
|
+
inspected; native acceptance and feature-specific CDP results require live
|
|
164
|
+
execution against recorded versions. Follow the validation phase.
|
|
165
|
+
- **Published artifact — verified for `1.13.0` only:** source 12 records the
|
|
166
|
+
observed checks. Follow `docs/arc.md` for each new manual release and repeat
|
|
167
|
+
registry and clean-install verification. OIDC remains unconfigured.
|
|
168
|
+
|
|
169
|
+
Expansion passes covered core behavior (sources 1/4), failures (3/5), negative
|
|
170
|
+
examples (3), repairs (1/4/5), and platform/version variance (1/4). Retrieval
|
|
171
|
+
stopped because these sources establish the workflow and remaining questions
|
|
172
|
+
need execution on the intended Arc, rather than more general documentation.
|
|
173
|
+
|
|
174
|
+
## Evaluation and gaps
|
|
175
|
+
|
|
176
|
+
Qualitative authoring review only: required process dimensions and examples
|
|
177
|
+
are represented; no baseline-versus-skill agent runs or quantitative benchmark
|
|
178
|
+
were executed. The concrete improvement over the original fork's documented
|
|
179
|
+
workflow is an explicit native-new-tab contract, intended-artifact routing,
|
|
180
|
+
and evidence-limited support reporting. Behavioral improvement is unmeasured.
|
|
181
|
+
|
|
182
|
+
Should-trigger prompts:
|
|
183
|
+
|
|
184
|
+
- "Reapply our Arc patch onto the latest chrome-devtools-mcp."
|
|
185
|
+
- "Adapt current Chrome DevTools MCP to Arc without losing upstream tools."
|
|
186
|
+
- "Configure my locally modified Arc MCP and verify it."
|
|
187
|
+
- "Verify an installed @chenpx976/chrome-devtools-mcp release with Arc."
|
|
188
|
+
- "Merge upstream updates while preserving our scoped npm package."
|
|
189
|
+
- "Sync upstream and manually publish the next Arc npm release."
|
|
190
|
+
|
|
191
|
+
Should-not-trigger prompts:
|
|
192
|
+
|
|
193
|
+
- "Take a screenshot with my already configured MCP server."
|
|
194
|
+
- "Install unmodified Chrome DevTools MCP for Chrome."
|
|
195
|
+
- "What is the length of this geometric arc?"
|
|
196
|
+
|
|
197
|
+
Description review: name Arc plus the MCP package and update/setup intent;
|
|
198
|
+
exclude ordinary debugging and unmodified Chrome setup. These are designed
|
|
199
|
+
trigger cases, not observed classifier scores.
|
|
200
|
+
|
|
201
|
+
At initial authoring, strict-depth skill validation passed as
|
|
202
|
+
`workflow-process`, with no errors or warnings. The native foreground probe
|
|
203
|
+
passed on the versions recorded in source 8; generation and formatting also
|
|
204
|
+
passed then. These are historical results, not validation of this scoped
|
|
205
|
+
migration. No scripts, tests, formatters, or skill validator were run for the
|
|
206
|
+
2026-11-25 documentation update. Qualitative review covers preconditions,
|
|
207
|
+
ordered execution, failure handling, package identity, and rollback; designed
|
|
208
|
+
trigger cases now include installed scoped releases and identity-preserving
|
|
209
|
+
upstream updates. Advanced CDP and published-artifact behavior remain
|
|
210
|
+
unverified unless individually exercised.
|
|
211
|
+
|
|
212
|
+
## Maintenance
|
|
213
|
+
|
|
214
|
+
2026-11-23: created the workflow skill, native compatibility contract,
|
|
215
|
+
illustrative workflows, deterministic report, and provenance record. Registered
|
|
216
|
+
in the existing README skill inventory; no manifest allowlist edit required.
|
|
217
|
+
|
|
218
|
+
2026-11-25: updated the existing `skills/arc-compatibility` workflow and bundled
|
|
219
|
+
references for scoped distribution. Added local-versus-installed routing,
|
|
220
|
+
publication/authentication boundaries, artifact verification, publisher
|
|
221
|
+
identity preservation, and package-version rollback. Retained the canonical
|
|
222
|
+
skill directory, README registration, existing examples, and upstream source
|
|
223
|
+
citations; no new skill registration or additional documentation files.
|
|
224
|
+
|
|
225
|
+
2026-11-30: aligned the skill, compatibility contract, and example workflow
|
|
226
|
+
with manual publishing. Removed OIDC as a required release step, preserved
|
|
227
|
+
interactive authentication and installed-artifact checks, and prohibited
|
|
228
|
+
restoring automatic npm triggers during upstream merges. Qualitative review:
|
|
229
|
+
the manual-release prompt now follows the requested path; ordinary page
|
|
230
|
+
debugging remains excluded. No quantitative trigger benchmark was run.
|
|
231
|
+
Retained the existing skill registration and directory.
|
|
232
|
+
Strict-depth validation passed as `workflow-process`, with no errors or
|
|
233
|
+
warnings.
|
|
234
|
+
|
|
235
|
+
For each real update, record the exact upstream and patched revisions, changed
|
|
236
|
+
source contracts, actual verification evidence, and newly discovered gaps.
|
|
237
|
+
Keep authoring history separate from the compatibility report for a specific
|
|
238
|
+
Arc/Chromium version. Add only evidence-backed regression examples.
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
# Compatibility contract
|
|
2
|
+
|
|
3
|
+
## Distribution identity
|
|
4
|
+
|
|
5
|
+
- Maintain `chenpx976/chrome-devtools-mcp` on `arc-support`; fetch actual
|
|
6
|
+
upstream changes from `ChromeDevTools/chrome-devtools-mcp`.
|
|
7
|
+
- Keep npm identity `@chenpx976/chrome-devtools-mcp` across package/lockfile,
|
|
8
|
+
server registry metadata, plugins, update checks, docs, and release workflows.
|
|
9
|
+
Preserve executable names `chrome-devtools-mcp` and `chrome-devtools`,
|
|
10
|
+
unscoped plugin identifiers, protocol names, and upstream attribution.
|
|
11
|
+
- Publish only the scoped main package, which includes both binaries. Do not
|
|
12
|
+
recreate the separate CLI alias publish step during an upstream merge.
|
|
13
|
+
- Use a local build until the public scoped artifact is verified. Never
|
|
14
|
+
replace a missing/unpublished scoped package with the official npm package.
|
|
15
|
+
- Verify a clean installation of the exact scoped release, including both
|
|
16
|
+
binaries and the actual client's Arc behavior. Registry metadata and a
|
|
17
|
+
passing local smoke alone do not prove the installed artifact works.
|
|
18
|
+
- Publish manually from the verified local checkout after npm login and scope
|
|
19
|
+
checks, using a new version and interactive browser 2FA when required.
|
|
20
|
+
Preserve this policy across upstream merges: neither release-please nor tag
|
|
21
|
+
pushes may automatically publish to npm. Follow `docs/arc.md` for commands.
|
|
22
|
+
- Trusted Publisher setup is optional and is not a prerequisite for local
|
|
23
|
+
manual publication. Do not enable or configure it unless explicitly asked.
|
|
24
|
+
|
|
25
|
+
## Configuration and connection
|
|
26
|
+
|
|
27
|
+
- Keep `arc` opt-in and `false` by default. Normal Chrome behavior must remain
|
|
28
|
+
available without the flag.
|
|
29
|
+
- Require macOS and exactly one explicit loopback `browserUrl` or `wsEndpoint`.
|
|
30
|
+
Reject invalid configuration before attempting a browser connection.
|
|
31
|
+
- Reject `autoConnect`, headless launch, `executablePath`, `isolated`,
|
|
32
|
+
`userDataDir`, and an explicitly overridden `channel`. An implicit default
|
|
33
|
+
`stable` channel must not make otherwise valid Arc configuration fail.
|
|
34
|
+
- Keep established endpoint parsing and connection handling in
|
|
35
|
+
`src/BrowserManager.ts`. Do not add a second Puppeteer connection lifecycle.
|
|
36
|
+
- Require the endpoint and native application to identify the same local Arc
|
|
37
|
+
instance. A loopback address alone does not prove browser identity.
|
|
38
|
+
- Preserve config reload/restart rules and generated option documentation when
|
|
39
|
+
porting the flag. Do not defer config validation until `new_page` runs.
|
|
40
|
+
- Keep Arc enumeration lazy: do not initialize a previously untouched selected
|
|
41
|
+
page just to list targets. Page tools and explicit creation initialize the
|
|
42
|
+
page they use; a nonresponsive inactive tab must not block all tool calls.
|
|
43
|
+
|
|
44
|
+
## Native tab creation
|
|
45
|
+
|
|
46
|
+
Use application ID `company.thebrowser.Browser`. Discover the installed app
|
|
47
|
+
bundle to read `Contents/Resources/Arc.sdef`; avoid a host-specific app path
|
|
48
|
+
in implementation and maintenance instructions. The inspected dictionary
|
|
49
|
+
supports window `incognito`, window `active tab`, tab `id`/`URL`, `select`, and:
|
|
50
|
+
|
|
51
|
+
```applescript
|
|
52
|
+
tell application id "company.thebrowser.Browser"
|
|
53
|
+
tell front window
|
|
54
|
+
make new tab with properties {URL: marker}
|
|
55
|
+
end tell
|
|
56
|
+
end tell
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
Treat this as a native API illustration, not a complete adapter. Preserve the
|
|
60
|
+
running-application check, normal-front-window check, selection handling,
|
|
61
|
+
parameter passing, deadlines, and CDP target correlation around it.
|
|
62
|
+
|
|
63
|
+
Keep the following invariants:
|
|
64
|
+
|
|
65
|
+
1. Require Arc to be running with an existing regular front window. Fail for
|
|
66
|
+
no window or an incognito front window; do not auto-launch or change windows.
|
|
67
|
+
2. Reject any `isolatedContext` request before native or CDP state changes.
|
|
68
|
+
A regular Arc window cannot honor Puppeteer isolated browser contexts.
|
|
69
|
+
3. Serve a unique `/chrome-devtools-mcp-<UUID>` blank page on a temporary
|
|
70
|
+
HTTP server bound to `127.0.0.1` with an ephemeral port; close it on every
|
|
71
|
+
success/error path. Arc 1.108 rejects `about:blank` in native tab creation.
|
|
72
|
+
Stop listening, close all marker-server connections, then await closure;
|
|
73
|
+
browser preconnections or incomplete requests can otherwise hang disposal.
|
|
74
|
+
Pass marker URLs and selection IDs as process arguments to fixed
|
|
75
|
+
AppleScript; never interpolate user URLs into script source or a shell.
|
|
76
|
+
4. Create exactly one new native tab and correlate the exact marker to a new
|
|
77
|
+
page target on the connected browser. Preserve upstream page initialization,
|
|
78
|
+
collector registration, page IDs, and tool navigation after attachment.
|
|
79
|
+
5. For `background: true`, capture the prior window/tab IDs and restore that
|
|
80
|
+
tab after CDP attachment. Use direct window/tab index specifiers; the
|
|
81
|
+
installed Arc returns invalid cached object specifiers and does not reliably
|
|
82
|
+
resolve immediate `whose URL` queries. Distinguish Arc's visible selected
|
|
83
|
+
tab from MCP's logical selected page; brief new-tab selection can occur.
|
|
84
|
+
6. Bound each native command and target discovery (currently 10 seconds each).
|
|
85
|
+
Never retry tab creation after uncertain completion; report its marker URL
|
|
86
|
+
so the user can identify any leftover tab without touching other tabs.
|
|
87
|
+
7. On errors, do not reuse an existing blank/last tab or invoke Puppeteer
|
|
88
|
+
`newPage()`/CDP `Target.createTarget`. Never silently ignore native failures.
|
|
89
|
+
|
|
90
|
+
## Upstream preservation and verification
|
|
91
|
+
|
|
92
|
+
Keep all current tool definitions and their option gates. Arc changes how a
|
|
93
|
+
new tab is created; it does not guarantee support for every CDP command.
|
|
94
|
+
Inspect the installed Chromium version and test each feature before claiming
|
|
95
|
+
it works. Advanced tracing, screencast, memory, extension, emulation, and newer
|
|
96
|
+
protocol operations remain unverified unless explicitly exercised.
|
|
97
|
+
|
|
98
|
+
Use focused tests for endpoint/config rejection, native process failure,
|
|
99
|
+
permission denial, missing/incognito window, marker timeout, background
|
|
100
|
+
restoration, isolation rejection, and unchanged Chrome behavior. Test that
|
|
101
|
+
forbidden creation branches are not called. Keep live-browser verification
|
|
102
|
+
for behavior mocks cannot prove: native tab identity and selection, target
|
|
103
|
+
attachment, real tool operations, and preservation of existing tabs.
|
|
104
|
+
|
|
105
|
+
## Rejected legacy behavior
|
|
106
|
+
|
|
107
|
+
The [original fork](https://github.com/fukayatti/arc-devtools-mcp) documents
|
|
108
|
+
Arc crashes on `Target.createTarget`. Its `McpContext.newPage` first returns
|
|
109
|
+
an existing `about:blank` page, otherwise the last existing page, and finally
|
|
110
|
+
calls `browser.newPage()` if none exists. Reject all three branches for this
|
|
111
|
+
adaptation: reuse violates new-tab semantics and can navigate a user's tab;
|
|
112
|
+
the fallback reaches the operation the fork reports as crash-prone.
|
|
113
|
+
|
|
114
|
+
Use that fork as historical evidence of the failure mode. Do not copy its
|
|
115
|
+
older tools, dependencies, page lifecycle, or broad compatibility claims.
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
# Output contract
|
|
2
|
+
|
|
3
|
+
Return a concise report with these fields for setup, updates, and recovery.
|
|
4
|
+
Use `passed`, `failed`, `blocked`, or `not run` for checks; use `verified`,
|
|
5
|
+
`unsupported`, `failed`, or `unverified` for feature support. Never omit a
|
|
6
|
+
blocked acceptance step or infer a pass from successful compilation.
|
|
7
|
+
|
|
8
|
+
## Preconditions
|
|
9
|
+
|
|
10
|
+
- Requested operation and resolved upstream URL, ref, and exact commit.
|
|
11
|
+
- Previous patched revision, new patched revision if committed, package and
|
|
12
|
+
Node versions; identify uncommitted changes without inventing a commit ID.
|
|
13
|
+
- Fork branch and scoped package identity, registry version/integrity when
|
|
14
|
+
available; npm authentication/scope access, publication, and OIDC status
|
|
15
|
+
separately. Explicitly mark an unpublished or unverified artifact.
|
|
16
|
+
- macOS, Arc app, and Chromium/CDP versions; report unavailable values.
|
|
17
|
+
- Endpoint type and loopback address, normal-window availability, and native
|
|
18
|
+
Automation permission status. Redact credentials and private page URLs.
|
|
19
|
+
|
|
20
|
+
## Actions taken
|
|
21
|
+
|
|
22
|
+
- Files/behavior changed and how current upstream tools were preserved.
|
|
23
|
+
- Actual local build entry or installed scoped artifact path and client config.
|
|
24
|
+
- Client restart status and evidence it launched that build/package version.
|
|
25
|
+
- Retained previous build or package version and config for rollback.
|
|
26
|
+
|
|
27
|
+
## Validation results
|
|
28
|
+
|
|
29
|
+
| Check | Status | Evidence or blocker |
|
|
30
|
+
| ------------------------------------ | --------------- | -------------------------------------- |
|
|
31
|
+
| Generation and generated files | recorded status | command and observed result |
|
|
32
|
+
| Formatting/lint | recorded status | command and observed result |
|
|
33
|
+
| Full automated tests | recorded status | command, counts if observed |
|
|
34
|
+
| Native Arc smoke | recorded status | command, versions, observed assertions |
|
|
35
|
+
| Packed and installed scoped artifact | recorded status | name/version, integrity, bins, help |
|
|
36
|
+
| Actual client server/tool inventory | recorded status | observed entry/tool schemas |
|
|
37
|
+
|
|
38
|
+
## Feature coverage
|
|
39
|
+
|
|
40
|
+
| Behavior | Status | Evidence or limitation |
|
|
41
|
+
| --------------------------------------------------- | ------------------ | ------------------------------------------ |
|
|
42
|
+
| New native tab and existing tabs preserved | recorded status | identities/URLs compared |
|
|
43
|
+
| Background native selection restored | recorded status | prior/after selected tab |
|
|
44
|
+
| Basic navigation, script, snapshot, screenshot | per-feature status | exercised tools/results |
|
|
45
|
+
| Isolated context creation | unsupported | expected explicit rejection |
|
|
46
|
+
| Performance, memory, extensions, other CDP features | per-feature status | list exercised cases; otherwise unverified |
|
|
47
|
+
|
|
48
|
+
Split rows where only some features were exercised. A tool's presence in
|
|
49
|
+
`tools/list` is evidence of exposure, not evidence that it works in Arc.
|
|
50
|
+
|
|
51
|
+
## Failures, recovery, and next actions
|
|
52
|
+
|
|
53
|
+
State observed failures, known causes versus hypotheses, corrections and
|
|
54
|
+
reruns, leftover owned marker tabs/artifacts, and the exact missing action for
|
|
55
|
+
any blocked step. State whether the adaptation is ready for the tested scope
|
|
56
|
+
or still awaiting verification.
|
|
57
|
+
|
|
58
|
+
Describe rollback concretely: stop the replacement MCP process, restore the
|
|
59
|
+
retained local build or pinned scoped package version/config, restart the
|
|
60
|
+
client, and leave Arc/profile data intact. If no previous working Arc artifact
|
|
61
|
+
exists, describe disabling the new server entry. Never use the official npm
|
|
62
|
+
package as an Arc rollback.
|