Compare commits
1 commit
main
...
create-scr
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ff937d9282 |
2 changed files with 64 additions and 0 deletions
56
conductor-setup.sh
Executable file
56
conductor-setup.sh
Executable file
|
|
@ -0,0 +1,56 @@
|
||||||
|
#!/bin/bash
|
||||||
|
set -e
|
||||||
|
|
||||||
|
echo "🚀 Setting up Graphiti workspace..."
|
||||||
|
|
||||||
|
# Check for required tools
|
||||||
|
if ! command -v uv &> /dev/null; then
|
||||||
|
echo "❌ Error: uv package manager not found. Please install uv first:"
|
||||||
|
echo " curl -LsSf https://astral.sh/uv/install.sh | sh"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Copy environment file if it exists in the root
|
||||||
|
if [ -f "$CONDUCTOR_ROOT_PATH/.env" ]; then
|
||||||
|
echo "📋 Copying environment configuration..."
|
||||||
|
cp "$CONDUCTOR_ROOT_PATH/.env" .env
|
||||||
|
elif [ -f "$CONDUCTOR_ROOT_PATH/.env.example" ]; then
|
||||||
|
echo "📋 Copying example environment configuration..."
|
||||||
|
cp "$CONDUCTOR_ROOT_PATH/.env.example" .env
|
||||||
|
echo "⚠️ Please configure your API keys in .env file"
|
||||||
|
else
|
||||||
|
echo "⚠️ No .env file found. You may need to configure environment variables."
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Install main project dependencies
|
||||||
|
echo "📦 Installing core dependencies..."
|
||||||
|
uv sync --extra dev
|
||||||
|
|
||||||
|
# Install server dependencies
|
||||||
|
echo "📦 Installing server dependencies..."
|
||||||
|
cd server
|
||||||
|
uv sync --extra dev
|
||||||
|
cd ..
|
||||||
|
|
||||||
|
# Install MCP server dependencies if available
|
||||||
|
if [ -d "mcp_server" ]; then
|
||||||
|
echo "📦 Installing MCP server dependencies..."
|
||||||
|
cd mcp_server
|
||||||
|
uv sync
|
||||||
|
cd ..
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Run initial checks to ensure everything is working
|
||||||
|
echo "🔍 Running initial checks..."
|
||||||
|
uv run ruff check --select I --fix
|
||||||
|
uv run ruff format
|
||||||
|
echo "✨ Graphiti workspace setup complete!"
|
||||||
|
|
||||||
|
# Display helpful information
|
||||||
|
echo ""
|
||||||
|
echo "📚 Quick Start Guide:"
|
||||||
|
echo "• Main project commands: make format, make lint, make test"
|
||||||
|
echo "• Server commands: cd server && make format, make lint, make test"
|
||||||
|
echo "• Run server: Click 'Run' button or use 'cd server && uv run uvicorn graph_service.main:app --reload'"
|
||||||
|
echo "• Configure API keys in .env file (OPENAI_API_KEY required)"
|
||||||
|
echo ""
|
||||||
8
conductor.json
Normal file
8
conductor.json
Normal file
|
|
@ -0,0 +1,8 @@
|
||||||
|
{
|
||||||
|
"scripts": {
|
||||||
|
"setup": "./conductor-setup.sh",
|
||||||
|
"run": "cd server && uv run uvicorn graph_service.main:app --reload --port $CONDUCTOR_PORT",
|
||||||
|
"run-mcp": "cd mcp_server && uv run python graphiti_mcp_server.py --transport sse --use-custom-entities"
|
||||||
|
},
|
||||||
|
"runScriptMode": "nonconcurrent"
|
||||||
|
}
|
||||||
Loading…
Add table
Reference in a new issue