Skip to main content
Glama

DollhouseMCP

by DollhouseMCP
setup-gitflow-guardian.shโ€ข4.98 kB
#!/bin/bash # Setup script for GitFlow Guardian hooks # This configures Git to use our custom hooks directory # Colors GREEN='\033[0;32m' YELLOW='\033[1;33m' BLUE='\033[0;34m' NC='\033[0m' echo -e "${BLUE}โ•”โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•—${NC}" echo -e "${BLUE}โ•‘ ๐Ÿ›ก๏ธ GitFlow Guardian Setup โ•‘${NC}" echo -e "${BLUE}โ• โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•ฃ${NC}" echo -e "${BLUE}โ•‘ โ•‘${NC}" echo -e "${BLUE}โ•‘ This will install Git hooks to enforce GitFlow practices: โ•‘${NC}" echo -e "${BLUE}โ•‘ โ•‘${NC}" echo -e "${BLUE}โ•‘ โ€ข Prevent direct commits to main/develop โ•‘${NC}" echo -e "${BLUE}โ•‘ โ€ข Enforce branch naming conventions โ•‘${NC}" echo -e "${BLUE}โ•‘ โ€ข Provide helpful reminders when switching branches โ•‘${NC}" echo -e "${BLUE}โ•‘ โ•‘${NC}" echo -e "${BLUE}โ•šโ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•${NC}" echo "" # Check if we're in a git repository if ! git rev-parse --git-dir > /dev/null 2>&1; then echo -e "${YELLOW}โŒ Error: Not in a git repository${NC}" exit 1 fi # Get the repository root REPO_ROOT=$(git rev-parse --show-toplevel) # Check if hooks directory exists if [ ! -d "$REPO_ROOT/.githooks" ]; then echo -e "${YELLOW}โŒ Error: .githooks directory not found${NC}" echo -e "${YELLOW} Please run this from the mcp-server repository root${NC}" exit 1 fi # Configure git to use our hooks directory echo -e "${GREEN}โ†’ Configuring Git to use .githooks directory...${NC}" git config core.hooksPath .githooks # Ensure hooks are executable echo -e "${GREEN}โ†’ Setting hook permissions...${NC}" chmod +x "$REPO_ROOT/.githooks/pre-commit" chmod +x "$REPO_ROOT/.githooks/post-checkout" # Verify configuration HOOKS_PATH=$(git config core.hooksPath) if [ "$HOOKS_PATH" = ".githooks" ]; then echo -e "${GREEN}โœ… Git hooks configured successfully!${NC}" else echo -e "${YELLOW}โš ๏ธ Warning: Git hooks path may not be set correctly${NC}" echo -e "${YELLOW} Current path: $HOOKS_PATH${NC}" fi echo "" echo -e "${GREEN}โ•”โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•—${NC}" echo -e "${GREEN}โ•‘ โœ… Setup Complete! โ•‘${NC}" echo -e "${GREEN}โ• โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•ฃ${NC}" echo -e "${GREEN}โ•‘ โ•‘${NC}" echo -e "${GREEN}โ•‘ GitFlow Guardian is now active! โ•‘${NC}" echo -e "${GREEN}โ•‘ โ•‘${NC}" echo -e "${GREEN}โ•‘ The hooks will: โ•‘${NC}" echo -e "${GREEN}โ•‘ โ€ข Block commits to main/develop branches โ•‘${NC}" echo -e "${GREEN}โ•‘ โ€ข Remind you about GitFlow when switching branches โ•‘${NC}" echo -e "${GREEN}โ•‘ โ€ข Suggest proper branch naming โ•‘${NC}" echo -e "${GREEN}โ•‘ โ•‘${NC}" echo -e "${GREEN}โ•‘ To disable temporarily: โ•‘${NC}" echo -e "${GREEN}โ•‘ git commit --no-verify โ•‘${NC}" echo -e "${GREEN}โ•‘ โ•‘${NC}" echo -e "${GREEN}โ•‘ To disable permanently: โ•‘${NC}" echo -e "${GREEN}โ•‘ git config --unset core.hooksPath โ•‘${NC}" echo -e "${GREEN}โ•‘ โ•‘${NC}" echo -e "${GREEN}โ•šโ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•${NC}" # Show current branch as a test echo "" echo -e "${BLUE}Current branch: $(git branch --show-current)${NC}"

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/DollhouseMCP/DollhouseMCP'

If you have feedback or need assistance with the MCP directory API, please join our Discord server