Package Exports
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@cortex-context/cli) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
cortex-context CLI
CLI to initialize and manage Cortex Context (Knowledge Graph) tooling in any VS Code workspace.
Installs:
- Skills — VS Code Copilot Agent skills for Cortex (
cortex-research,cortex-dimensions,cortex-ingest,generate-spec) - MCP Server — TypeScript stdio server exposing Cortex tools to GitHub Copilot (bundled — no Python needed)
- VS Code Config — Injects
cortexentry into.vscode/mcp.json
Requirements
- Node.js 18+
- A running Cortex server
Installation
# Install globally
npm install -g @cortex-context/cli
# Or run directly without installing
npx @cortex-context/cli initUsage
# 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 doctorWhat init Does
- Prompts for Cortex server URL and optional API token
- Tests connectivity to the Cortex server
- Copies Skills into
{workspace}/.github/skills/ - Injects
cortexentry into{workspace}/.vscode/mcp.json(usesnpx @cortex-context/cli mcp-serve) - Saves configuration to
~/.cortex-context/config.json
After Init
# Reload VS Code (Cmd/Ctrl+Shift+P → "Reload Window")
# Then run doctor to verify:
cortex-context doctorCommands
| Command | Description |
|---|---|
cortex-context init |
Full interactive setup |
cortex-context sync |
Update Skills + MCP to latest bundled version |
cortex-context sync --dry-run |
Preview sync changes |
cortex-context doctor |
Validate installation + test Cortex connectivity |
Options (init)
| Flag | Description |
|---|---|
--url <url> |
Cortex server URL (skips prompt) |
--token <tok> |
API token (skips prompt) |
--workspace |
Target workspace path (default: cwd) |
--skip-mcp |
Don't install MCP server |
--skip-skills |
Don't install Skills |
--force |
Overwrite existing files |
Contributing
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.
License
MIT