Skip to main content
Glama
setup_env.sh1.12 kB
#!/bin/bash echo "📝 Setting up .env file for BookStack MCP Server" echo "================================================" echo "" # Check if .env already exists if [ -f .env ]; then echo "⚠️ .env file already exists!" read -p "Do you want to overwrite it? (y/N): " -n 1 -r echo if [[ ! $REPLY =~ ^[Yy]$ ]]; then echo "Keeping existing .env file" exit 0 fi fi # Get BookStack URL echo "Enter your BookStack URL (default: http://192.168.1.193:6875):" read -r BS_URL_INPUT BS_URL=${BS_URL_INPUT:-http://192.168.1.193:6875} # Get Token ID echo "" echo "Enter your BookStack API Token ID:" read -r BS_TOKEN_ID # Get Token Secret echo "" echo "Enter your BookStack API Token Secret:" read -r BS_TOKEN_SECRET # Create .env file cat > .env << EOF BS_URL=$BS_URL BS_TOKEN_ID=$BS_TOKEN_ID BS_TOKEN_SECRET=$BS_TOKEN_SECRET EOF echo "" echo "✅ .env file created successfully!" echo "" echo "Configuration:" echo " URL: $BS_URL" echo " Token ID: ${BS_TOKEN_ID:0:10}..." echo " Token Secret: [HIDDEN]" echo "" echo "Next step: Run ./test_connection.py to verify the setup"

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/lborjigi/bookstack-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server