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
17 lines
446 B
Bash
Executable File
17 lines
446 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
|
|
# Sets secure file permissions on ~/.context/config.json.
|
|
# Run after every `context auth add` to protect stored credentials.
|
|
# Safe to run when the file does not exist yet.
|
|
|
|
CONFIG="${HOME}/.context/config.json"
|
|
|
|
if [ ! -f "$CONFIG" ]; then
|
|
echo "Skipped: ${CONFIG} does not exist — no permissions to set."
|
|
exit 0
|
|
fi
|
|
|
|
chmod 600 "$CONFIG"
|
|
echo "Secured: ${CONFIG} set to 600 (owner read/write only)."
|