#!/bin/bash
# Test script for RAG MCP Server using uv
# Check if uv is installed
if ! command -v uv &> /dev/null; then
echo "uv is not installed. Please install it first:"
echo "curl -LsSf https://astral.sh/uv/install.sh | sh"
echo "or"
echo "pip install uv"
exit 1
fi
echo "Running RAG MCP Server Tests with uv..."
echo "========================================"
# Run tests using pyproject.toml if available, otherwise use inline dependencies
if [ -f "pyproject.toml" ]; then
echo "Using pyproject.toml for dependencies..."
uv run test_server.py
else
echo "Using inline dependencies..."
uv run \
--with mcp==1.0.0 \
--with fastapi==0.115.5 \
--with uvicorn==0.32.1 \
--with requests==2.32.3 \
--with python-multipart==0.0.17 \
--with pydantic==2.10.3 \
--with python-dotenv==1.0.1 \
test_server.py
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/yogeshkulkarni553/rag-mcp-py'
If you have feedback or need assistance with the MCP directory API, please join our Discord server