#!/bin/bash # CloneVendorRepos.sh # Script to clone all vendor MCP/LSP repositories for KNEL-AIMiddleware set -e # Exit on error # Colors for output RED='\033[0;31m' GREEN='\033[0;32m' YELLOW='\033[1;33m' NC='\033[0m' # No Color # Vendor directory VENDOR_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)/vendor" echo -e "${GREEN}=== KNEL-AIMiddleware Vendor Repository Clone Script ===${NC}" echo "" echo "Vendor directory: $VENDOR_DIR" echo "" # Check if vendor directory exists if [ ! -d "$VENDOR_DIR" ]; then echo -e "${YELLOW}Creating vendor directory...${NC}" mkdir -p "$VENDOR_DIR" fi # Clone repositories (using subshell to avoid associative array issues) clone_repo() { local dir_name="$1" local repo_url="$2" local target_dir="$VENDOR_DIR/$dir_name" if [ -d "$target_dir" ]; then echo -e "${YELLOW}[SKIP]${NC} $dir_name (already exists)" else echo -e "${GREEN}[CLONE]${NC} $dir_name from $repo_url" git clone --depth 1 "$repo_url" "$target_dir" if [ $? -eq 0 ]; then echo -e "${GREEN}✓${NC} Successfully cloned $dir_name" else echo -e "${RED}✗${NC} Failed to clone $dir_name" return 1 fi fi echo "" } # Clone all repositories clone_repo "KiCAD-MCP-Server" "https://github.com/mixelpixx/KiCAD-MCP-Server.git" clone_repo "blender-mcp" "https://github.com/ahujasid/blender-mcp.git" clone_repo "freecad-mcp" "https://github.com/neka-nat/freecad-mcp.git" clone_repo "context7" "https://github.com/upstash/context7.git" clone_repo "gimp-mcp" "https://github.com/maorcc/gimp-mcp.git" clone_repo "bash-language-server" "https://github.com/bash-lsp/bash-language-server.git" clone_repo "docker-language-server" "https://github.com/docker/docker-language-server.git" clone_repo "marksman" "https://github.com/artempyanykh/marksman.git" clone_repo "drawio-mcp-server" "https://github.com/lgazo/drawio-mcp-server.git" clone_repo "matomo-mcp-client" "https://github.com/openmost/matomo-mcp-client.git" clone_repo "imap-mcp" "https://github.com/non-dirty/imap-mcp.git" clone_repo "mcp-redmine" "https://github.com/runekaagaard/mcp-redmine.git" clone_repo "ghost-mcp" "https://github.com/MFYDev/ghost-mcp.git" clone_repo "discourse-mcp" "https://github.com/discourse/discourse-mcp.git" clone_repo "mcp-cloudron" "https://github.com/serenichron/mcp-cloudron.git" clone_repo "postizz-MCP" "https://github.com/oculairmedia/postizz-MCP.git" clone_repo "snipeit-mcp" "https://github.com/Wil-Collier/snipeit-mcp.git" clone_repo "nextcloud-mcp-server" "https://github.com/cbcoutinho/nextcloud-mcp-server.git" clone_repo "docspace-mcp" "https://github.com/ONLYOFFICE/docspace-mcp.git" clone_repo "docker-mcp" "https://github.com/QuantGeekDev/docker-mcp.git" clone_repo "kubernetes-mcp-server" "https://github.com/containers/kubernetes-mcp-server.git" clone_repo "ProxmoxMCP" "https://github.com/canvrno/ProxmoxMCP.git" clone_repo "terraform-mcp-server" "https://github.com/hashicorp/terraform-mcp-server.git" clone_repo "mcp-ansible" "https://github.com/bsahane/mcp-ansible.git" clone_repo "mcp-server" "https://github.com/bitwarden/mcp-server.git" clone_repo "mcp-adapter" "https://github.com/WordPress/mcp-adapter.git" clone_repo "audiobook-mcp-server" "https://github.com/joelmale/audiobook-mcp-server.git" clone_repo "paperless-mcp" "https://github.com/nloui/paperless-mcp.git" clone_repo "penpot-mcp" "https://github.com/penpot/penpot-mcp.git" clone_repo "ghidra-mcp" "https://github.com/bethington/ghidra-mcp.git" clone_repo "reverse-engineering-assistant" "https://github.com/cyberkaida/reverse-engineering-assistant.git" clone_repo "webserial-mcp" "https://github.com/DG1001/webserial-mcp.git" clone_repo "terraform-ls" "https://github.com/hashicorp/terraform-ls.git" clone_repo "actual-mcp" "https://github.com/s-stefanov/actual-mcp.git" clone_repo "superset-mcp" "https://github.com/aptro/superset-mcp.git" clone_repo "beszel-mcp" "https://github.com/Red5d/beszel-mcp.git" clone_repo "mcp-grafana" "https://github.com/grafana/mcp-grafana.git" clone_repo "ha-mcp" "https://github.com/homeassistant-ai/ha-mcp.git" clone_repo "gitea-mcp" "https://gitea.com/gitea/gitea-mcp.git" clone_repo "limesurvey-mcp" "https://github.com/TonisOrmisson/limesurvey-mcp.git" clone_repo "linkwarden-mcp-server" "https://github.com/irfansofyana/linkwarden-mcp-server.git" clone_repo "firefly-iii-mcp" "https://github.com/etnperlong/firefly-iii-mcp.git" echo -e "${GREEN}=== All repositories cloned successfully! ===${NC}" echo "" echo "Next steps:" echo " 1. Review and configure environment variables in .env" echo " 2. Build and test services: docker compose build " echo " 3. Start services: docker compose up -d --profile dev"