We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/h3ro-dev/motion-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
test-setup.shโข1.39 kB
#!/bin/bash
# Motion MCP Server Test Setup Script
set -e
echo "๐งช Motion MCP Server Test Setup"
echo "================================"
echo ""
# Check if npm is installed
if ! command -v npm &> /dev/null; then
echo "โ npm is not installed. Please install Node.js first."
exit 1
fi
# Install dependencies
echo "๐ฆ Installing dependencies..."
npm install
# Install dev dependencies if not already installed
echo "๐ฆ Installing test dependencies..."
npm install --save-dev jest ts-jest @types/jest @jest/globals
echo ""
echo "๐ Running tests..."
echo ""
# Run different test suites
echo "1๏ธโฃ Running unit tests..."
npm run test:unit
echo ""
echo "2๏ธโฃ Running integration tests..."
npm run test:integration
echo ""
echo "3๏ธโฃ Running test coverage..."
npm run test:coverage
echo ""
echo "โ Test setup complete!"
echo ""
echo "๐ Available test commands:"
echo " npm test - Run all tests"
echo " npm run test:watch - Run tests in watch mode"
echo " npm run test:coverage - Run tests with coverage report"
echo " npm run test:unit - Run unit tests only"
echo " npm run test:integration - Run integration tests only"
echo " npm run test:e2e - Run end-to-end tests (requires real API key)"
echo ""
echo "๐ก To run E2E tests with real Motion API:"
echo " export MOTION_API_KEY='your-real-api-key'"
echo " npm run test:e2e"