Логотип MU

MU

Сообщество
0ximu

MCP server that gives AI assistants deep codebase understanding. Semantic graph, BM25 search, impact analysis, code review.

Издатель0ximu
Репозиторийmu
ЯзыкRust
Форки
5
Звёзды
70
Доступные инструменты
0
Тип транспортаstdio
Категории
ЛицензияApache-2.0
Ссылки
  • Подключайте инструменты к рабочим процессам с ИИ

    MU предоставляет возможности MCP, доступные совместимым ИИ-клиентам и агентам.

  • Доступные инструменты: 0

    Ниже представлены доступные для вызова действия с названиями и описаниями, если сервер их предоставляет.

  • Готовая конфигурация для копирования

    Используйте примеры конфигурации, чтобы настроить этот сервер в предпочитаемом MCP-клиенте.

  • Показатели интереса к открытому проекту

    Звёзды: 70, форки: 5 — в связанном репозитории.

MU parses your codebase into a semantic graph stored in DuckDB, then exposes it through 13 MCP tools. Your AI assistant can search, navigate, review, and understand your code without stuffing the entire repo into a context window.

Rust 1.70+ License: Apache 2.0

Why

LLMs choke on large codebases. Context windows are precious. 90% of code is boilerplate. You're feeding syntax when you need semantics.

MU solves this by building a semantic graph - nodes (files, classes, functions), edges (imports, calls, inheritance, DI injection, message-bus publish/consume), importance scores, summaries - and letting your AI pull exactly what it needs.

Does it actually beat grep?

We measured. 12 real questions about a 920k-line C# microservices codebase, identical agents: one arm with only grep/read, one with only MU tools. Blind grading against source-verified ground truth.

grep-only agentMU-only agent
Correct answers12/12 (one incomplete)12/12
"Top 5 riskiest methods in service X"10,421 tokens, 143s of hand-counting branches659 tokens, 38s (precomputed complexity)
"What breaks if I change X?"manual grep across 7 servicesone call: 55 direct dependents + message-bus consumers
"Map the services"trusted a stale README (missed 5 services)21/21 services from importance-ranked compress
Full-flow questions (invoice validation)found 1 of 4 country rule setsall 4 (graph fan-out)

Where grep wins - README lookups, trivially greppable strings - your agent still has grep. MU is the layer for what grep structurally can't do: blast radius through DI and message buses, measured complexity, and importance-ranked orientation. When the graph can't prove something, MU says so instead of asserting absence.

Quick Start

Grab a prebuilt binary from Releases, or build from source:

bash
git clone https://github.com/0ximu/mu.git
cd mu && cargo build --release

# Put mu on your PATH (required for the MCP config below)
cp target/release/mu ~/.local/bin/   # or /usr/local/bin

Then index your project and hook it up to Claude Code:

bash
cd /path/to/your/project
mu bootstrap

# Register the MCP server with Claude Code
claude mcp add mu -- mu mcp

Or, to share the server config with your team, create .mcp.json in the project root:

json
{
  "mcpServers": {
    "mu": {
      "command": "mu",
      "args": ["mcp"]
    }
  }
}

That's it. Your AI assistant now has full codebase understanding. (Other MCP clients work too - MU speaks MCP over stdio.)

MCP Tools

These are the tools your AI assistant can call:

ToolWhat it does
mu_grokSearch + code snippets. BM25 full-text search ranked by importance
mu_findExact symbol lookup by name
mu_expandGraph traversal - explore dependencies outward from seed nodes
mu_readBulk source code retrieval for specific nodes
mu_impactDownstream impact - what breaks if this symbol changes, transitively
mu_diffSemantic diff between git refs (branches, commits)
mu_reviewFull PR review: diff + impact + audit + risk score
mu_auditCode quality rules - complexity, hardcoded secrets, code smells
mu_susFind suspicious code - high complexity, security-sensitive, untested
mu_enrichEnrichment flywheel - LLM writes better summaries, improving future search
mu_compressImportance-ranked codebase overview within a token budget
mu_bootstrapBuild or rebuild the index without leaving the session
mu_configureAuto-detect project patterns, refine config, drive enrichment

The Enrichment Flywheel

mu_enrich is unique: it returns nodes that need better summaries, the LLM writes them, and stores them back. Each enrichment cycle improves future search results. The graph gets smarter the more you use it.

CLI Commands

The CLI is lean - bootstrap, compress, and analyze:

bash
mu bootstrap              # Build the semantic graph (run this first)
mu compress               # Compress codebase for LLM consumption
mu compress --budget 8000 # Fit an importance-ranked overview into ~8k tokens
mu compress -o context.mu # Write to file
mu status                 # Project status and stats
mu deps <node>            # Show dependencies
mu impact <node>          # Downstream impact analysis
mu diff main HEAD         # Semantic diff between git refs
mu review                 # Review uncommitted changes
mu review main..feature   # Review branch diff
mu audit                  # Code quality audit
mu doctor                 # Health checks

Compress (The Killer Feature)

Feed your entire codebase to an LLM in seconds. MU compresses your code into a hierarchical, star-ranked format that preserves semantic structure.

# 42 modules, 15 classes, 128 functions, 245 edges

## Domain Overview
### Core Entities
$ AuthService  [★★★]
  @attrs [user_repo, token_manager]
  → Database (uses), UserRepo (calls)
  ← LoginHandler, ApiMiddleware

## Hot Paths (complexity > 20 or calls > 5)
  # process_request  c=35  calls=12 ★★
    | src/handlers/api.rs

Sigil notation: ! modules, $ classes, # functions. Complexity scores, call counts, importance stars - all in minimal tokens.

What Bootstrap Builds

mu bootstrap parses your codebase and produces:

  1. Semantic graph - nodes (files, classes, functions) and edges (imports, calls, inheritance, uses)
  2. PageRank importance scores - which symbols are most connected/important
  3. Heuristic summaries - auto-generated descriptions for each node (generated after the graph is complete - summaries include caller/callee information from edges)
  4. BM25 full-text index - fast search over summaries, names, and code
  5. DuckDB database - everything stored in .mu/mubase

Bootstrap is fast: a 400k-line TypeScript project takes about 60 seconds.

Supported Languages

LanguageExtensions
Python.py
TypeScript.ts, .tsx
JavaScript.js, .jsx
Go.go
Rust.rs
Java.java
C#.cs

How It Works

Source Code → Scanner → Parser → Graph Builder → DuckDB
                │          │          │              │
            manifest    AST       nodes &      PageRank,
                       data       edges       summaries,
                                              FTS index
                                                  │
                                            MCP Server
                                                  │
                                          AI Assistant
  1. Scanner walks the filesystem, detects languages, filters noise
  2. Parser uses tree-sitter to extract AST (classes, functions, imports)
  3. Graph Builder creates nodes and edges for code relationships
  4. Post-processing computes PageRank, generates summaries, builds BM25 index
  5. MCP Server exposes 13 tools for AI assistants to query the graph

Configuration

Create .murc.toml in your project:

toml
[mu]
exclude = ["vendor/", "node_modules/", ".git/", "__pycache__/"]

Node Identifiers

PrefixTypeExample
mod:Module/Filemod:src/lib/utils.ts
cls:Classcls:src/models/User.ts:User
fn:Functionfn:src/api/auth.ts:login
ext:External dependencyext:react

Known Limitations

  • Single-writer DuckDB: Can't bootstrap while the MCP server is running. Stop the server, bootstrap, restart.
  • Test coverage detection: mu_sus finds tests by looking for test files in the scanned tree. If tests live in a sibling directory, they won't be found.
  • .NET projects: For solutions with code in src/, run mu bootstrap from the src/ directory.

Development

bash
cargo build --release
cargo test
cargo fmt && cargo clippy    # Zero warnings policy

Contributing

Contributions welcome.

bash
cargo fmt && cargo clippy && cargo test

See CONTRIBUTING.md for details.

License

Apache License 2.0 - see LICENSE.


Установка

TypingMind
{
  "mcpServers": {
    "mu": {
      "command": "mu",
      "args": [
        "mcp"
      ]
    }
  }
}

Используйте MCP MU с разными ИИ-моделями

TypingMind подключает инструменты MCP на уровне рабочего пространства, поэтому после подключения MU вы можете использовать их с разными моделями ИИ в TypingMind, не настраивая подключение отдельно для каждой модели. Эта интеграция MCP работает локально на вашем устройстве через коннектор MCP TypingMind.

Руководство по настройке локального коннектора

Выберите этот способ, если серверу MCP нужен доступ к локальным файлам, приложениям или закрытым ресурсам на вашем компьютере.

1

Откройте настройки MCP

В TypingMind откройте «Настройки», затем «Расширенные настройки», перейдите в раздел «Протокол контекста модели» и выберите «Настроить коннектор».

  1. Откройте TypingMind в браузере.
  2. Нажмите значок настроек.
  3. Перейдите в «Расширенные настройки».
  4. Откройте раздел «Протокол контекста модели».
  5. Нажмите «Настроить коннектор» и выберите «Это устройство».
Экран настройки коннектора MCP в TypingMind с выбранным вариантом «Это устройство»
2

Выполните команду коннектора

Выберите «Это устройство», скопируйте команду из TypingMind и выполните её в терминале. Не останавливайте процесс, пока используете MCP.

  1. Скопируйте команду настройки, показанную в TypingMind.
  2. Откройте «Терминал» в macOS или Windows Terminal в Windows.
  3. Вставьте и выполните команду.
  4. Подтвердите установку пакета, если терминал запросит разрешение продолжить.
  5. Не закрывайте окно терминала и не останавливайте процесс, пока используете инструменты MCP.
3

Добавьте MU как сервер

Когда статус коннектора сменится на «Готов», нажмите «Изменить серверы» и вставьте конфигурацию сервера MCP.

  1. Дождитесь, пока статус коннектора сменится на «Готов».
  2. Нажмите «Изменить серверы».
  3. Вставьте конфигурацию сервера MCP для MU.
  4. Сохраните список серверов.
  5. Обновите статус, если хотите убедиться, что коннектор по-прежнему готов к работе.
Настройки MCP в TypingMind с активным сервером и кнопкой «Изменить серверы»
{
  "mcpServers": {
    "mu": {
      "command": "npx",
      "args": [
        "-y",
        "<mcp-server-package>"
      ]
    }
  }
}
4

Используйте подключение с разными моделями

Сохраните список серверов, откройте раздел «Плагины», включите инструменты MCP для MU, затем выберите любую поддерживаемую модель ИИ в TypingMind и используйте инструменты в чате или назначьте их ИИ-агенту.

  1. Откройте страницу «Плагины» в TypingMind.
  2. Включите инструменты MCP для MU.
  3. Начните чат и выберите модель ИИ, которую хотите использовать.
  4. Используйте инструменты MCP в чате или назначьте их ИИ-агенту.
  5. При необходимости переключайтесь на другую модель ИИ без повторного подключения MCP.
Чат TypingMind с включёнными инструментами MCP и выбранной ИИ-моделью
Можете помочь мне с этой задачей с помощью MU?
MU
Конечно. Я всё прочитал.
Вот что я нашёл с помощью MU.

Часто задаваемые вопросы

Для чего используется сервер MCP MU?

MU — это сервер MCP, который позволяет совместимым ИИ-клиентам подключаться к внешним инструментам и получать контекст. В TypingMind достаточно один раз добавить этот сервер MCP, чтобы его инструменты стали доступны в вашем рабочем пространстве с ИИ.

Можно ли использовать сервер MCP MU с несколькими ИИ-моделями в TypingMind?

Да. TypingMind подключает инструменты MCP на уровне рабочего пространства, поэтому вы можете использовать MU с разными ИИ-моделями, например Claude, ChatGPT, Gemini или другими моделями, настроенными в TypingMind, без отдельной настройки сервера MCP для каждой модели.

Зачем использовать MCP MU с TypingMind?

TypingMind — один из лучших интерфейсов для чата с LLM: он объединяет разные ИИ-модели, промпты, плагины, ИИ-агентов, ключи API и инструменты MCP в одном рабочем пространстве. Подключив MU, вы сможете использовать его инструменты MCP с предпочитаемыми моделями, сохраняя удобную организацию работы с чатами в TypingMind.

Как подключить сервер MCP MU к TypingMind?

MU работает через локальный коннектор MCP TypingMind. Этот вариант лучше всего подходит, когда серверу MCP нужен доступ к локальным файлам, настольным приложениям, инструментам командной строки или закрытым ресурсам на вашем компьютере.

Какие инструменты предоставляет сервер MCP MU в TypingMind?

MU предоставляет возможности MCP, которые можно включить на странице «Плагины» в TypingMind и использовать в чате или назначить ИИ-агентам.

Нужно ли передавать TypingMind свои ключи API для использования сервера MCP MU?

Нет. TypingMind ориентирован прежде всего на локальную работу и позволяет вам контролировать выбор провайдеров моделей, ключи API, промпты и конфигурацию MCP. Если MU требует аутентификации, при создании подключения добавьте необходимые заголовки, настройки OAuth или локальную конфигурацию для этого сервера MCP.

Похожие серверы MCP

Все

Создайте свою рабочую ИИ-среду сейчас

Подпишитесь на нашу рассылку, чтобы узнавать о новых функциях и предстоящих розыгрышах 👇