| Crates.io | mete |
| lib.rs | mete |
| version | 0.1.2 |
| created_at | 2026-01-19 06:24:03.431661+00 |
| updated_at | 2026-01-19 07:48:08.529651+00 |
| description | Structural metrics engine for code quality analysis |
| homepage | https://github.com/dutch-casa/mete.rs |
| repository | https://github.com/dutch-casa/mete.rs |
| max_upload_size | |
| id | 2053848 |
| size | 6,737,721 |
Structural metrics engine for code quality analysis
MCP Server | CLI Usage | Metrics | Installation
mete analyzes your codebase and reports structural quality metrics:
Supports: Rust, TypeScript, JavaScript, Python, Go, Java, C#, C++, Elixir
mete works as an MCP (Model Context Protocol) server, giving AI assistants direct access to code quality analysis.
claude mcp add mete -- mete mcp
Or manually add to ~/.cursor/mcp.json:
{
"mcpServers": {
"mete": {
"command": "mete",
"args": ["mcp"]
}
}
}
Add to your VS Code MCP settings:
{
"mcp": {
"servers": {
"mete": {
"command": "mete",
"args": ["mcp"]
}
}
}
}
Add to ~/.config/opencode/config.json:
{
"mcp": {
"mete": {
"command": "mete",
"args": ["mcp"]
}
}
}
| Tool | Description |
|---|---|
analyze |
File/directory quality metrics (MI, CC, cognitive complexity, depth) |
targets |
AI-friendly refactoring suggestions sorted by priority |
functions |
Function-level metrics with filtering by complexity/size/depth |
duplicates |
Detect duplicate code blocks (exact and cross-file similar) |
entropy |
Measure structural complexity distribution |
cargo install mete --features mcp
npm install -g @dutch.casa/mete-rs
git clone https://github.com/dutch-casa/mete.rs
cd mete.rs
cargo install --path . --features mcp
mete analyze src/
mete analyze src/main.rs
mete targets src/ --limit 10
mete functions src/ --complex # Show only complex functions
mete functions src/ --large # Show only large functions (>50 LOC)
mete functions src/ --deep # Show only deeply nested functions
mete duplicates src/
mete duplicates src/ --cross-file --threshold 0.8
mete entropy src/
mete explain mi
mete explain cc
mete explain depth
Measures code maintainability on a scale of 0-100. Higher is better.
| Range | Rating |
|---|---|
| 85-100 | Excellent |
| 65-84 | Good |
| 50-64 | Moderate |
| 0-49 | Poor |
Number of linearly independent paths through code. Lower is better.
| Range | Rating |
|---|---|
| 1-5 | Simple |
| 6-10 | Moderate |
| 11-20 | Complex |
| 21+ | Very Complex |
Maximum depth of nested control structures. Lower is better.
| Range | Rating |
|---|---|
| 1-2 | Flat |
| 3-4 | Moderate |
| 5-6 | Deep |
| 7+ | Very Deep |
MIT