JSPM

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

Reconstruct CLI — auth, MCP install (Cursor, Claude Code), and template commands for AI assistants

Package Exports

  • reconstruct-cli
  • reconstruct-cli/dist/cli/index.js

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 (reconstruct-cli) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Reconstruct CLI

Reconstruct CLI — sign in, install MCP and assistant plugins, and sync commands/rules from templates.

Installation

npm install -g reconstruct-cli

Use one primary path for MCP and supported IDE integrations (no manual API key paste):

  1. Sign in (device code; stores credentials under ~/.reconstruct/):

    reconstruct auth login
  2. Install MCP + plugins for the assistants you use (creates an mcp_ key via your account; currently Cursor and Claude Code in the installer):

    reconstruct install
    # or, e.g.:
    reconstruct install --assistant cursor,claude
  3. Optional — commands and rules from versioned templates (downloaded release; global or project scope):

    reconstruct init

Full detail: docs/cli-auth-install.md.

Templates repository

reconstruct init downloads published bundles from github.com/blkinnovate/reconstruct-templates. Releases should attach a templates-*.tar.gz asset. To point elsewhere, set RECONSTRUCT_TEMPLATES_OWNER / RECONSTRUCT_TEMPLATES_REPO, or use RECONSTRUCT_TEMPLATES_SOURCE=local with RECONSTRUCT_TEMPLATES_PATH (see src/templates/downloader.ts).


reconstruct init (templates only)

Installs Reconstruct commands and rules from the published template bundle. This is not a substitute for reconstruct auth login + reconstruct install when you need authenticated MCP registration and IDE plugin install.

reconstruct init will:

  • Auto-detect your AI coding assistant (or accept --assistant)
  • Prompt for installation mode (global or project-based)
  • If MCP is already configured, verify it; if not, print the recommended auth login / install steps and continue with template install (it no longer blocks on interactive manual key entry by default)
  • Download and install Reconstruct commands and rules

Command options

reconstruct init [options]

Options:
  --assistant <name>         cursor or claude
  --template-version <ver>   Use specific template version (default: latest)
  --mode <global|project>    Installation mode: global or project-based
  --legacy-mcp-setup         Deprecated: interactive paste of an mcp_ key (prefer auth + install)
  -h, --help                 Display help
  -V, --version              Display version

Examples

Initialize with auto-detection:

reconstruct init

Initialize for a specific assistant:

reconstruct init --assistant cursor
reconstruct init --assistant claude

Project-based installation:

reconstruct init --mode project

Use a specific template version:

reconstruct init --template-version v1.0.0

Authenticated install (reconstruct auth + reconstruct install)

After reconstruct auth login, reconstruct install registers the reconstruct MCP server and applies assistant-specific wiring for Cursor and Claude Code (see the doc above for Cursor plugin and Claude marketplace plugin).

Optional --with-skills copies commands/rules from a local template directory (same idea as template files from init, without downloading).

Full detail: docs/cli-auth-install.md in this repo.