Back to Home
faxioman icon

code-sage

Verified Safe

by faxioman

Overview

A high-performance MCP server for semantic code search, analyzing codebases using AST-based chunking and providing hybrid keyword and vector embeddings search capabilities for AI clients.

Installation

Run Command
target/release/code-sage

Environment Variables

  • EMBEDDING_PROVIDER
  • OPENAI_API_KEY
  • EMBEDDING_MODEL
  • EMBEDDING_BASE_URL
  • DATA_DIR
  • DEFAULT_TOP_K
  • MIN_SCORE
  • RRF_K
  • CHUNK_SIZE
  • CHUNK_OVERLAP
  • BATCH_SIZE
  • MAX_CHUNKS
  • RUST_LOG

Security Notes

The project uses standard and well-audited libraries for networking (reqwest), file system access (tokio::fs, ignore), and hashing (sha2, md5). Environment variables are used for sensitive information like API keys, preventing hardcoding. Input path validation is present. Regex patterns for ignore files are escaped to prevent injection. The llama.cpp backend explicitly voids logs to prevent interference, a good practice for structured output. No obvious `eval` or dynamic code execution from user input was found.

Similar Servers

Stats

Interest Score34
Security Score9
Cost ClassLow
Avg Tokens20
Stars3
Forks0
Last Update2026-01-19

Tags

Semantic SearchCode AnalysisRustMCP ServerHybrid Search