Skip to main content
Glama

Codebase RAG MCP Server

by allentcm
Dockerfile844 B
# Use Python 3.11 as the base image (minimum required version) FROM python:3.11-slim # Set working directory WORKDIR /app # Install system dependencies RUN apt-get update && apt-get install -y \ gcc \ g++ \ && rm -rf /var/lib/apt/lists/* # Copy project files COPY pyproject.toml ./ COPY server.py ./ # Install Python dependencies RUN pip install cocoindex RUN pip install --no-cache-dir -e . # Set environment variables with defaults ENV PYTHONUNBUFFERED=1 ENV DATABASE_URL="" ENV VOYAGE_API_KEY="" ENV EMBEDDING_TABLE="" ENV TRACKING_TABLE="" # For macOS/Windows, use host.docker.internal to access host services from the container ENV HOST_DOCKER_INTERNAL=host.docker.internal # To access another container, use Docker networks and refer to the container by its name # Run the server by default CMD ["python", "server.py"]

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/allentcm/mcp-codebase-rag'

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