From 6fe8bbdc8f493e9a4fa2de3d4f365beef505820f Mon Sep 17 00:00:00 2001 From: mamba Date: Sat, 31 Jan 2026 13:55:12 +0000 Subject: [PATCH] feat: add curl installer --- README.md | 11 ++++++++++- bin/install.sh | 25 +++++++++++++++++++++++++ docs/RELEASE_NOTES.md | 2 ++ 3 files changed, 37 insertions(+), 1 deletion(-) create mode 100755 bin/install.sh diff --git a/README.md b/README.md index 6668fdf..6669602 100644 --- a/README.md +++ b/README.md @@ -5,11 +5,20 @@ Local-first memory layer for AI development tools via MCP. ![alt text](image.png) ## Install and auto-config (60 seconds) -1) Install globally: +Choose one install method: + +**Option A: npm (recommended)** ```bash npm install -g @context-sync/server ``` +**Option B: curl** +```bash +curl -fsSL https://raw.githubusercontent.com/Intina47/context-sync/main/bin/install.sh | bash +``` + +Requires Node.js 18+ and npm. + 2) Auto-config runs on install. Restart your AI tool. 3) Verify tools: diff --git a/bin/install.sh b/bin/install.sh new file mode 100755 index 0000000..c1d9462 --- /dev/null +++ b/bin/install.sh @@ -0,0 +1,25 @@ +#!/usr/bin/env bash +set -euo pipefail + +PACKAGE_NAME="@context-sync/server" +VERSION_SUFFIX="" + +if [[ -n "${CONTEXT_SYNC_VERSION:-}" ]]; then + VERSION_SUFFIX="@${CONTEXT_SYNC_VERSION}" +fi + +if ! command -v node >/dev/null 2>&1; then + echo "❌ Node.js is required (>= 18). Install Node.js and retry." >&2 + exit 1 +fi + +if ! command -v npm >/dev/null 2>&1; then + echo "❌ npm is required. Install npm and retry." >&2 + exit 1 +fi + +echo "🧠 Installing Context Sync MCP Server..." + +npm install -g "${PACKAGE_NAME}${VERSION_SUFFIX}" + +echo "✅ Install complete. Restart your AI tool to load Context Sync." diff --git a/docs/RELEASE_NOTES.md b/docs/RELEASE_NOTES.md index de35315..5b57279 100644 --- a/docs/RELEASE_NOTES.md +++ b/docs/RELEASE_NOTES.md @@ -7,6 +7,7 @@ This release is a major v2-focused cleanup. It removes legacy v1 tooling and nar - Notion-only setup wizard with clearer prompts and retry flow. - Post-install status tracking with manual-config fallback when auto-config fails. - Setup wizard now summarizes auto-configured platforms and any install issues. +- Added a curl-based installer for global installs. ## Breaking changes - Removed v1-only tools (todos, platform sync, call graph, type analysis, dependency analysis, file write/preview tools, performance monitor, migration prompter, and related modules). @@ -25,3 +26,4 @@ This release is a major v2-focused cleanup. It removes legacy v1 tooling and nar - Auto-config does not run on local installs; use global install or manual config. - Notion setup is intentionally manual via the wizard. - Fixed Windows setup command failing due to a stray BOM in the setup script. +- The curl installer wraps the same npm global install flow.