MR

molaco/rust-code-mcp

Developer tools

이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기

32 stars 5 forks 품질 60 트렌드 19

녹 부호 semantic 잡종 수색 bm25를 위한 mcp 서버 + 나무 계기를 가진 embedding, gpu 가속된 색인을 붙이는 및 merkle 나무 갱신

개요

검색 및 분석을위한 MCP 서버 Rust codebases. 하이브리드 BM25 + 벡터 검색을 결합 HIR 구동 작업 공간에 내장 녹 -analyzer, 기호 탐색을위한 45 + 도구를 탐험, 통화 - 그래프, 구조 감사, 그리고 semantic 이웃 쿼리. 웹 사이트 · Discord - 그것을 사용하는 방법을 공유하십시오. 우리는 사람들의 작업 흐름에 대해 듣고 싶습니다. .docs/ARCHITECTURE.md for a per-module 고장, 전체 MCP 도구 참조에 대한 TOOLS.md, .docs/configure-models-guide.md for embedding-model configuration, and theORY.md for the Principle each Diagnostic maps to.

개요(AI 번역)

검색 및 분석을위한 MCP 서버 Rust codebases. 하이브리드 BM25 + 벡터 검색 HIR 구동 작업 공간 ** 하이퍼 ** rust-analyzer에 내장 된, 기호 탐색을위한 45 + 도구를 탐험, 통화 그래프, 구조 감사, 그리고 semantic 이웃 쿼리.

Links: 웹 사이트 · Discord — 당신이 사용하는 방법을 공유하십시오; 우리는 사람들의 작업 흐름에 대해 듣고 싶습니다.

건축

.docs/ARCHITECTURE.md for a per-module 고장, 전체 MCP 도구 참조에 대한 TOOLS.md, .docs/configure-models-guide.md for embedding-model configuration, and theORY.md for the Principle each Diagnostic maps to.

특징

-Hybrid search - BM25 키워드 검색 + semantic 벡터 유사성 (RRF fusion) -Pluggable embedding model - 로컬 GPU(Qwen3 via Candle/CUDA), 로컬 CPU(BGE via ONNX), 또는 API-backed(OpenRouter); 새로운 API 모델은 recompile 없이 구성 파일을 통해 추가됩니다. -Symbol 항법 - rust-analyzer-backed find_definition / find_references / [T2]] (이름은 미리보기를 반환합니다; 파일이 변경되지 않음)

이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요.

README

원문 README의 일부입니다. 원문 보기.

rust-code-mcp

An MCP server for searching and analyzing Rust codebases. Combines hybrid BM25 + vector search with a HIR-driven workspace hypergraph built on rust-analyzer, exposing 45+ tools for symbol navigation, call-graph traversal, structural audits, and semantic neighborhood queries.

Links: Website · Discord — come share how you’re using it; we want to hear about people’s workflows.

Architecture

See .docs/ARCHITECTURE.md for the per-module breakdown, TOOLS.md for the full MCP tool reference, .docs/configure-models-guide.md for embedding-model configuration, and THEORY.md for the principles each diagnostic maps to.

Features

  • Hybrid search - BM25 keyword search + semantic vector similarity (RRF fusion)
  • Pluggable embedding models - local GPU (Qwen3 via Candle/CUDA), local CPU (BGE via ONNX), or API-backed (OpenRouter); new API models are added through a config file with no recompile
  • Symbol navigation - rust-analyzer–backed find_definition / find_references / rename_symbol (rename returns a preview; no files are modified)
  • Persisted hypergraph - HIR-driven workspace snapshot (LMDB) with cross-crate imports, exports, re-exports, call edges, attributes, signatures, statics, and unsafe blocks
  • Call-graph traversal - who_calls / calls_from / call_graph / callers_in_crate / recursive_callers_count
  • Structural audits - dead public items, name collisions, module shadowing, forbidden cross-crate edges, Robert Martin instability/abstractness
  • Safety audits - unsafe_audit, mut_static_audit, recursion_check, channel_capacity_audit, fn_body_audit (unwrap/panic/lock-across-await detection)
  • Doc & API hygiene audits - missing_docs_audit, derive_audit, pub_use_pub_type_audit, re_export_chain
  • Semantic neighbors - similar_to_item and workspace-wide semantic_overlaps clustering via cached embeddings
  • Codemap - build_codemap produces a task-conditioned subgraph (seeded by symbols, expanded over hypergraph edges) with Mermaid + outline rendering
  • Complexity metrics - LOC, cyclomatic complexity, function counts
  • Incremental indexing - Merkle-tree change detection; background re-sync every 5 minutes

Tools

45+ MCP tools grouped by category. Full parameter reference in TOOLS.md.

Category Tools
Query search, get_similar_code, read_file_content
Symbol analysis find_definition, find_references, rename_symbol, get_dependencies, get_call_graph, analyze_complexity
Index lifecycle index_codebase, health_check, clear_cache
Hypergraph build build_hypergraph
Imports / exports get_imports, get_exports, get_reexports, get_declared_reexports
GitHub에서 전체 README 보기

설치

This server does not publish a one-line install command.

Open the repository installation guide MCP 초보자라면? mcpskill.org 가이드부터 시작하세요 →

설정

{ "mcpServers": { "rust-code-mcp": { "command": "/absolute/path/to/rust-code-mcp" } } }