mimir
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| MIMIR_ROOT | No | Default project folder for CLI commands. | |
| MIMIR_MAVEN | No | Path to a specific `mvn` to use, overriding automatic discovery. | |
| MIMIR_TOKEN | No | Bearer token required by the HTTP server. The server listens at http://127.0.0.1:8000/mcp and accepts only requests that send `Authorization: Bearer <MIMIR_TOKEN>`; it refuses to listen beyond this computer unless a token is set. | |
| MIMIR_PYTHON | No | Python interpreter for running the project's pytest tests. |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
Mimir gives you a structural view of the project at /app. Prefer it over reading whole files or searching text:
repo_map see the project's shape (files, classes, methods)
outline FILE a file's signatures without bodies
get_symbol NAME one function/method/class with line numbers NAME: 'func', 'Class.method', 'path/File.java:Class.method', add '@LINE' to pick one overload ('Cart.add@27')
who_calls NAME every call site, before changing behaviour or a signature
checkpoint LABEL save the project before a risky change; restore ID to undo, list_checkpoints to see them, diff_since ID to review changes
replace_symbol rewrite a whole function/class by name; refuses edits that break syntax and returns related test results
check [FILES] syntax, lint and related tests after any other edit Supported languages: Python, Java.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": false
} |
| prompts | {
"listChanged": false
} |
| resources | {
"subscribe": false,
"listChanged": false
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| repo_mapA | Compact map of the whole project: every source file with its classes (and their methods) and top-level functions. Start here. |
| outlineA | Signatures, doc lines and line ranges for every class/function in one file, with bodies hidden. Much cheaper than reading the file. |
| get_symbolA | Source of one function, method or class, with line numbers. name: 'func', 'Class', 'Class.method', 'path/File.java:Class.method'; add '@LINE' to pick one overload, e.g. 'Cart.add@27'. |
| who_callsA | Every call site of a function/method across the project, with the calling function and the line. Matched by name, so same-named methods on different classes are listed together. |
| replace_symbolA | Replace a whole function/method/class definition with new_source (include the signature line and any decorators/annotations; indentation is fixed for you). Refused if it would break syntax. Returns check results for the file and its related tests. |
| checkA | Syntax, lint and tests. With files: only those files and the tests related to them. Without: the whole project and full test suite. |
| checkpointB | Save a snapshot of the whole project. Returns its id for restore(). |
| list_checkpointsB | All saved checkpoints, oldest first. |
| diff_sinceB | Unified diff of everything that changed since a checkpoint. |
| restoreA | Roll the project back to a checkpoint. Files added since are removed. A safety checkpoint is taken first, so a restore can itself be undone. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 10 tools
Each tool maps to a fairly distinct operation: repo_map indexes the project, outline shows one file's signatures, get_symbol fetches a single symbol's body, who_calls finds references, replace_symbol and check handle editing and validation, and the checkpoint/restore/diff trio manages snapshots. The only mild overlap is repo_map vs outline (both list classes/functions at different granularity) and the fact that the four snapshot tools all target the same underlying concept, but the descriptions make the boundaries clear.
All names are snake_case, so there is a uniform lexical style. The verb patterns vary somewhat—verb_noun (get_symbol, replace_symbol, list_checkpoints, diff_since) alongside bare nouns/verbs (repo_map, outline, check, checkpoint, restore)—but every name is short, domain-idiomatic, and readable.
Ten tools is a well-scoped surface for a code-intelligence/refactoring server: three for reading at different granularities, one for reference search, one for editing, one for validation, and four for snapshot lifecycle management. Nothing looks redundant or padding.
The read/edit/check/checkpoint lifecycle is essentially covered end-to-end, including safety checkpoints and undoable restores, which is unusually thorough. The main gaps are that replace_symbol only swaps existing definitions (no way to add a new symbol or create a file) and there is no plain text/grep-style search for non-symbol content.