Context7 injects up-to-date library docs into agent context via MCP.
Setup (Cursor / Windsurf / compatible IDE)#
Add to your MCP config (example):
{
"mcpServers": {
"context7": {
"command": "npx",
"args": ["-y", "@upstash/context7-mcp"]
}
}
}Restart the IDE after saving.
Libraries to query for this repo#
| Library | Context7 search term | Use for |
|---|---|---|
| Heretic | heretic-llm or GitHub p-e-w/heretic | CLI flags, config.default.toml, install |
| llm-abliteration | jim-plus/llm-abliteration | sharded_ablate.py, YAML layer configs (v1.2 handbook path; not the frozen Nous fork) |
| PEFT / LoRA | huggingface/peft | Adapter load, merge, 4-bit inference |
| TransformerLens | transformer_lens | Hook names, HookedTransformer |
| Optuna | optuna | Heretic's TPE optimizer internals |
| PyTorch | pytorch | torch_dtype, quantization |
| llama.cpp | llama.cpp | GGUF conversion after abliteration |
Typical agent workflow#
1. resolve-library-id("heretic automatic abliteration")
2. query-docs(libraryId, "installation pip install heretic-llm==1.4.0 CLI options")
3. query-docs(libraryId, "quantization bnb_4bit config.default.toml")When Context7 is unavailable#
Run the headless fetcher instead:
node scripts/fetch-docs.mjsOr pull READMEs directly:
curl -L https://raw.githubusercontent.com/p-e-w/heretic/v1.4.0/README.md
curl -L https://raw.githubusercontent.com/p-e-w/heretic/v1.4.0/config.default.toml