Skip to main content
Glama
check-prerequisites.js562 B
const { spawnSync } = require('child_process'); function checkCommand(command, args = ['--version']) { try { const result = spawnSync(command, args); if (result.status !== 0) { throw new Error(`${command} check failed`); } return true; } catch (error) { console.error(`Error: ${command} is required but not found.`); console.error(`Please install ${command} CLI first.`); process.exit(1); } } // Check AWS CLI checkCommand('aws'); // Check SAM CLI checkCommand('sam'); console.log('All prerequisites are installed.');

Latest Blog Posts

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/markvp/mcp-lambda-sam'

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