Skip to main content
Glama

SAP Note Search MCP Server

by marianfoo
test-headless-fix.shโ€ข1.38 kB
#!/bin/bash # Test Script to Verify Headless Mode Fix echo "๐Ÿงช Testing Headless Mode Fix for Docker Containers" echo "================================================" echo "" # Test 1: Basic environment detection echo "๐Ÿ“Š Environment Detection Test:" echo "Platform: $(uname -s)" echo "Architecture: $(uname -m)" echo "Docker env: ${DOCKER_ENV:-NOT_SET}" echo "Display: ${DISPLAY:-NOT_SET}" echo "TTY stdin: $(tty <&0 2>/dev/null && echo 'YES' || echo 'NO')" echo "CI: ${CI:-NOT_SET}" echo "" # Test 2: Run auth test (should work) echo "๐Ÿ” Running authentication test..." if npm run test:auth 2>&1 | tail -10; then echo "โœ… Authentication test passed" else echo "โŒ Authentication test failed" fi echo "" # Test 3: Run MCP test with debug mode echo "๐Ÿ”ง Running MCP test with debug logging..." echo "This will show detailed browser launch configuration:" echo "" # Set container environment and debug mode export DOCKER_ENV=true export LOG_LEVEL=debug # Run the MCP test echo "Starting MCP test with container detection..." npm run test:mcp:debug 2>&1 | head -50 echo "" echo "๐ŸŽฏ Test completed! Check the output above for:" echo "1. โœ… Container detection: true" echo "2. โœ… Force headless: true" echo "3. โœ… Final headless: true" echo "4. โœ… No X server errors" echo "" echo "If you see 'Missing X server' errors, the fix needs further adjustment."

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/marianfoo/mcp-sap-notes'

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