Back to Home
qduc icon

code-rag

Verified Safe

by qduc

Overview

Semantic code search for your entire codebase, enabling natural language queries to find relevant code snippets and source locations.

Installation

Run Command
code-rag-mcp

Environment Variables

  • CODE_RAG_EMBEDDING_MODEL
  • CODE_RAG_DATABASE_TYPE
  • CODE_RAG_DATABASE_PATH
  • CODE_RAG_CHUNK_SIZE
  • CODE_RAG_BATCH_SIZE
  • CODE_RAG_ADDITIONAL_IGNORE_PATTERNS
  • CODE_RAG_RERANKER_ENABLED
  • CODE_RAG_RERANKER_MODEL
  • CODE_RAG_RERANKER_MULTIPLIER
  • CODE_RAG_LOG_LEVEL
  • CODE_RAG_REINDEX_DEBOUNCE_MINUTES
  • CODE_RAG_VERIFY_CHANGES_WITH_HASH
  • CODE_RAG_MODEL_IDLE_TIMEOUT
  • CODE_RAG_SHARED_SERVER
  • CODE_RAG_SHARED_SERVER_PORT
  • OPENAI_API_KEY
  • AZURE_API_KEY
  • COHERE_API_KEY
  • AWS_ACCESS_KEY_ID
  • AWS_SECRET_ACCESS_KEY
  • AWS_REGION_NAME
  • VERTEX_AI_PROJECT
  • VERTEX_AI_LOCATION

Security Notes

The primary security consideration is the 'codebase_path' argument. The server is designed to read and process files from the specified path. If a malicious or untrusted path is provided, the tool will attempt to access and index those files, which could lead to unauthorized data access or processing. While the CLI mode offers a validation callback, the MCP integration sets 'validate_codebase=False' for seamless operation, assuming the path is trusted. There are no obvious 'eval' or direct code injection vulnerabilities. Network communication for the shared embedding server is primarily local (127.0.0.1).

Similar Servers

Stats

Interest Score0
Security Score7
Cost ClassMedium
Avg Tokens2600
Stars0
Forks0
Last Update2026-01-11

Tags

RAGCode SearchEmbeddingsSemantic SearchCoding Agents