npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@dschauhan08/easycopy-mcp

v0.3.3

Published

MCP server for easycopy that renders repositories to HTML and CXML

Readme

@dschauhan08/easycopy-mcp

AI-first MCP server for repository understanding.

This package is designed for LLM workflows where search + targeted reads are the default path, and full HTML exports are optional.

TL;DR

  • Primary mode: AI retrieval (search_code, read_file, get_context_pack)
  • Optional mode: export full repo (render_repo, get_cxml)
  • Structured MCP responses for tool chaining across MCP-compatible clients
  • Safety defaults: bounded reads, limits, binary/large-file handling

For AI workflow, this is helpful because it:

  • avoids full-repo dumps,
  • gives targeted file/line discovery,
  • makes context retrieval faster and smaller for prompts.

Install

npx -y @dschauhan08/easycopy-mcp

or globally:

npm i -g @dschauhan08/easycopy-mcp
easycopy-mcp

MCP client config

{
  "mcpServers": {
    "easycopy": {
      "command": "npx",
      "args": ["-y", "@dschauhan08/easycopy-mcp"],
      "env": {
        "EASYCOPY_VERSION_TAG": "latest"
      }
    }
  }
}

Recommended AI workflow

  1. index_repo – scan and cache repository metadata
  2. search_code – find relevant files/lines by query
  3. read_file / read_many – fetch exact context only
  4. get_context_pack – create a compact, prompt-ready bundle

Use render_repo only when you explicitly want a full static export.


Tools

Retrieval-first tools (default)

index_repo

Build or refresh a local retrieval index.

Inputs:

  • repo (required, local path)
  • refresh (optional)
  • max_file_bytes (optional)

search_code

Search code/text with optional regex and glob filtering.

Inputs:

  • repo (required)
  • query (required)
  • regex (optional)
  • case_sensitive (optional)
  • include_glob (optional, e.g. src/**/*.ts)
  • limit (optional)

list_files

List files with size/text metadata.

Inputs:

  • repo (required)
  • include_glob, limit (optional)

read_file

Read one file with bounded line window.

Inputs:

  • repo (required)
  • path (required)
  • start_line, end_line, max_chars (optional)

read_many

Read many files in one call with bounded excerpts.

Inputs:

  • repo (required)
  • paths (required)
  • max_chars_per_file (optional)

repo_map

Compact structural map + key files.

Inputs:

  • repo (required)
  • depth, max_entries (optional)

stats

Repo-level counts and extension distribution.

Inputs:

  • repo (required)

get_context_pack

Search + select + read top files into an LLM-ready pack.

Inputs:

  • repo (required)
  • query (required)
  • limit_files, max_chars_per_file (optional)
  • same search flags as search_code

Behavior note:

  • if no files match the query, get_context_pack returns an empty pack (selected_files: [], files: []) instead of an error.
  • ranking is intent-aware: technical queries prioritize code/config files over docs; documentation queries prioritize docs.

Export tools (optional)

render_repo

Generate full HTML output using easycopy.

get_cxml

Generate and extract full CXML from easycopy output.


Diagnostics + output lifecycle

health_check

Runtime diagnostics and binary resolution.

list_outputs

List generated output HTML files.

read_output

Read excerpt from generated HTML output.

cleanup_outputs

Clean old output files (dry_run: true by default).

Why this is safer for LLM usage

  • Bounded reads and limits by default
  • Explicit argument validation
  • Binary and oversized file handling in retrieval flow
  • No destructive repo actions
  • Optional export path kept separate from retrieval path

Environment variables

  • EASYCOPY_PATH – override easycopy binary path
  • EASYCOPY_VERSION_TAG – release tag for binary fetch (latest default)
  • EASYCOPY_RELEASE_OWNER / EASYCOPY_RELEASE_REPO – release source override
  • EASYCOPY_MCP_CACHE_DIR – binary cache directory
  • EASYCOPY_INLINE_LIMIT_BYTES – inline HTML cap
  • EASYCOPY_OUTPUT_DIR – default output directory for exports
  • EASYCOPY_OUTPUT_PREFIX – default output prefix for exports
  • GITHUB_TOKEN – optional API/download resilience for release fetch

Local dev

cd mcp-server
npm run check
npm run selftest
npm pack --dry-run

Publishing

Publishing is automated in GitHub Actions on tags matching mcp-v*. The npm package page README is updated automatically from this file at publish time.