We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/jfarcand/pierre_mcp_server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
compose-with-envrc.sh•854 B
#!/bin/bash
# Helper script to run Docker Compose with .envrc environment variables
set -e
echo "Loading environment variables from .envrc..."
# Check if .envrc exists
if [ ! -f ".envrc" ]; then
echo "Error: .envrc file not found. Please create it from .env.example"
exit 1
fi
# Source .envrc variables by parsing export statements
while IFS= read -r line; do
if [[ $line =~ ^export[[:space:]]+([^=]+)=(.+)$ ]]; then
var_name="${BASH_REMATCH[1]}"
var_value="${BASH_REMATCH[2]}"
# Remove quotes if present
var_value=$(echo "$var_value" | sed 's/^"//;s/"$//')
export "$var_name"="$var_value"
echo "Loaded $var_name"
fi
done < .envrc
echo "Starting Docker Compose with loaded environment variables..."
# Run docker-compose with all arguments passed to this script
exec docker-compose "$@"