Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
MIMIR_ROOTNoDefault project folder for CLI commands.
MIMIR_MAVENNoPath to a specific `mvn` to use, overriding automatic discovery.
MIMIR_TOKENNoBearer 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_PYTHONNoPython 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:

  1. repo_map see the project's shape (files, classes, methods)

  2. outline FILE a file's signatures without bodies

  3. 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')

  4. who_calls NAME every call site, before changing behaviour or a signature

  5. checkpoint LABEL save the project before a risky change; restore ID to undo, list_checkpoints to see them, diff_since ID to review changes

  6. replace_symbol rewrite a whole function/class by name; refuses edits that break syntax and returns related test results

  7. 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

CapabilityDetails
tools
{
  "listChanged": false
}
prompts
{
  "listChanged": false
}
resources
{
  "subscribe": false,
  "listChanged": false
}

Tools

Functions exposed to the LLM to take actions

NameDescription
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

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

A3.7/5.0

Scored across 10 tools

Disambiguation4/5

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.

Naming Consistency4/5

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.

Tool Count5/5

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.

Completeness4/5

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.

Maintenance

ActivityMaintained
ResponsivenessNo recent community issues