dh1011 /
llm-term
A Rust-based CLI tool that generates and executes terminal commands using OpenAI's language models.
Loading repository data…
Brainwires / repository
A Rust-based Model Context Protocol (MCP) server that provides AI assistants with powerful RAG (Retrieval-Augmented Generation) capabilities for understanding massive codebases. Index codebases with FastEmbed + LanceDB, semantic code and git history searches with hybrid vector + BM25.
A Rust-based Model Context Protocol (MCP) server that provides AI assistants with powerful RAG (Retrieval-Augmented Generation) capabilities for understanding massive codebases.
This MCP server enables AI assistants to efficiently search and understand large projects by:
The server provides 9 slash commands for quick access in Claude Code:
/project:index - Index a codebase directory (automatically performs full or incremental)/project:query - Search the indexed codebase/project:stats - Get index statistics/project:clear - Clear all indexed data/project:search - Advanced search with filters/project:git-search - Search git commit history with on-demand indexing/project:definition - Find where a symbol is defined (LSP-like)/project:references - Find all references to a symbol/project:callgraph - Get call graph for a function (callers/callees)See slash-commands.md for detailed usage.
Project RAG automatically indexes and searches 40+ file types across three categories:
Supports AST-based semantic chunking for these languages:
.rs).py).js, .mjs, .cjs), TypeScript (.ts), JSX (.jsx), TSX (.tsx).go).java).c), C++ (.cpp, .cc, .cxx), C/C++ Headers (.h, .hpp).cs).swift).kt, .kts).scala).rb).php).sh, .bash).sql).html, .htm).css), SCSS (.scss, .sass)With special handling for rich content:
.md, .markdown).pdf) - Automatically converted to Markdown with table preservation.rst).adoc, .asciidoc).org).txt).log)PDF Conversion Features:
pdf-extract libraryFor complete project understanding:
.json).yaml, .yml).toml).xml).ini).conf, .config, .cfg).properties).env)# Index documentation PDFs in your project
query_codebase("API authentication flow") # Finds content in .pdf, .md, .rst files
# Search configuration files
query_codebase("database connection string") # Finds .yaml, .toml, .env, .conf files
# Find code implementations
search_by_filters(query="JWT validation", file_extensions=["rs", "go"])
The server provides 9 tools that can be used directly:
index_codebase - Smartly index a codebase directory
query_codebase - Hybrid semantic + keyword search across the indexed code
get_statistics - Get statistics about the indexed codebase
clear_index - Clear all indexed data
search_by_filters - Advanced hybrid search with filters
search_git_history - Search git commit history using semantic search
find_definition - Find where a symbol is defined (LSP-like)
find_references - Find all references to a symbol
sudo apt-get install protobuf-compiler on Ubuntu/Debian)LanceDB (Default - Embedded, Stable)
No additional setup needed! LanceDB is an embedded vector database that runs directly in the application. It stores data in ./.lancedb directory by default.
Why LanceDB is the default:
Qdrant (Optional - Server-Based)
To use Qdrant instead of LanceDB, build with the qdrant-backend feature:
cargo build --release --no-default-features --features qdrant-backend
Then start a Qdrant instance:
Using Docker (Recommended):
docker run -p 6333:6333 -p 6334:6334 \
-v $(pwd)/qdrant_data:/qdrant/storage \
qdrant/qdrant
Using Docker Compose:
version: '3.8'
services:
qdrant:
image: qdrant/qdrant
ports:
- "6333:6333"
- "6334:6334"
volumes:
- ./qdrant_data:/qdrant/storage
Or download standalone: https://qdrant.tech/documentation/guides/installation/
# Navigate to the project
cd project-rag
# Install protobuf compiler (Ubuntu/Debian)
sudo apt-get install protobuf-compiler
# Build the release binary (with default LanceDB backend - stable and embedded!)
cargo build --release
# Or build with Qdrant backend (requires external server)
cargo build --release --no-default-features --features qdrant-backend
# The binary will be at target/release/project-rag
The server communicates over stdio following the MCP protocol:
./target/release/project-rag
Add the MCP server to Claude Code using the CLI:
# Navigate to the project directory first
cd /path/to/project-rag
# Add the MCP server to Claude Code
claude mcp add project --command "$(pwd)/target/release/project-rag"
# Or with logging enabled
claude mcp add project --command "$(pwd)/target/release/project-rag" --env RUST_LOG=info
After adding, restart Claude Code to load the server. The slash commands (/project:index, /project:query, etc.) will be available immediately.
Add to your Claude Desktop config:
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Linux: ~/.config/Claude/claude_desktop_config.json
Windows: %APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"project-rag": {
"command": "/absolute/path/to/project-rag/target/release/project-rag",
"env": {
"RUST_LOG": "info"
}
}
}
}
Note: Claude Code and Claude Desktop are different products with different configuration methods.
Index a codebase:
{
"path": "/path/to/your/project",
"include_patterns": ["**/*.rs", "**/*.toml"],
"exclude_patterns": ["**/target/**", "**/node_modules/**"],
"max_file_size": 1048576
}
Query the codebase:
{
"query": "How does authentication work?",
"limit": 10,
"min_score": 0.7
}
Advanced filtered search:
{
"query": "da
Selected from shared topics, language and repository description—not editorial ratings.
dh1011 /
A Rust-based CLI tool that generates and executes terminal commands using OpenAI's language models.
ai-dynamo /
Model Express is a Rust-based component meant to be placed next to existing model inference systems to speed up their startup times and improve overall performance.
camthink-ai /
NeoMind is a Rust-based edge AI platform that enables autonomous device management and automated decision-making through Large Language Models (LLMs).
get_call_graph - Get call graph for a function
darkautism /
A Rust-based, OpenAI-style API server for large language models (LLMs)
XLR8-DB /
High-performance read acceleration layer for MongoDB. Decomposes large range queries into parallel chunks and executes them using a memory-bounded execution model with a Rust-based backend for CPU-intensive processing. Streams compressed Parquet output for analytics and data-lake ingestion, while integrating with the PyMongo API
missdeer /
codex-mcp-rs is a Rust-based MCP (Model Context Protocol) server that serves as a bridge for Codex CLI, enabling various AI coding assistants (such as Claude Code, Roo Code, KiloCode, etc.) to seamlessly collaborate with Codex.