Adds a complete cross-cutting skill to install, configure, and manage @neuledge/context — a local-first MCP server that delivers version-specific library docs to AI agents via SQLite FTS5. Includes: - SKILL.md with 9-step process: install, global MCP registration, per-project --libs scoping, package management, auth, custom registry, upgrade, uninstall - setup-neuledge-context.sh: pinned version install, idempotent version check - secure-context-config.sh: chmod 600 on ~/.context/config.json after auth - 13-case test suite covering both scripts (all pass) - eval.yaml with 6 trigger tests and 4 output tests - references/: context-cli-reference.md, http-mode.md, install-notes.md Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01TP4EGbBg3XMcyF28Lx78XJ
2.9 KiB
Install Notes
Prerequisites
- Node.js LTS (≥18)
- npm — pnpm/yarn also work
No other system dependencies are required. The package uses a WASM SQLite fallback (sql.js-fts5) if the native better-sqlite3 module fails to build — but native mode is significantly faster.
For native SQLite (recommended on Linux servers):
apt-get install -y python3 make g++ # Debian/Ubuntu
File Locations
| Path | Purpose |
|---|---|
~/.context/packages/ |
Downloaded/built SQLite package files (name@version.db) |
~/.context/config.json |
Server configuration (registries, auth credentials) |
Both directories are created automatically on first use.
Self-Hosted Registry Server
Anyone can operate a compatible registry implementing the Download Server API:
GET /search?registry=<r>&name=<n>[&version=<v>]— search packagesGET /packages/<registry>/<name>/<version>— package metadataGET /packages/<registry>/<name>/<version>/download— download.dbfilePOST /packages/<registry>/<name>/<version>— publish (requires Bearer token)
Register a custom server in ~/.context/config.json and reference it with --server <name>.
Upgrade / Uninstall
# Upgrade — pass the target version to the install script
bash scripts/setup-neuledge-context.sh <VERSION>
# Uninstall binary
npm uninstall -g @neuledge/context
# Remove all downloaded packages and config (optional — confirm with user first)
rm -rf ~/.context
No migration needed on upgrade — .db package files are not affected by CLI version changes.
Known Gotchas
-
Native build failure — If
better-sqlite3fails to compile (missing Python/g++), Context falls back to WASM automatically. Queries still work but are slower. Install build tools to fix. -
Package naming —
context remove nextremoves all versions ofnext. Usenext@v16.2.0to target a specific version. -
context addfor git repos — Requiresgitto be installed. Clones the full repo; use--pathto limit to a docs subdirectory and--tagto pin a version. -
Registry package IDs — Registry identifiers follow
<ecosystem>/<name>format (e.g.npm/react,pip/fastapi,cargo/tokio). Thebrowsecommand accepts bare names (react) and infers the registry. -
--libsrestriction — Whencontext serve --libs react next, thesearch_packagesanddownload_packageMCP tools are hidden from the agent. Onlyget_docsis available, scoped to the listed libraries. -
No releases on GitHub — The project publishes via npm directly. Check
npm view @neuledge/context versionfor the current version. -
Auth cookies/headers — Stored in
~/.context/config.jsonas plain JSON. File permissions matter — always runscripts/secure-context-config.shaftercontext auth add.