code-rag-mcp
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| AZURE_API_KEY | No | Azure API key | |
| AZURE_API_BASE | No | Azure API base URL | |
| COHERE_API_KEY | No | Cohere API key | |
| OPENAI_API_KEY | No | OpenAI API key (required if using OpenAI embeddings) | |
| AWS_REGION_NAME | No | AWS region name | |
| AWS_ACCESS_KEY_ID | No | AWS access key ID | |
| AZURE_API_VERSION | No | Azure API version | |
| VERTEX_AI_PROJECT | No | Vertex AI project | |
| VERTEX_AI_LOCATION | No | Vertex AI location | |
| CODE_RAG_BATCH_SIZE | No | Batch size for processing (default: 16) | 16 |
| CODE_RAG_CHUNK_SIZE | No | Chunk size in characters (default: 1024) | 1024 |
| AWS_SECRET_ACCESS_KEY | No | AWS secret access key | |
| CODE_RAG_DATABASE_TYPE | No | Database backend: chroma or qdrant (default: chroma) | chroma |
| CODE_RAG_SHARED_SERVER | No | Share embedding server across instances (default: true) | true |
| CODE_RAG_EMBEDDING_MODEL | No | Embedding model (default: nomic-ai/CodeRankEmbed) | nomic-ai/CodeRankEmbed |
| CODE_RAG_RERANKER_ENABLED | No | Enable result reranking (default: false) | false |
| CODE_RAG_ADDITIONAL_IGNORE_PATTERNS | No | Comma-separated custom ignore patterns |
Capabilities
Features and capabilities supported by this server
| Capability | Details |
|---|---|
| tools | {
"listChanged": false
} |
| experimental | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| search_codebaseA | Semantic code search with AI reranking. Finds relevant code by meaning, not keywords. CRITICAL: Write Specific QueriesVague 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
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
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