mcp-vultr/install_dev.sh
Ryan Malloy 566406e33e
Some checks failed
Tests / test (3.10) (push) Has been cancelled
Tests / test (3.11) (push) Has been cancelled
Tests / security (push) Has been cancelled
Tests / test (3.12) (push) Has been cancelled
Tests / test (3.13) (push) Has been cancelled
Tests / test-install (3.13) (push) Has been cancelled
Tests / build (push) Has been cancelled
Tests / test-install (3.10) (push) Has been cancelled
feat: Add universal UUID lookup pattern and update README
- Implement smart identifier resolution across all modules (v1.9.0)
  - Instances: lookup by label or hostname
  - SSH Keys: lookup by name
  - Firewall Groups: lookup by description
  - Snapshots: lookup by description
  - Reserved IPs: lookup by IP address
- All UUID lookups use exact matching for safety
- Update README.md with comprehensive feature documentation
- Add detailed changelog showing version progression
- Enhance examples to demonstrate smart identifier resolution

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-17 13:54:26 -06:00

69 lines
1.8 KiB
Bash

#!/bin/bash
# Development installation script for mcp-vultr
# This script installs the package in development mode for testing
set -e
echo "🔧 Installing mcp-vultr in development mode..."
# Change to package directory
cd "$(dirname "$0")"
# Check for uv first, fall back to pip
if command -v uv &> /dev/null; then
echo "📦 Using uv for fast, modern dependency management..."
# Sync dependencies with dev extras
echo "🔄 Syncing dependencies..."
uv sync --extra dev
echo "✅ Installation complete!"
echo ""
echo "🚀 You can now run:"
echo " mcp-vultr --help"
echo " mcp-vultr server"
echo ""
echo "🧪 Run tests with:"
echo " uv run pytest"
echo " uv run python run_tests.py --all-checks"
echo ""
echo "🔧 Code quality tools:"
echo " uv run black src tests"
echo " uv run mypy src"
echo ""
else
echo "📦 Using pip (consider installing uv for faster dependency management)..."
echo " Install uv: curl -LsSf https://astral.sh/uv/install.sh | sh"
echo ""
# Check if we're in a virtual environment
if [[ -z "$VIRTUAL_ENV" ]]; then
echo "⚠️ Warning: Not in a virtual environment"
echo " Consider running: python -m venv .venv && source .venv/bin/activate"
echo ""
fi
# Install in development mode
echo "📦 Installing package dependencies..."
pip install -e .
echo "🧪 Installing development dependencies..."
pip install -e .[dev]
echo "✅ Installation complete!"
echo ""
echo "🚀 You can now run:"
echo " mcp-vultr --help"
echo " mcp-vultr server"
echo ""
echo "🧪 Run tests with:"
echo " pytest"
echo " python run_tests.py --all-checks"
echo ""
fi
echo "📝 Set your API key:"
echo " export VULTR_API_KEY='your-api-key-here'"