# wulun811/LiuHe [Health: Active]

**Category:** 🤖 Coding Agents  
**Repository:** https://github.com/wulun811/LiuHe  
**GitHub Stars:** 1  
**Views:** 1  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/wulun811-liuhe

## Description
Code tools for LLMs to read, understand and modify code, using a tree-sitter parser, SQLite index and transactional writes.

## Claude Desktop Quick Installation
No generated config for this server: it installs through its own setup steps.

The project's own setup steps (from https://github.com/wulun811/LiuHe), copied verbatim. Follow them in order; they are not an mcpServers config.

1. Install:

```sh
npm ci
```

2. Install:

```sh
cd malong-parse && cargo build --release && cp target/release/malong-parse ~/.local/bin
```

3. Start the server:

```sh
malong-parse &                                   # start the daemon (Unix socket)
```

4. Install:

```sh
cd ../malong && npm ci
```

5. Install:

```sh
mkdir -p ~/.local/bin
```

6. Install:

```sh
tar -xzf ../releases/malong-liuhe-0.6.1-linux-x86_64.tar.gz
```

## Documentation

## What wulun811/LiuHe does

wulun811/LiuHe provides MCP tools for agents that need to inspect, understand, modify, and validate source code. Its default interface is the Six-He line: an agent can resolve and plan a task, gather code materials, apply a patch or batch change, collect evidence, and control task state. The toolkit also includes lower-level symbol I/O, repository search, dependency and call analysis, test orchestration, pipeline checks, reviews, security scans, and capability discovery.

Operations are designed around agent constraints. Responses are structured for direct consumption, errors can include suggestions and next actions, and workspace context is supplied per call. Writes support atomic behavior, undo information, conflict detection, and version-based concurrency checks rather than silently replacing newer code.

## How it works

The MCP component communicates with an LLM client through JSON-RPC over stdio. Parsing is handled by the separate `malong-parse` Rust service over a Unix socket. That service uses tree-sitter to extract symbols and references from JavaScript, TypeScript, TSX, Python, Go, Rust, C, C++, Java, and Bash. It uses batched extraction and an LRU tree cache.

Each workspace has an isolated SQLite index running in WAL mode. Index-backed operations include repository maps, symbol search, references, dependency graphs, impact analysis, and call chains. The parser and index allow higher-level tools to work from structural code information instead of relying only on text searches. Code search supports keyword and regular-expression intent patterns; it is not semantic search.

The default Six-He catalog contains 13 tools. Set `MALONG_INTERFACE=classic` to select the 44-tool catalog or `MALONG_INTERFACE=diagnostic` to select the 18-tool diagnostic tier. Long-running test work should use the asynchronous job path: `code_check` can start a background run, and `code_control` can poll its job status.

## Tools and capabilities

The available functions cover several layers:

- Task workflow: `code_task`, `code_read`, `code_patch`, `code_batch`, `code_check`, and `code_control`.
- Reading and indexing: `read_symbol`, `symbol_search`, `code_search`, `repo_map`, and `reindex`.
- Program analysis: `impact_analysis`, `call_chain`, `references`, `dep_graph`, `inspect`, and `trace_symbol`.
- Safe editing: `write_symbol`, `write_symbols`, `edit_transaction`, `edit_batch`, `rename_symbol`, `edit_collision_guard`, and `sandbox_validate`.
- Quality and security: `code_review`, `security_review`, `code_quality`, `style_sniffer`, `guard_patterns`, `dependency_gatekeeper`, and dead-code checks.
- Testing and delivery checks: `test_bridge`, `find_tests`, `verify_pipeline`, `debug_runner`, `tsc_check`, and `spec_gen`.

Transactional editing can provide dry-run previews, rollback, cross-session locking, and atomic cross-file renames. The toolkit also includes Git worktree operations, health and garbage-collection tools, feedback handling, and `invoke_capability` for the full-call capability outlet.

_Full upstream README: https://allmcps.com/mcp/wulun811-liuhe/readme_

