#!/bin/bash
# Setup script for Graphiti MCP Server
echo "Setting up Graphiti MCP Server..."
# Check if uv is installed
if command -v uv &> /dev/null; then
echo "Using uv to install dependencies..."
uv sync
else
echo "uv not found. Using pip instead..."
pip install -e .
fi
# Check if .env exists
if [ ! -f .env ]; then
echo "Creating .env file from env.example..."
cp env.example .env
echo "Please edit .env and add your OPENAI_API_KEY"
else
echo ".env file already exists"
fi
echo "Setup complete!"
echo ""
echo "Next steps:"
echo "1. Edit .env and add your OPENAI_API_KEY"
echo "2. Run 'docker compose up' to start Neo4j and MCP server"
echo " OR run 'uv run graphiti_mcp_server.py --transport sse' to start just the server"