Standalone REST API and MCP server for on-demand code duplication detection using jscpd v4.2.4. Scans a codebase on startup and exposes HTTP endpoints to check snippets for duplicates, returning location and statistics. Integrates with AI assistants via the Model Context Protocol. Uses leveldb for persistent storage or in-memory by default. Released under MIT, maintained by kucherenko. Key differentiator is the MCP integration for AI-assisted duplicate detection.
npm install jscpd-serverNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Creates and starts a jscpd-server scanning a project directory, persisting to leveldb, then accepting code check requests.
Use `import { createServer } from 'jscpd-server';` in an ESM context or with Node --experimental-modules.Pass `--store leveldb` or set `store: 'leveldb'` programmatically.
Split large snippets or reduce input size.
Use `--no-symlinks` flag.
Use `import { createServer } from 'jscpd-server';` in an ESM file or set `"type": "module"` in package.json.Include a valid format string (e.g., "javascript", "python").
Ensure the user running the server has write permissions to the store path.
No dependency data recorded yet.