Ariadne logo

Ariadne

by MikhailHal

Selects Kotlin tests affected by Git changes using static call-graph analysis.

Install Ariadne

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

Setup steps from the project

MikhailHal/ariadne 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
    brew install mikhailhal/tap/ariadne
    
  2. 2. Add to Claude Code
    claude mcp add ariadne -- ariadne
    
  3. 3. Start the server
    docker run -i --rm -v /path/to/project:/workspace ghcr.io/mikhailhal/ariadne
    
  4. 4. Install
    git clone --recursive https://github.com/MikhailHal/ariadne.git
    
  5. 5. Run
    cd ariadne
    
  6. 6. Install
    ./gradlew shadowJar   # fat JAR: build/libs/ariadne-<version>-all.jar
    

Overview

The MikhailHal/ariadne MCP server identifies unit tests affected by changes in a Kotlin or Android project. It runs Git diff internally, analyzes Kotlin code with the Kotlin Analysis API through sazanami, and returns affected test fully qualified names. Automatic module and Android source-set discovery supports multi-module projects and common variant layouts. Use it during agent edit-and-verify loops, while retaining full or conservative CI test runs for changes static analysis cannot trace.

Use cases

  • Select unit tests after Kotlin source changes
  • Check affected tests in multi-module Android projects
  • Shorten agent edit-and-verify loops
  • Compare committed and uncommitted changes against a branch

Key features

  • Git diff-based change detection
  • Kotlin call-graph analysis
  • Multi-module and Android source-set discovery
  • Deep and shallow change scopes
  • Affected test fully qualified names
  • 120-second analysis timeout

Tools6

What Ariadne lets your agent do. Expand a tool for its parameters.

Self-reported~11 tokens of context

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.

13/13 checks healthy over the last 62d

Adoption & maintenance

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

GitHub stars3Stargazers on the source repository.
Last commit2mo agoMost recent push to the default branch.
Tools exposed6Callable tools this server registers over MCP.
Directory activity3 viewsConfig copies, upvotes, and views on AllMCPs.

How Ariadne works

What the MikhailHal/ariadne MCP server does

The MikhailHal/ariadne MCP server exposes affected-test selection for Kotlin and Android repositories through MCP. Its main purpose is to reduce the tests an agent runs after modifying code. The result is a sorted list of affected test fully qualified names rather than a test command or test report.

The analyzer covers function-level relationships, including calls involving functions, properties, property initializers, delegates, accessors, constructors, and callable references. It can discover modules from Gradle settings and identify source sets across Android variants. The project description reports validation against Now in Android, including 34 modules and an approximately four-second end-to-end query time in that project.

How it works

An MCP client sends a project path to the get_affected_tests tool. The MikhailHal/ariadne MCP server runs Git diff itself, then passes the changed Kotlin code to sazanami for static analysis. Sazanami builds a call graph and finds tests reachable from the changed code.

The scope option controls which changes are considered. deep, the default, compares changes since a base branch and includes committed and uncommitted work. shallow compares only uncommitted changes against HEAD; in that mode, base_branch is ignored. For deep analysis, the server uses the repository's default branch from origin/HEAD when no branch is supplied. If that reference is unavailable, the request returns an error asking for an explicit base branch.

Setup and configuration

Install the executable with Homebrew:

bash
brew install mikhailhal/tap/ariadne

Register the ariadne executable with an MCP client. The README gives Claude Code and Claude Desktop configurations, including a stdio entry whose command is ariadne. Docker is also supported by mounting the project at /workspace and passing that path as project_path. A release fat JAR can run with JDK 21 or newer, and the repository can be built with Gradle's shadowJar task.

Tools and capabilities

The server provides one documented tool:

  • get_affected_tests: accepts required project_path, optional scope (deep or shallow), and optional base_branch for deep scope.

Responses contain sorted affected test names. If changes occur in build scripts, resources, or source sets outside the analysis scope, the response adds a recommendation to run the full test suite. Analysis has a 120-second timeout and returns an explicit error if that limit is reached.

Limitations and notes

The MikhailHal/ariadne MCP server uses static call-graph analysis, so it cannot reliably connect dependencies hidden behind reflection, dependency-injection containers, or framework-dispatched callbacks. Examples include lifecycle callbacks, lint detector methods, and application startup methods when the test does not call them directly. Flux/MVI dispatch-to-collection relationships may also be missed.

Changes to build scripts, resources, or unscanned source sets are reported rather than treated as having no affected tests. The tool is intended to narrow tests during development, not replace a full or conservative CI test run before merging.

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 Ariadne

Install it with Homebrew using `brew install mikhailhal/tap/ariadne`, then configure the MCP client to run the `ariadne` executable.

Yes. The README provides a Claude Desktop configuration that runs the `ariadne` command over stdio.

It runs Git diff, analyzes changed Kotlin code with sazanami and the Kotlin Analysis API, builds a function-level call graph, and returns affected test fully qualified names.

No. Static analysis may miss reflection, dependency-injection wiring, framework callbacks, data-flow indirection, build scripts, resources, and unscanned source sets. The README recommends a full or conservative CI test run before merging.

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 PreviewAriadne AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/mikhailhal-ariadne?style=directory)](https://allmcps.com/mcp/mikhailhal-ariadne)
HTML Embed
<a href="https://allmcps.com/mcp/mikhailhal-ariadne"><img src="https://allmcps.com/api/badge/mikhailhal-ariadne?style=directory" alt="Ariadne on AllMCPs" /></a>