| Crates.io | context-creator |
| lib.rs | context-creator |
| version | 1.5.0 |
| created_at | 2025-07-17 11:20:46.88517+00 |
| updated_at | 2025-08-04 17:41:24.689703+00 |
| description | High-performance CLI tool to convert codebases to Markdown for LLM context |
| homepage | |
| repository | https://github.com/matiasvillaverde/context-creator |
| max_upload_size | |
| id | 1757353 |
| size | 2,167,055 |
High-performance CLI for building quality context windows that make AI assistants actually understand your codebase.
AI coding assistants are only as good as the context you provide. Most tools simply concatenate files, leading to:
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.
# Generic context that includes everything
cat src/**/*.ts > context.txt # 500K tokens of mostly noise
# 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
npm install -g context-creator-mcp@latest
For platform-specific MCP client setup, see Installation Guide.
# 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
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
analyze_local - Analyze local codebases with dependency awarenessanalyze_remote - Analyze Git repositoriessearch - Text pattern searchsemantic_search - AST-based code searchfile_metadata - File informationdiff - File comparisonnode_modules/
target/
*.log
.env
src/core/**
src/api/**
[defaults]
max_tokens = 200000
[[priorities]]
pattern = "src/core/**"
weight = 100
git clone https://github.com/matiasvillaverde/context-creator
cd context-creator
cargo build --release
See CONTRIBUTING.md for guidelines.
MIT