
Product
Socket Firewall Now Blocks Malicious VS Code and Open VSX Extensions
Socket Firewall blocks malicious VS Code and Open VSX extensions before install, protecting developers from compromised editor marketplaces.
@cortex-context/cli
Advanced tools
CLI to initialize and manage Cortex Context (Knowledge Graph) in any VS Code workspace
CLI to initialize and manage Cortex Context (Knowledge Graph) tooling in any VS Code workspace.
Installs:
cortex-research, cortex-dimensions, cortex-ingest, generate-spec)cortex entry into .vscode/mcp.json# Install globally
npm install -g @cortex-context/cli
# Or run directly without installing
npx @cortex-context/cli init
# Initialize Cortex Context in the current workspace
cortex-context init
# Initialize with specific options (non-interactive)
cortex-context init --url http://localhost:8082 --token <your-token>
# Initialize in a specific workspace folder
cortex-context init --workspace /path/to/your/workspace
# Sync Skills/MCP to latest bundled version
cortex-context sync
# Preview what sync would change
cortex-context sync --dry-run
# Validate installation and connectivity
cortex-context doctor
init Does{workspace}/.github/skills/cortex entry into {workspace}/.vscode/mcp.json (uses npx @cortex-context/cli mcp-serve)~/.cortex-context/config.json# Reload VS Code (Cmd/Ctrl+Shift+P → "Reload Window")
# Then run doctor to verify:
cortex-context doctor
| Command | Description |
|---|---|
cortex-context init | Full interactive setup (Skills, MCP, hooks, rules) |
cortex-context update | Update Skills + MCP files to latest bundled version |
cortex-context update --dry-run | Preview update changes without writing files |
cortex-context sync | Ingest latest git diff into the Cortex Knowledge Graph |
cortex-context sync --dry-run | Show diff without sending to Cortex API |
cortex-context doctor | Validate installation + test Cortex connectivity |
cortex-context uninstall | Remove Cortex Context from the workspace |
| Command | Description |
|---|---|
cortex-context server | Install Docker (if needed) and start Neo4j + Cortex API locally |
cortex-context server --embeddings | Start with embeddings image (sentence-transformers, CPU, ~1.5 GB) |
cortex-context server --embeddings-gpu | Start with embeddings GPU image (PyTorch CUDA, ~2 GB — requires nvidia) |
cortex-context upgrade | Pull latest Cortex backend image and restart the local stack |
cortex-context upgrade --embeddings | Upgrade using the embeddings image variant |
cortex-context upgrade --embeddings-gpu | Upgrade using the embeddings GPU image variant (PyTorch CUDA, ~2 GB — requires nvidia) |
cortex-context upgrade --pull-only | Pull latest image without recreating the container |
cortex-context downgrade | Switch to the base image variant (lightest, no embeddings) |
cortex-context downgrade --embeddings | Switch to the CPU embeddings variant (lighter than GPU) |
| Command | Description |
|---|---|
cortex-context token | Show current API token (masked) |
cortex-context token --show | Reveal the full token |
cortex-context token --rotate | Generate a new random token, save it, and restart stack |
cortex-context token --set <val> | Set a specific token value (empty string clears auth) |
| Command | Description |
|---|---|
cortex-context reset | Wipe all nodes and relationships from the Knowledge Graph |
cortex-context mcp-serve | Start the MCP server over stdio (used internally by VS Code/Cursor) |
| Flag | Description |
|---|---|
--url <url> | Cortex server URL (skips prompt) |
--token <tok> | API token (skips prompt) |
--workspace | Target workspace path (default: cwd) |
--local | Deploy a local Cortex stack with Docker (mutually exclusive with --url) |
--skip-mcp | Don't configure MCP server |
--skip-skills | Don't install Skills |
--skip-hooks | Don't install git hooks |
--skip-rules | Don't inject Copilot/Cursor rules |
--force | Overwrite existing files without prompting |
Contributions are welcome! Please read CONTRIBUTING.md before opening a pull request.
Found a bug? Open a bug report.
Have an idea? Open a feature request.
MIT
FAQs
CLI to initialize and manage Cortex Context (Knowledge Graph) in any VS Code workspace
The npm package @cortex-context/cli receives a total of 3 weekly downloads. As such, @cortex-context/cli popularity was classified as not popular.
We found that @cortex-context/cli demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Product
Socket Firewall blocks malicious VS Code and Open VSX extensions before install, protecting developers from compromised editor marketplaces.

Research
More than 140 Mastra npm packages were compromised in a supply chain attack that used a typosquatted dependency to deliver a cross-platform infostealer during installation.

Research
/Security News
A new npm package tests AI malware scanners with prompt injection, safety-triggering comments, context flooding, and obfuscated JavaScript.