Esta página se muestra en inglés. Una traducción al español está en curso.
SkillsMay 14, 2026·3 min de lectura

jscpd — Copy/Paste Detector + MCP Server

A copy/paste (duplicate code) detector supporting 223 formats, with CLI and server modes; verified 5631★, pushed 2026-05-14.

Listo para agents

Este activo puede ser leído e instalado directamente por agents

TokRepo expone un comando CLI universal, contrato de instalación, metadata JSON, plan según adaptador y contenido raw para que los agents evalúen compatibilidad, riesgo y próximos pasos.

Native · 98/100Política: permitir
Superficie agent
Cualquier agent MCP/CLI
Tipo
Skill
Instalación
Npm
Confianza
Confianza: Established
Entrada
jscpd
Comando CLI universal
npx tokrepo install 05e96397-da0a-5479-8c67-c801d6fb97f5
Introducción

A copy/paste (duplicate code) detector supporting 223 formats, with CLI and server modes; verified 5631★, pushed 2026-05-14.

Best for: Teams adding duplicate-code detection to CI, monorepos, or agent refactor workflows

Works with: Node.js; runs as CLI or server per README install examples

Setup time: 5-10 minutes

Key facts (verified)

  • GitHub: 5631 stars · 233 forks · pushed 2026-05-14.
  • License: MIT · owner avatar + repo URL verified via GitHub API.
  • README-backed entrypoint: jscpd.

Main

  • Use jscpd as a regression guard: run it in CI to keep copy/paste from silently spreading during fast iterations.

  • Tune it for agent refactors: set a token threshold so you catch true duplication without flagging common boilerplate.

  • Prefer the server mode when you need repeated queries across multiple repos or a UI/report pipeline.

  • Treat supported formats as a scope knob: start narrow (your main language), then expand once the baseline is clean.

README (excerpt)

jscpd

stand with Ukraine

npm jscpd license npm

jscpd CI codecov FOSSA Status Backers on Open Collective Sponsors on Open Collective

NPM

Copy/paste detector for programming source code, supports 223 formats. AI-ready with MCP server and token-efficient reporter.

Copy/paste is a common technical debt on a lot of projects. The jscpd gives the ability to find duplicated blocks implemented on more than 223 programming languages and digital formats of documents. The jscpd tool implements Rabin-Karp algorithm for searching duplications.

Packages of jscpd

name version description
jscpd npm main package for jscpd (cli and API for detections included)
jscpd-server npm jscpd server application

Source-backed notes

  • README states it supports 223 formats and provides both CLI and server installs (npm install -g jscpd / jscpd-server).
  • Repo is MIT licensed and actively maintained (verified via GitHub API).
  • README includes a pnpm install path for contributors (repo build instructions).

FAQ

  • Is it only for JavaScript?: No—README says it supports 223 formats; run it against your repo language set.
  • How do I install the CLI?: Use npm install -g jscpd (README install section).
  • Can I run it as a service?: Yes—README mentions server mode (jscpd-server).
🙏

Fuente y agradecimientos

Created by kucherenko. Licensed under MIT.

kucherenko/jscpd — ⭐ 5631

Thanks to the upstream maintainers and contributors for publishing this work under an open license.

Discusión

Inicia sesión para unirte a la discusión.
Aún no hay comentarios. Sé el primero en compartir tus ideas.

Activos relacionados