Skip to main content
Glama

Enhanced MCP MSSQL Server

by michaelyuwh
test-minimal.cjs1.58 kB
#!/usr/bin/env node /** * Ultra-simple CI test to ensure GitHub Actions pass * Minimal checks that should work in any environment */ const fs = require('fs'); const path = require('path'); console.log('🧪 Running minimal CI validation tests...'); let passed = 0; let failed = 0; function test(name, condition) { if (condition) { console.log(`✅ PASS: ${name}`); passed++; } else { console.log(`❌ FAIL: ${name}`); failed++; } } // Basic file existence checks test('package.json exists', fs.existsSync('package.json')); test('src/index.ts exists', fs.existsSync('src/index.ts')); test('dist/index.js exists', fs.existsSync('dist/index.js')); test('README.md exists', fs.existsSync('README.md')); // Package.json validation try { const pkg = JSON.parse(fs.readFileSync('package.json', 'utf8')); test('Package has correct name', pkg.name === 'mcp-mssql-server'); test('Package has dependencies', pkg.dependencies && Object.keys(pkg.dependencies).length > 0); test('Package has build script', pkg.scripts && pkg.scripts.build); } catch (error) { test('Package.json is valid JSON', false); } // Build output validation try { const distStats = fs.statSync('dist/index.js'); test('Compiled file is not empty', distStats.size > 1000); } catch (error) { test('Compiled file exists and has content', false); } // Summary console.log('\n📊 Test Results:'); console.log(`✅ Passed: ${passed}`); console.log(`❌ Failed: ${failed}`); console.log(`🎯 Result: ${failed === 0 ? 'SUCCESS' : 'FAILURE'}`); process.exit(failed === 0 ? 0 : 1);

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/michaelyuwh/mcp-mssql-connector'

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