Skip to main content
Glama

Physics MCP Server

by BlinkZer0
test-all-packages.js1.76 kB
const { execSync } = require('child_process'); const path = require('path'); const fs = require('fs'); const packages = [ 'mcp-types', 'server', 'tools-cas', 'tools-constants', 'tools-data-io', 'tools-distributed', 'tools-export', 'tools-external', 'tools-graphing-calculator', 'tools-ml', 'tools-nli', 'tools-orchestrator', 'tools-plot', 'tools-quantum', 'tools-report', 'tools-signal', 'tools-statmech', 'tools-tensor', 'tools-units', 'validation', 'python-worker' ]; console.log('🚀 Starting comprehensive test suite for Phys-MCP'); packages.forEach(pkg => { const pkgPath = path.join(__dirname, '..', 'packages', pkg); const pkgJsonPath = path.join(pkgPath, 'package.json'); // Create test script if missing if (fs.existsSync(pkgJsonPath)) { const pkgJson = JSON.parse(fs.readFileSync(pkgJsonPath)); if (!pkgJson.scripts) pkgJson.scripts = {}; if (!pkgJson.scripts.test) { pkgJson.scripts.test = "echo 'No tests implemented yet'"; fs.writeFileSync(pkgJsonPath, JSON.stringify(pkgJson, null, 2)); } } // Create test directory if missing const testDir = path.join(pkgPath, 'test'); if (!fs.existsSync(testDir)) { fs.mkdirSync(testDir); } // Create basic test if missing const testFile = path.join(testDir, 'basic.test.js'); if (!fs.existsSync(testFile)) { fs.writeFileSync(testFile, 'test("Basic test", () => expect(true).toBe(true));'); } // Run tests try { console.log(`🔧 Testing ${pkg}`); execSync(`cd ${pkgPath} && pnpm test`, { stdio: 'inherit' }); console.log(`✅ ${pkg} tests passed\n`); } catch (error) { console.error(`❌ ${pkg} tests failed: ${error.message}`); } }); console.log('🏁 All package tests completed');

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/BlinkZer0/Phys-MCP'

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