JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 23
  • Score
    100M100P100Q103413F
  • License MIT

CLI to initialize and manage Cortex Context (Knowledge Graph) in any VS Code workspace

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

    npm version CI License: MIT Node.js 18+

    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 cortex entry into .vscode/mcp.json

    Requirements

    Installation

    # Install globally
    npm install -g @cortex-context/cli
    
    # Or run directly without installing
    npx @cortex-context/cli init

    Usage

    # 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

    What init Does

    1. Prompts for Cortex server URL and optional API token
    2. Tests connectivity to the Cortex server
    3. Copies Skills into {workspace}/.github/skills/
    4. Injects cortex entry into {workspace}/.vscode/mcp.json (uses npx @cortex-context/cli mcp-serve)
    5. 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 doctor

    Commands

    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