#!/bin/bash # mcrentcast MCP Server Installation Script set -e echo "๐Ÿš€ Installing mcrentcast MCP Server..." echo "=======================================" # Check if uv is installed if ! command -v uv &> /dev/null; then echo "โŒ uv is not installed. Please install it first:" echo " curl -LsSf https://astral.sh/uv/install.sh | sh" exit 1 fi # Get the directory of this script SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" # Install dependencies echo "๐Ÿ“ฆ Installing Python dependencies..." cd "$SCRIPT_DIR" uv sync # Create data directory echo "๐Ÿ“ Creating data directory..." mkdir -p data # Initialize database echo "๐Ÿ—„๏ธ Initializing database..." uv run python -c " from mcrentcast.database import db_manager db_manager.create_tables() print('โœ… Database initialized') " # Copy environment file if it doesn't exist if [ ! -f .env ]; then echo "๐Ÿ“‹ Creating .env file from template..." cp .env.example .env echo "โš ๏ธ Please edit .env and add your Rentcast API key" fi echo "" echo "โœ… Installation complete!" echo "" echo "๐Ÿ“Œ Next steps:" echo "1. Edit .env and set your RENTCAST_API_KEY" echo "2. Add to Claude using: claude mcp add $SCRIPT_DIR" echo "3. Or add manually to your Claude MCP configuration" echo "" echo "๐Ÿงช To test with mock API (no credits required):" echo " make test-mock" echo "" echo "๐Ÿ“š Documentation: $SCRIPT_DIR/docs/mock-api.md"