#!/bin/bash
# Run test suite
set -e
echo "๐งช Running test suite..."
# Test 1: Server creation and import (catches initialization errors)
echo "๐ง Testing server creation and imports..."
uv run python3 -c "
from mcp_optimizer.mcp_server import create_mcp_server
server = create_mcp_server()
print('โ Server created successfully')
"
uv run python3 -c "
import main
print('โ Main module imported successfully')
"
# Test 2: Run pytest suite
echo "๐งช Running pytest suite..."
if uv run pytest tests/ -v --cov=src/mcp_optimizer --cov-report=term-missing --cov-report=html 2>/dev/null; then
echo "โ Full test suite with coverage completed"
else
echo "โ ๏ธ Coverage not available, running basic tests..."
uv run pytest tests/ -v
fi
echo "โ Tests completed!"
echo "๐ Coverage report generated in htmlcov/"
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/dmitryanchikov/mcp-optimizer'
If you have feedback or need assistance with the MCP directory API, please join our Discord server