Skip to main content
Glama
qduc

code-rag-mcp

by qduc

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
AZURE_API_KEYNoAzure API key
AZURE_API_BASENoAzure API base URL
COHERE_API_KEYNoCohere API key
OPENAI_API_KEYNoOpenAI API key (required if using OpenAI embeddings)
AWS_REGION_NAMENoAWS region name
AWS_ACCESS_KEY_IDNoAWS access key ID
AZURE_API_VERSIONNoAzure API version
VERTEX_AI_PROJECTNoVertex AI project
VERTEX_AI_LOCATIONNoVertex AI location
CODE_RAG_BATCH_SIZENoBatch size for processing (default: 16)16
CODE_RAG_CHUNK_SIZENoChunk size in characters (default: 1024)1024
AWS_SECRET_ACCESS_KEYNoAWS secret access key
CODE_RAG_DATABASE_TYPENoDatabase backend: chroma or qdrant (default: chroma)chroma
CODE_RAG_SHARED_SERVERNoShare embedding server across instances (default: true)true
CODE_RAG_EMBEDDING_MODELNoEmbedding model (default: nomic-ai/CodeRankEmbed)nomic-ai/CodeRankEmbed
CODE_RAG_RERANKER_ENABLEDNoEnable result reranking (default: false)false
CODE_RAG_ADDITIONAL_IGNORE_PATTERNSNoComma-separated custom ignore patterns

Capabilities

Features and capabilities supported by this server

CapabilityDetails
tools
{
  "listChanged": false
}
experimental
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
search_codebaseA

Semantic code search with AI reranking. Finds relevant code by meaning, not keywords.

CRITICAL: Write Specific Queries

Vague queries return noise. Specific queries find exactly what you need.

GOOD (specific intent + context): • "retry logic with exponential backoff in HTTP client" • "JWT token validation and refresh flow" • "database connection pooling configuration" • "error handling for file upload timeout" • "how user permissions are checked before API access"

BAD (too vague - avoid these): • "authentication" → TOO BROAD. Try: "password hashing during user login" • "error handling" → TOO BROAD. Try: "error handling when payment fails" • "config" → TOO BROAD. Try: "database connection config loading" • "utils" or "helper" → MEANINGLESS. Describe what the util DOES.

Query Formula

[WHAT] + [WHERE/WHEN/HOW] = Good Query • "caching" → "Redis caching for API response memoization" • "logging" → "structured logging setup for request tracing"

Tips

• Include the PROBLEM you're solving, not just keywords • Mention specific technologies if relevant (Redis, JWT, WebSocket) • Follow up with file read for full context

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/qduc/code-rag'

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