LiuHe logo

LiuHe

by wulun811

MCP code toolkit for structured reading, analysis, transactional editing, testing, and verification across ten programming languages.

Install LiuHe

Run the project’s own setup commands, in order.

Setup steps from the project

wulun811/LiuHe installs with its own steps rather than a config we can generate, so these are copied as-is. Follow them in order and run the commands in a terminal. Source: github.com

  1. 1. Install
    npm ci
    
  2. 2. Install
    cd malong-parse && cargo build --release && cp target/release/malong-parse ~/.local/bin
    
  3. 3. Start the server
    malong-parse &                                   # start the daemon (Unix socket)
    
  4. 4. Install
    cd ../malong && npm ci
    
  5. 5. Install
    mkdir -p ~/.local/bin
    
  6. 6. Install
    tar -xzf ../releases/malong-liuhe-0.6.1-linux-x86_64.tar.gz
    

Overview

wulun811/LiuHe exposes LLM-oriented code operations over MCP using JSON-RPC on stdio. Its default Six-He workflow coordinates task planning, code reading, journaled patches, evidence checks, and resumable control, while optional classic and diagnostic interfaces expose broader tool catalogs. A SQLite workspace index and Rust tree-sitter parser support symbol extraction, references, call graphs, impact analysis, and edits across ten languages. Reach for it when an agent needs structured repository navigation and guarded, auditable code changes rather than raw text manipulation.

Use cases

  • Inspect symbols and references before changing a repository
  • Apply conflict-aware atomic edits across multiple files
  • Trace call chains, dependencies, and potential impact
  • Run tests and pipeline checks through MCP
  • Review code and scan for regex-based security patterns

Key features

  • Six-He task workflow with state and next actions
  • SQLite indexing with tree-sitter parsing
  • Transactional writes with rollback and conflict detection
  • Symbol, reference, call-graph, and impact analysis
  • Testing, pipeline verification, review, and security tools
  • Support for ten programming-language families

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

12/12 checks healthy over the last 45d

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars1Stargazers on the source repository.
Last commit13d agoMost recent push to the default branch.
Directory activity1 viewsConfig copies, upvotes, and views on AllMCPs.

How LiuHe works

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.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about LiuHe

wulun811/LiuHe is an MCP server that connects LLM clients to workspace-aware code operations and a Rust tree-sitter parsing service. Its main tools cover task planning, structured code reads, transactional patches, batch edits, checks, symbol analysis, references, call chains, testing, and pipeline verification over stdio.

Configure an MCP client to run the server over JSON-RPC stdio. The toolkit includes a Node-side MCP component and a separate Rust parsing service that communicates over a Unix socket; the selected interface can be controlled with the MALONG_INTERFACE environment variable.

It supports symbol and reference extraction for JavaScript, TypeScript, TSX, JSX, MTS, CTS, Python, Go, Rust, C, C++, Java, and Bash. Rust parsing includes implementation blocks, traits, and enum semantics, while C and C++ support includes headers.

Run long suites asynchronously instead of keeping them in the foreground. Use `code_check` with `run: true` and `async: true`, then poll the background job with `code_control` using the job action; foreground requests have a 120-second ceiling.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewLiuHe AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/wulun811-liuhe?style=directory)](https://allmcps.com/mcp/wulun811-liuhe)
HTML Embed
<a href="https://allmcps.com/mcp/wulun811-liuhe"><img src="https://allmcps.com/api/badge/wulun811-liuhe?style=directory" alt="LiuHe on AllMCPs" /></a>