#!/bin/bash
# MCP File & Git Server Startup Script
set -e
echo "🚀 Starting MCP File & Git Server..."
# Check Node version
if command -v nvm &> /dev/null; then
echo "📦 Using nvm..."
source ~/.nvm/nvm.sh
nvm use 20 || nvm install 20
fi
# Check if node_modules exists
if [ ! -d "node_modules" ]; then
echo "📦 Installing dependencies..."
npm install
fi
# Build TypeScript
echo "🔨 Building TypeScript..."
npm run build
# Set default project root if not set
if [ -z "$PROJECT_ROOT" ]; then
export PROJECT_ROOT=/Users/lachaal/kjr/cursor
echo "📁 Using default PROJECT_ROOT: $PROJECT_ROOT"
fi
# Start server
echo "✅ Starting server on port ${PORT:-3001}..."
echo "📁 Project root: $PROJECT_ROOT"
npm start
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/osamaloup/mcp-file-git-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server