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 🙏

© 2025 – Pkg Stats / Ryan Hefner

context-creator-mcp

v1.5.0

Published

High-performance CLI tool to convert codebases to Markdown for LLM context - MCP Server

Readme

context-creator

CI License: MIT Rust

High-performance CLI for building quality context windows that make AI assistants actually understand your codebase.

The Problem

AI coding assistants are only as good as the context you provide. Most tools simply concatenate files, leading to:

  • Irrelevant files cluttering the context window
  • Missing dependencies that are crucial for understanding
  • Token limits wasted on unimportant code
  • No understanding of how your code actually connects

The Solution

context-creator uses tree-sitter to build a dependency graph of your codebase, selecting only the files relevant to your task. It's like repomix, but faster and smarter.

Without context-creator

# Generic context that includes everything
cat src/**/*.ts > context.txt  # 500K tokens of mostly noise

With context-creator

# Intelligent context that follows your code's actual dependencies
context-creator --prompt "How does the authentication work?"
# Returns: auth files + their actual dependencies + related tests = 50K relevant tokens

Key Advantages

  • Dependency-aware: Uses tree-sitter AST parsing to understand imports, not just file names
  • Fast: Rust-powered parallel processing handles massive codebases in seconds
  • Smart selection: Includes only files connected to your query through the dependency graph
  • Multi-language: Semantic analysis for Python, TypeScript, JavaScript, and Rust
  • MCP integration: Works as a server for AI assistants to query your codebase programmatically

Installation

npm install -g context-creator-mcp@latest

For platform-specific MCP client setup, see Installation Guide.

Usage

CLI

# Analyze current directory
context-creator

# Build focused context for specific task
context-creator --prompt "Find security vulnerabilities in the auth system"

# Trace dependencies of specific files
context-creator --trace-imports --include "**/auth.py"

# Compare changes with dependency context
context-creator diff HEAD~1 HEAD

# Enrich code with OpenTelemetry runtime metrics
context-creator telemetry -t traces.json

MCP Server

Add to your MCP client configuration:

{
  "mcpServers": {
    "context-creator": {
      "command": "npx",
      "args": ["-y", "context-creator-mcp@latest"]
    }
  }
}

Then in your AI assistant:

"Explain how the payment system works" # AI will use analyze_local to build relevant context
"Find all SQL injection vulnerabilities" # Searches with full dependency understanding

Features

  • Tree-sitter AST parsing for true code understanding
  • Import tracing and dependency resolution
  • Parallel processing with Rayon
  • Token budget management
  • Git history integration
  • MCP server with programmatic access
  • OpenTelemetry integration for runtime metrics

MCP Tools

  • analyze_local - Analyze local codebases with dependency awareness
  • analyze_remote - Analyze Git repositories
  • search - Text pattern search
  • semantic_search - AST-based code search
  • file_metadata - File information
  • diff - File comparison

Configuration

.contextignore

node_modules/
target/
*.log
.env

.contextkeep

src/core/**
src/api/**

.context-creator.toml

[defaults]
max_tokens = 200000

[[priorities]]
pattern = "src/core/**"
weight = 100

Documentation

Requirements

  • Node.js >= v18.0.0 (for npm package)
  • or Rust >= 1.70.0 (for building from source)

Building from Source

git clone https://github.com/matiasvillaverde/context-creator
cd context-creator
cargo build --release

Contributing

See CONTRIBUTING.md for guidelines.

License

MIT