Skip to main content
Glama

SAP Documentation MCP Server

by marianfoo
test-pr.yml•2.21 kB
name: Test PR on: pull_request: branches: [ main ] jobs: test: runs-on: ubuntu-latest steps: - name: Checkout code uses: actions/checkout@v4 with: submodules: recursive - name: Setup Node.js uses: actions/setup-node@v4 with: node-version: '18' cache: 'npm' - name: Install dependencies run: npm ci - name: Setup submodules and build with database verification run: | export SKIP_NESTED_SUBMODULES=1 bash setup.sh # Verify database was built correctly and is not corrupted DB_PATH="./dist/data/docs.sqlite" if [ -f "$DB_PATH" ]; then echo "āœ… Database file created: $DB_PATH" DB_SIZE=$(du -h "$DB_PATH" | cut -f1) echo "šŸ“ Database size: $DB_SIZE" # Test database integrity if sqlite3 "$DB_PATH" "PRAGMA integrity_check;" | grep -q "ok"; then echo "āœ… Database integrity check passed" else echo "āŒ Database integrity check failed" exit 1 fi # Test basic FTS functionality if sqlite3 "$DB_PATH" "SELECT COUNT(*) FROM docs;" | grep -qE '^[1-9][0-9]*$'; then echo "āœ… Database contains indexed documents" DOCUMENT_COUNT=$(sqlite3 "$DB_PATH" "SELECT COUNT(*) FROM docs;") echo "šŸ“„ Document count: $DOCUMENT_COUNT" else echo "āŒ Database appears empty or malformed" exit 1 fi else echo "āŒ Database file not found: $DB_PATH" exit 1 fi - name: Run tests with database health check run: | # Run the standard tests npm run test # Additional database health verification after tests echo "==> Post-test database integrity check" DB_PATH="./dist/data/docs.sqlite" if sqlite3 "$DB_PATH" "PRAGMA integrity_check;" | grep -q "ok"; then echo "āœ… Database integrity maintained after tests" else echo "āŒ Database corruption detected after tests" exit 1 fi

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-docs'

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