Cette page est affichée en anglais. Une traduction française est en cours.
SkillsMay 14, 2026·3 min de lecture

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.

Prêt pour agents

Installation agent prête

Cet actif peut être installé après choix du runtime, vérification du plan et exécution de la commande adaptée.

Native · 98/100Policy : autoriser
Surface agent
Tout agent MCP/CLI
Type
Skill
Installation
Single
Confiance
Confiance : Established
Point d'entrée
Asset
Commande d'installation directe
npx -y tokrepo@latest install 05e96397-da0a-5479-8c67-c801d6fb97f5 --target codex

À exécuter après confirmation du plan en dry-run.

Introduction

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).
🙏

Source et remerciements

Created by kucherenko. Licensed under MIT.

kucherenko/jscpd — ⭐ 5631

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

Fil de discussion

Connectez-vous pour rejoindre la discussion.
Aucun commentaire pour l'instant. Soyez le premier à partager votre avis.

Actifs similaires