Skip to main content
Glama

Verum

CI crates.io docs.rs Marketplace Glama

Verum is a deterministic, whole-program code analyzer. It maps a codebase into a single intermediate representation - symbols, call graph, routes, data flows - then runs a set of analyses over that map: dead code, duplicates, taint-based security checks, complexity, naming, and infrastructure (Kubernetes, Dockerfile, Terraform). It's a single static binary with no build step and no language server, so it runs on a fresh checkout in a fraction of a second.

Same input, same output. Every symbol id, finding, and report is derived from a stable hash of the source, so two runs on the same tree produce byte-identical results. That makes Verum usable as a CI gate, a baseline you can diff against, and a fact layer that tools and agents can rely on.

Supported languages: PHP, Rust, JavaScript, TypeScript, Python, Go, and Java, plus Kubernetes YAML, Dockerfiles, and Terraform.

Example

verum audit on a vulnerable PHP fixture: dead code, security findings, and a score

Related MCP server: Ferret MCP

Install

cargo install verum                 # compile from crates.io
cargo binstall verum                 # or grab the prebuilt binary, no compile
docker run --rm -v "$PWD:/work" ghcr.io/ibmark/verum audit .   # or no install

Prebuilt binaries for Linux (gnu/musl), macOS (x86_64/arm64), and Windows are attached to each release.

cargo install builds a verum binary on your PATH (Verum builds on stable Rust 1.82 or newer). To build from a checkout instead, use cargo install --path crates/verum. For a static Linux binary you can copy anywhere:

cargo build --release --target x86_64-unknown-linux-musl

The same crate is a library. Add verum as a dependency to parse a tree into the IR and run the analyses programmatically:

use verum::{Atlas, AtlasConfig, Prism, Standard};

let ir = Atlas::new(AtlasConfig { root: ".".into(), ..Default::default() }).build()?;
let result = Prism::analyse(&ir, &Standard::default())?;
println!("score: {}", result.score.overall);

Usage

verum analyse <path>    # map the code into the IR - symbol/call/route counts
verum audit <path>      # map + analyse - findings and a score, no changes
verum clean <path>      # audit + preview the dead-code/duplicate fixes
verum map <path>        # module/symbol graphs, cycles, SPOFs, data flows
verum gate <path>       # exit non-zero if the deploy-gate thresholds fail
verum baseline <path>   # snapshot findings so gate only fails on new ones
verum report <path>     # markdown | json | sarif | a self-contained html report
verum init [path]       # write a default verum.standard.json

audit scores the code and lists findings by severity. clean reports the fixes it would apply - symbols with no caller, duplicate bodies to remap - and identifies each by file and line. It runs report-only and does not modify your files; treat its output as a worklist to apply by hand.

Continuous integration

verum gate <path> exits 1 when the deploy-gate thresholds fail and 0 when they pass, so a pipeline can rely on the exit code rather than parsing output. verum report <path> --format json emits the findings and score as JSON for a dashboard or a custom check.

# .github/workflows/verum.yml
name: verum
on: [push, pull_request]
jobs:
  gate:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - uses: IBMark/verum-action@v1   # runs `verum gate .` by default

On an existing codebase, snapshot the current findings once with verum baseline . and commit the result; the gate then fails only on findings that are new relative to that baseline, so you can adopt it without first fixing everything it reports.

verum report <path> --format sarif emits SARIF 2.1.0, so findings show up as inline pull-request annotations and in the repository's Security tab:

      - run: verum report . --format sarif --out verum.sarif
      - uses: github/codeql-action/upload-sarif@v3
        with:
          sarif_file: verum.sarif

Agent / MCP

verum mcp <path> serves the analysis as an MCP tool server over stdio, so an agent can query the map instead of grepping. It exposes the call graph (callers_of, callees_of, impact_of), dead_code, duplicates, audit, audit_delta (findings only in files changed vs a git ref), and endpoints (which client HTTP calls hit which routes). The map is re-checked against the tree's mtimes on each call, so answers track your edits.

Any MCP-capable client can connect over stdio. For example, with Claude Code:

claude mcp add verum -- verum mcp /path/to/project

Cross-language

Verum parses every supported language into one IR, so a fetch('/api/users') in a TypeScript frontend links to the route handler that serves it - even when that handler is in another language. verum mcp's endpoints tool reports the matches, plus frontend calls that hit no route (likely 404s) and routes that no client calls (possibly dead).

Optional AI layer

verum full can send the ambiguous findings - the ones deterministic analysis can't resolve on its own - to a language model for a keep/delete/deprecate decision. It's provider-neutral: it speaks the OpenAI-compatible chat API and is configured entirely through the environment, so it works with a hosted API or a local runner (ollama, llama.cpp, vLLM, LM Studio). Nothing is contacted unless you set an endpoint.

export VERUM_AI_ENDPOINT="http://localhost:11434/v1/chat/completions"
export VERUM_AI_MODEL="qwen2.5-coder"
verum full <path>

Configuration

verum init writes verum.standard.json - analysis thresholds, per-language naming rules, the weak-crypto allowlist, and the deploy-gate limits. Everything has a sensible default, so the file is optional.

How it works

files -> map (mappa) -> IR -> analyse (lumen) -> findings + score
                            -> plan (faber)    -> fix worklist

mappa parses files in parallel via tree-sitter and merges them into one IR. Ids are a stable FNV-1a hash of the path, which keeps them reproducible and lets files be parsed independently without a shared counter. lumen runs the analyses over the merged IR; faber turns the safe findings into a concrete list of edits (report-only in this release).

The workspace splits along that pipeline: verum-nucleus (shared IR and finding types), verum-mappa (parsers), verum-lumen (analyses), verum-faber (fix planner), verum-arbiter (optional AI layer), and verum (the binary and the library facade).

License

Dual-licensed under either of

at your option.

A
license - permissive license
Not graded
quality - not tested
A
maintenance

Maintenance

Maintainers
Response time
0dRelease cycle
3Releases (12mo)
Commit activity

Related MCP Servers

  • A
    license
    B
    quality
    A
    maintenance
    An MCP server that provides structural codebase indexing and surgical query tools to drastically reduce token usage through symbol-level searches and transitive impact analysis. It supports multiple languages and integrates with git to help AI agents understand code dependencies and the impact of changes in sub-millisecond time.
    69
    1,115
    MIT
  • A
    license
    A
    quality
    C
    maintenance
    An MCP server that extracts complete knowledge from any codebase — architecture, patterns, dependencies, API surface. Combines static analysis with AI-powered deep interpretation.
    8
    MIT
  • A
    license
    Not graded
    quality
    C
    maintenance
    An MCP server that provides ultra-efficient code exploration through AST analysis, reducing LLM token usage by up to 95% while enabling instant call graph generation and dependency analysis for massive codebases.
    MIT
  • F
    license
    A
    quality
    C
    maintenance
    MCP server that exposes pre-extracted facts about code behavior, design decisions, and assumptions to AI agents, saving time and tokens by avoiding direct source file reading.
    6

View all related MCP servers

Related MCP Connectors

  • Enterprise code intelligence for M&A, security audits, and tech debt. Hosted server with 200k free.

  • Deterministic context layer for your codebase: change impact, blast radius, answers with receipts.

  • Code intelligence for coding agents: semantic, AST, graph, and full-text search. 279+ languages.

View all MCP Connectors

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/IBMark/verum'

If you have feedback or need assistance with the MCP directory API, please join our Discord server