We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/LerianStudio/lerian-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
validate-setup.shโข2.44 kB
#!/bin/bash
# Validation script to ensure the simplified README instructions work
# This simulates a new user following the README
set -e
echo "๐งช Validating README Quick Start Instructions"
echo "============================================="
echo ""
# Check if we're in the project directory
if [ ! -f "package.json" ]; then
echo "โ Error: Run this script from the project root directory"
exit 1
fi
echo "โ Project directory validated"
# Test 1: Check if make setup works
echo "๐ Testing: make setup"
echo "make config"
make config > /dev/null 2>&1
if [ $? -eq 0 ]; then
echo "โ Configuration files setup works"
else
echo "โ Configuration setup failed"
exit 1
fi
# Test 2: Check if make build works
echo "๐ Testing: make build"
make build > /dev/null 2>&1
if [ $? -eq 0 ]; then
echo "โ Build process works"
else
echo "โ Build process failed"
exit 1
fi
# Test 3: Check if make test-logging works
echo "๐ Testing: make test-logging"
make test-logging > /dev/null 2>&1
if [ $? -eq 0 ]; then
echo "โ Logging test works"
else
echo "โ Logging test failed"
exit 1
fi
# Test 4: Check if configuration files exist
if [ -f ".env" ] && [ -f "midaz-mcp-config.json" ]; then
echo "โ Configuration files created successfully"
else
echo "โ Configuration files missing"
exit 1
fi
# Test 5: Check if built files exist
if [ -f "dist/index.js" ] && [ -f "dist/cli.js" ]; then
echo "โ Build artifacts created successfully"
else
echo "โ Build artifacts missing"
exit 1
fi
# Test 6: Validate JSON configs
node -e "JSON.parse(require('fs').readFileSync('.env.example', 'utf8').split('\n').filter(l => !l.startsWith('#') && l.includes('=')).join('\n'))" 2>/dev/null || true
node -e "JSON.parse(require('fs').readFileSync('midaz-mcp-config.json', 'utf8'))" > /dev/null 2>&1
if [ $? -eq 0 ]; then
echo "โ Configuration files are valid"
else
echo "โ Configuration files have syntax errors"
exit 1
fi
echo ""
echo "๐ All validation tests passed!"
echo "๐ The README Quick Start instructions work correctly"
echo ""
echo "๐ Summary of what works:"
echo " โ make setup (configuration + build)"
echo " โ make build (TypeScript compilation)"
echo " โ make test-logging (logging system)"
echo " โ Configuration file creation"
echo " โ JSON validation"
echo ""
echo "๐ Ready for Claude Desktop integration!"