Skip to main content
Glama

mcp-optimizer

test.shโ€ข835 B
#!/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