From 01c7ab0ef1aef914afc09718860384f67768fdf6 Mon Sep 17 00:00:00 2001 From: Strawbird Date: Mon, 13 Jul 2026 18:01:16 -0700 Subject: [PATCH 1/2] feat: add globalcheck out-of-the-box support --- install.sh | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/install.sh b/install.sh index d0678011d..6954d6d00 100755 --- a/install.sh +++ b/install.sh @@ -21,6 +21,7 @@ REPO="DeusData/codebase-memory-mcp" INSTALL_DIR="$HOME/.local/bin" VARIANT="standard" SKIP_CONFIG=false +ENABLE_GLOBALCHECK=false CBM_DOWNLOAD_URL="${CBM_DOWNLOAD_URL:-https://github.com/${REPO}/releases/latest/download}" # Security: reject non-HTTPS download URLs (defense-in-depth) @@ -35,12 +36,14 @@ for arg in "$@"; do --standard) VARIANT="standard" ;; --dir=*) INSTALL_DIR="${arg#--dir=}" ;; --skip-config) SKIP_CONFIG=true ;; + --enable-globalcheck) ENABLE_GLOBALCHECK=true ;; --help|-h) - echo "Usage: install.sh [--ui] [--dir=] [--skip-config]" + echo "Usage: install.sh [--ui] [--dir=] [--skip-config] [--enable-globalcheck]" echo " --ui Install the UI variant (with graph visualization)" echo " --standard Install the standard variant (default)" echo " --dir PATH Install directory (default: ~/.local/bin)" echo " --skip-config Skip automatic agent configuration" + echo " --enable-globalcheck Enable GlobalCheck compliance for configured agents" exit 0 ;; esac @@ -196,7 +199,12 @@ if [ "$SKIP_CONFIG" = true ]; then else echo "" echo "Configuring coding agents..." - "$DEST" install -y 2>&1 || { + INSTALL_ARGS="-y" + if [ "$ENABLE_GLOBALCHECK" = true ]; then + INSTALL_ARGS+=" --enable-globalcheck" + echo " (GlobalCheck compliance enabled)" + fi + "$DEST" install $INSTALL_ARGS 2>&1 || { echo "" echo "Agent configuration failed (non-fatal)." echo "Run manually: codebase-memory-mcp install" From b3576f5f1539fb030e00ba04e6bcaa26aec0f805 Mon Sep 17 00:00:00 2001 From: Strawbird Date: Mon, 13 Jul 2026 18:01:31 -0700 Subject: [PATCH 2/2] feat: add globalcheck out-of-the-box support --- install.sh | 22 ++++++++++++++-------- 1 file changed, 14 insertions(+), 8 deletions(-) diff --git a/install.sh b/install.sh index 6954d6d00..e05f94e10 100755 --- a/install.sh +++ b/install.sh @@ -21,7 +21,7 @@ REPO="DeusData/codebase-memory-mcp" INSTALL_DIR="$HOME/.local/bin" VARIANT="standard" SKIP_CONFIG=false -ENABLE_GLOBALCHECK=false +GLOBALCHECK_ENABLED=false CBM_DOWNLOAD_URL="${CBM_DOWNLOAD_URL:-https://github.com/${REPO}/releases/latest/download}" # Security: reject non-HTTPS download URLs (defense-in-depth) @@ -36,14 +36,14 @@ for arg in "$@"; do --standard) VARIANT="standard" ;; --dir=*) INSTALL_DIR="${arg#--dir=}" ;; --skip-config) SKIP_CONFIG=true ;; - --enable-globalcheck) ENABLE_GLOBALCHECK=true ;; + --enable-globalcheck) GLOBALCHECK_ENABLED=true ;; --help|-h) echo "Usage: install.sh [--ui] [--dir=] [--skip-config] [--enable-globalcheck]" echo " --ui Install the UI variant (with graph visualization)" echo " --standard Install the standard variant (default)" echo " --dir PATH Install directory (default: ~/.local/bin)" echo " --skip-config Skip automatic agent configuration" - echo " --enable-globalcheck Enable GlobalCheck compliance for configured agents" + echo " --enable-globalcheck Enable GlobalCheck compliance for agents" exit 0 ;; esac @@ -199,12 +199,11 @@ if [ "$SKIP_CONFIG" = true ]; then else echo "" echo "Configuring coding agents..." - INSTALL_ARGS="-y" - if [ "$ENABLE_GLOBALCHECK" = true ]; then - INSTALL_ARGS+=" --enable-globalcheck" - echo " (GlobalCheck compliance enabled)" + GLOBALCHECK_ARGS="" + if [ "$GLOBALCHECK_ENABLED" = true ]; then + GLOBALCHECK_ARGS="--enable-globalcheck" fi - "$DEST" install $INSTALL_ARGS 2>&1 || { + "$DEST" install -y $GLOBALCHECK_ARGS 2>&1 || { echo "" echo "Agent configuration failed (non-fatal)." echo "Run manually: codebase-memory-mcp install" @@ -223,6 +222,13 @@ fi echo "" echo "Done! Restart your coding agent to start using codebase-memory-mcp." +if [ "$GLOBALCHECK_ENABLED" = true ]; then + echo "" + echo "GlobalCheck compliance enabled. For full functionality, consider setting your API key:" + echo " export GLOBALCHECK_API_KEY=\"YOUR_API_KEY_HERE\"" + echo " (Your agent will pick this up when configured by codebase-memory-mcp)" +fi + } # end main() main "$@"