Skip to main content
Glama

MCP Multi-Agent Orchestration Server

by ec49ca
testโ€ข2.62 kB
#!/bin/bash # Test runner script for MCP project # Colors for output GREEN='\033[0;32m' RED='\033[0;31m' BLUE='\033[0;34m' YELLOW='\033[1;33m' NC='\033[0m' # No Color # Default to running all tests if no argument provided TEST_TYPE=${1:-"all"} case $TEST_TYPE in "config") echo -e "${BLUE}๐Ÿงช Running configuration tests...${NC}" python -m pytest tests/test_config.py -v --tb=short ;; "server") echo -e "${BLUE}๐Ÿงช Running server endpoint tests...${NC}" python -m pytest tests/test_server.py -v --tb=short ;; "llm") echo -e "${BLUE}๐Ÿงช Running LLM service tests...${NC}" python -m pytest tests/test_services/test_llm_service.py -v --tb=short ;; "agents") echo -e "${BLUE}๐Ÿงช Running agent functionality tests...${NC}" python -m pytest tests/test_agents/ -v --tb=short ;; "services") echo -e "${BLUE}๐Ÿงช Running service layer tests...${NC}" python -m pytest tests/test_services/ -v --tb=short ;; "registry") echo -e "${BLUE}๐Ÿงช Running registry system tests...${NC}" python -m pytest tests/test_registry/ -v --tb=short ;; "tools") echo -e "${BLUE}๐Ÿงช Running agent tools tests...${NC}" python -m pytest tests/test_tools/ -v --tb=short ;; "unit") echo -e "${BLUE}๐Ÿงช Running unit tests...${NC}" python -m pytest -m unit -v --tb=short ;; "integration") echo -e "${BLUE}๐Ÿงช Running integration tests...${NC}" python -m pytest -m integration -v --tb=short ;; "all") echo -e "${BLUE}๐Ÿงช Running all tests...${NC}" python -m pytest tests/ -v --tb=short ;; *) echo -e "${RED}โŒ Unknown test type: $TEST_TYPE${NC}" echo -e "${YELLOW}Available options:${NC}" echo " config - Configuration tests" echo " server - Server endpoint tests" echo " llm - LLM service tests" echo " agents - Agent functionality tests" echo " services - Service layer tests" echo " registry - Registry system tests" echo " tools - Agent tools tests" echo " unit - Unit tests only" echo " integration - Integration tests only" echo " all - All tests (default)" exit 1 ;; esac # Check exit status and provide feedback if [ $? -eq 0 ]; then echo -e "${GREEN}โœ… Tests completed successfully!${NC}" else echo -e "${RED}โŒ Some tests failed. Check output above for details.${NC}" fi

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/ec49ca/NLP-project-contract-comparison'

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