Skip to main content
Glama
di5rupt0r

MCP Codebase RAG Server

by di5rupt0r

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
MCP_HOSTNoHost address for HTTP transport (default: 127.0.0.1)127.0.0.1
MCP_PORTNoPort for HTTP transport (default: 8080)8080
LOG_LEVELNoLog level (default: INFO)INFO
MCP_TRANSPORTNoTransport mode for MCP server (default: stdio, set to 'streamable-http' for HTTP)stdio
CHROMA_DB_PATHNoPath to ChromaDB storage directory (default: ./data/chroma_db)./data/chroma_db
EMBEDDING_MODELNoEmbedding model name (default: all-MiniLM-L6-v2)all-MiniLM-L6-v2
MCP_ALLOWED_HOSTNoAllowed host for reverse proxy or Tailscale Funnel (optional)

Capabilities

Features and capabilities supported by this server

CapabilityDetails
tools
{
  "listChanged": false
}
prompts
{
  "listChanged": false
}
resources
{
  "subscribe": false,
  "listChanged": false
}
experimental
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
search_codebaseA

Search the indexed codebase for relevant code snippets.

Args:
    query: Search query text
    top_k: Number of results to return (default: 5)
    project: Project name to search within (optional)
    file_types: List of file extensions to filter (e.g., [".py", ".js"])

Returns:
    Dictionary with search results, metadata, and timing info
reindex_projectA

Re-index a project (useful after major code changes).

Args:
    project_path: Absolute path to the project directory
    project_name: Name to use for the collection
    force: If True, deletes existing index before reindexing

Returns:
    Dictionary with indexing status and statistics
list_indexed_projectsA

List all projects that have been indexed.

Returns:
    Dictionary with list of indexed projects and their metadata
get_filesA

List all files that have been indexed for a project.

Args:
    project: Project name to list files for (required). Use
             list_indexed_projects() to discover available project names.

Returns:
    List of file metadata dicts, or an error dict when project is omitted.
get_file_contentA

Return the full content of a given file path.

Args:
    path: File path to read
    project: When supplied, validates that the path belongs to this project
             before reading. Raises an error if the path is not indexed.
    
Returns:
    File content as string

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

Latest Blog Posts

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

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