3 views
ChromeDevTools/chrome-devtools-mcp
Chrome DevTools for coding agents
TypeScript★ 57,785+841 that day#12 on trending
C58.3/100
Duplication56
7.3% in typescript, javascriptDead code79
2.6%Complexity45
57.7% The score is jscpd's own --health model: markup, data and text left out, tests kept. The numbers below are the trending scan's.
1.15%duplicated code · 406 of 35,447 lines
32clones in code
170code files of 347 scanned
6.84%duplicated over all files · 508 clones
Most complex files
- tests/ToolHandler.test.ts319 cx
- src/McpPage.ts288 cx
- tests/McpPage.test.ts263 cx
- src/McpResponse.ts252 cx
- tests/McpContext.test.ts252 cx
- src/formatters/CssFormatter.ts244 cx
- tests/McpResponse.test.ts238 cx
- tests/tools/pages.test.ts238 cx
- tests/mocks.ts230 cx
- tests/cli.test.ts196 cx
Dead code 2.57% unused · 48 findings
- scripts/generate-third-party-notices.tsunused-file
- scripts/eval_scenarios/fill_select_and_checkboxes_test.tsunused-file
- scripts/eval_scenarios/page_id_routing_cross_page_state_test.tsunused-file
- scripts/eval_scenarios/page_id_routing_concurrent_form_test.tsunused-file
- scripts/eval_scenarios/page_focus_keyboard_test.tsunused-file
- scripts/profile/scenarios/get_css_styles.tsunused-file
- scripts/eval_scenarios/css_cascade_layer_override_test.tsunused-file
- scripts/eval_scenarios/css_descendant_specificity_test.tsunused-file
- src/daemon/daemon.ts:handleRequestunused-symbol
- scripts/eval_scenarios/css_custom_property_resolution_test.tsunused-file
The code number leaves out tests, fixtures, docs, examples, data files, styles, translations and vendored code, and 1 generated file: src/config/cli-options.ts.
Largest clones in the code
- 16 lines in 5 placestypescript97 tokensscripts/eval_scenarios/css_cascade_layer_override_test.ts:41–56scripts/eval_scenarios/css_custom_property_resolution_test.ts:36–51scripts/eval_scenarios/css_descendant_specificity_test.ts:38–53scripts/eval_scenarios/css_important_vs_specificity_test.ts:28–43scripts/eval_scenarios/css_inline_style_override_test.ts:30–45
41 `, 42}, 43expectations: result => { 44 const pageId = result.consumePageNavigation(); 45 result.assertNextCall( 46 'take_snapshot', 47 result.hasPageIdRouting ? {pageId} : undefined, 48 ); 49 50 const cssCalls = result.calls.filter(c => c.name === 'get_css_styles');First 10 of 16 lines.
- 15 lines in 4 placestypescript61 tokenssrc/tools/memory.ts:234–248src/tools/memory.ts:352–366src/tools/memory.ts:408–424src/tools/memory.ts:536–550
234 'Loads and caches a memory heapsnapshot and returns retainers for a specific node ID.', 235annotations: { 236 category: ToolCategory.MEMORY, 237 readOnlyHint: true, 238 conditions: ['memoryDebugging'], 239}, 240blockedByDialog: false, 241verifyFilesSchema: { 242 filePath: true, 243},First 10 of 15 lines.
- 7 lines in 4 placestypescript54 tokenssrc/processors/HeapSnapshotManager.ts:303–309src/processors/HeapSnapshotManager.ts:317–323src/processors/HeapSnapshotManager.ts:341–347src/processors/HeapSnapshotManager.ts:359–365
303): Promise<DevTools.HeapSnapshotModel.HeapSnapshotModel.ItemsRange> { 304 using guard = await this.#scheduleTask(filePath); 305 const snapshot = await this.getSnapshot(filePath); 306 const nodeIndex = await snapshot.proxy.nodeIndexForId(nodeId); 307 if (nodeIndex === undefined) { 308 throw new Error(`Node with ID ${nodeId} not found`); 309 }
7 more
- 19 lines in 2 placestypescript156 tokens
- 7 lines in 3 placestypescript55 tokens
- 14 lines in 3 placestypescript51 tokens
- 21 lines in 2 placestypescript87 tokens
- 16 lines in 2 placestypescript85 tokens
- 9 lines in 2 placestypescript73 tokens
- 26 lines in 2 placestypescript67 tokens
Largest clones over all files, tests and data included
- 24 lines in 5 placestypescripttests132 tokenstests/tools/console.test.ts:663–686tests/tools/console.test.ts:692–715tests/tools/console.test.ts:721–744tests/tools/console.test.ts:750–773tests/tools/console.test.ts:810–833
663 `); 664}); 665server.addHtmlRoute( 666 '/index.html', 667 `<script src="${server.getRoute('/main.min.js')}"></script>`, 668); 669 670await withMcpContext(async (response, context, args) => { 671 const page = context.getSelectedMcpPage(); 672 await page.pptrPage.goto(server.getRoute('/index.html'));First 10 of 24 lines.
- 16 lines in 5 placestypescript97 tokensscripts/eval_scenarios/css_cascade_layer_override_test.ts:41–56scripts/eval_scenarios/css_custom_property_resolution_test.ts:36–51scripts/eval_scenarios/css_descendant_specificity_test.ts:38–53scripts/eval_scenarios/css_important_vs_specificity_test.ts:28–43scripts/eval_scenarios/css_inline_style_override_test.ts:30–45
41 `, 42}, 43expectations: result => { 44 const pageId = result.consumePageNavigation(); 45 result.assertNextCall( 46 'take_snapshot', 47 result.hasPageIdRouting ? {pageId} : undefined, 48 ); 49 50 const cssCalls = result.calls.filter(c => c.name === 'get_css_styles');First 10 of 16 lines.
- 15 lines in 5 placestypescripttests74 tokenstests/tools/thirdPartyDeveloper.test.ts:27–41tests/tools/thirdPartyDeveloper.test.ts:768–782tests/tools/thirdPartyDeveloper.test.ts:844–858tests/tools/thirdPartyDeveloper.test.ts:897–911tests/tools/thirdPartyDeveloper.test.ts:950–964
27it('lists tools', async () => { 28 await withMcpContext( 29 async (response, context, args) => { 30 const page = await context.newPage(); 31 response.setPage(page); 32 33 await page.pptrPage.evaluate(() => { 34 const mockToolGroup = { 35 name: 'test-group', 36 description: 'test description',First 10 of 15 lines.
- 32 lines in 4 placestypescript98 tokens
- 19 lines in 3 placestypescripttests134 tokens
By format, code only
| Format | Files | Lines | Clones | Duplicated lines | Duplication |
|---|---|---|---|---|---|
| typescript | 160 | 33,831 | 32 | 406 | 1.2% |
| javascript | 10 | 1,616 | 0 | 0 | 0% |
By format, all files
| Format | Files | Lines | Clones | Duplicated lines | Duplication |
|---|---|---|---|---|---|
| typescript | 267 | 86,292 | 482 | 6,414 | 7.43% |
| markdown | 30 | 5,803 | 18 | 120 | 2.07% |
| yaml | 16 | 680 | 8 | 112 | 16.47% |
| json | 14 | 2,452 | 0 | 0 | 0% |
| javascript | 13 | 1,776 | 0 | 0 | 0% |
| bash | 7 | 181 | 0 | 0 | 0% |
Trending appearances
| Day | Rank | Stars | Files | Lines | Clones | All files | Code | Health | Commit |
|---|---|---|---|---|---|---|---|---|---|
| Nov 17, 2026 | #12 | 57,785 (+841) | 347 | 97,184 | 508 | 6.84% | 1.15% | C 58.3 | dc00558 |
| Nov 16, 2026 | #5 | 57,155 (+717) | 347 | 96,789 | 504 | 6.81% | 1.15% | C 58.4 | 8ba2ac9 |
| Nov 15, 2026 | #4 | 56,416 (+664) | 347 | 96,789 | 504 | 6.81% | 1.15% | C 58.4 | 8ba2ac9 |
| Nov 14, 2026 | #9 | 55,619 (+67) | 347 | 96,789 | 504 | 6.81% | 1.15% | C 58.4 | 8ba2ac9 |
| Sep 3, 2026 | #5 | 50,722 (+148) | 265 | 55,465 | 391 | 9.5% | 0.8% | — | b2007ab |
Want this for your own project? Install jscpd and run jscpd ., or measure it the way the baselines were measured.