Skip to main content
Glama

LORE ist eine plugin-basierte Code-Archäologie-Engine für TypeScript-Projekte. Sie analysiert Ihren AST, bildet Abhängigkeiten ab, erkennt zirkuläre Abhängigkeiten, verfolgt Async-Ketten, bewertet die Typsicherheit und liefert architektonische Intelligenz an KI-Programmierassistenten über das Model Context Protocol (MCP).

Entwickelt von EliotShift · Praxiserprobt an 16 realen Projekten · 100% Erfolgsquote.


Warum LORE?

KI-Programmierassistenten schreiben schnell, aber ihnen fehlt das architektonische Gedächtnis. Sie können sich nicht merken:

  • Welche Dateien eng gekoppelt sind

  • Wo zirkuläre Abhängigkeiten existieren

  • Welche Typen sich über Grenzen hinweg ausbreiten

  • Welche Dateien zu oft geändert werden (Hotspots)

  • Was die architektonischen Schichten sind

LORE löst dies, indem es Ihrem KI-Assistenten ein tiefes Verständnis Ihrer Codebasis-Architektur vermittelt – durch CLI-Analyse und MCP-Server-Integration.


Related MCP server: Continuum

Funktionen

13 Analysatoren

#

Analysator

Was er tut

1

AST-Parser

Vollständiges TypeScript/TSX-Parsing mit ts-morph + Regex-Hybrid

2

Abhängigkeitsgraph

Bildet alle Importe, Exporte und Re-Exporte Ihres Projekts ab

3

Detektor für zirkuläre Abhängigkeiten

Findet Zyklen und bewertet sie nach Schweregrad

4

Prüfer für Abhängigkeitsrichtung

Erzwingt Schichtregeln (z. B. keine Controller → DB-Importe)

5

Shannon-Entropie

Komplexitätsbewertung pro Datei (einfach → sehr komplex)

6

Hotspot-Analyse

Git-Churn-Erkennung — Dateien, die zu häufig geändert werden

7

Import-Auswirkungs-Analysator

Zeigt den Wirkungsbereich jedes Imports

8

Typsicherheits-Scorer

Bewertet Ihre any-Nutzung, explizite Typen und Strenge

9

Detektor für versteckte Kopplung

Findet implizite Abhängigkeiten durch geteilte Typen

10

KI-Empfehlungen

Priorisierte Korrekturvorschläge (P0–P3)

11

Tooling-Konfigurationsprüfer

Validiert ESLint-, Prettier- und tsconfig-Einstellungen

12

Detektor für Breaking Changes

Markiert risikoreiche Deprecation-Muster

13

Architektonischer Lückenfinder

Identifiziert fehlende Abstraktionen und Muster

MCP-Integration (8 Tools + 3 Ressourcen)

Stellen Sie LORE für Claude Desktop, VS Code, Cursor oder jeden MCP-Client bereit:

Tool

Beschreibung

analyze

Vollständige Projektanalyse — Scores, Verstöße, Komplexität, Hotspots

get-scores

Gesundheits-Scores: Gesamt, Typsicherheit, Tooling, Architektur

get-violations

Zirkuläre Abhängigkeiten, Schichtverstöße, architektonische Lücken

get-recommendations

KI-Verbesserungsvorschläge (P0–P3)

get-hotspots

Dateien mit hoher Git-Churn (rot/gelb/grün)

get-entropy

Shannon-Entropie-Komplexitätsbericht

query-file

Datei-Importe, Exporte, Konsumenten, Komplexität

analyze_architecture

Tiefe TS-Analyse: Framework, Schichten, Async-Ketten, Typfluss

Ressource

Beschreibung

lore://analysis

Aktuelle Analyseergebnisse (JSON)

lore://architecture

Tiefer Architektur-Graph (JSON)

lore://config

Umgebungs- und Cache-Status (JSON)

CLI-Befehle

lore [path]                   Analyze project (default: cwd)
lore analyze [path]           Explicit analysis
lore init                     Extract architectural decisions
lore status                   View decisions by category
lore diff                     Diff against saved baseline
lore doctor                   Environment + tooling check
lore doctor --fix             Auto-fix project setup
lore ignore                   List/manage ignore patterns
lore watch                   Watch + re-analyze on change
lore mcp inspect             Inspect MCP server setup
lore mcp config              Claude Desktop config snippet
lore version                  Show version

Dokumentation

Website: eliotshift.github.io/lore-mcp

Seite

Beschreibung

Landing Page

Vollständiger Funktionsüberblick, Badges und Schnellstart

Installationsanleitung

npm-, npx- und Docker-Installation

Befehlsreferenz

Alle CLI-Befehle: init, status, doctor, watch, diff, etc.

MCP-Integration

Claude Desktop, Cursor und Windsurf-Einrichtung

Beispiele

Reale Analysen von Express, NestJS, Next.js und mehr

FAQ

Beantwortung häufiger Fragen


Schnellstart

Installieren

npm install -g lore-mcp

CLI-Nutzung

# Analyze current project
lore

# Analyze a specific project
lore ./my-typescript-project

# Check environment and auto-fix
lore doctor --fix

# Watch for changes
lore watch --filter src/

# Diff from last baseline
lore diff

MCP-Integration (Claude Desktop)

Fügen Sie dies zu Ihrer Claude Desktop-Konfiguration hinzu:

macOS: ~/Library/Application Support/Claude/claude_desktop_config.json Linux: ~/.config/Claude/claude_desktop_config.json Windows: %APPDATA%\Claude\claude_desktop_config.json

{
  "mcpServers": {
    "lore": {
      "command": "npx",
      "args": ["-y", "lore-mcp"]
    }
  }
}

Oder bei globaler Installation:

{
  "mcpServers": {
    "lore": {
      "command": "lore",
      "args": ["mcp"]
    }
  }
}

Starten Sie Claude Desktop neu und fragen Sie dann:

"Analyze my project architecture" → LORE führt analyze_architecture aus "What are the circular dependencies?" → LORE führt get-violations aus "Which files are hotspots?" → LORE führt get-hotspots aus "What are the AI recommendations?" → LORE führt get-recommendations aus


Architektur

lore-mcp/
├── src/
│   ├── algorithm/          # LoreGraph, AST parser, async chain builder, type tracker
│   ├── algorithms/         # AI recommendations, hotspot analysis, entropy, scoring
│   ├── analyzer/           # Dependency parsers, circular deps, direction, imports
│   ├── commands/           # CLI: doctor, diff, ignore, init, status, watch
│   ├── core/               # Plugin system, pipeline runner, graph engine
│   ├── lib/                # Hidden coupling, gaps, middleware chain, ontology
│   ├── mcp/                # MCP server + architecture bridge
│   ├── output/             # Formatter, markdown, SARIF, logger
│   ├── plugins/built-in/   # 13 built-in analysis plugins
│   ├── storage/            # Cache and decision store
│   ├── types/              # TypeScript type definitions
│   ├── cli.ts              # CLI entry point
│   └── index.ts            # MCP server entry point
├── package.json
└── tsconfig.json

Plugin-System

LORE verwendet eine plugin-basierte Architektur — jeder Analysator ist ein Plugin:

interface LorePlugin {
  name: string;
  version: string;
  analyze(context: AnalysisContext): Promise<PluginResult>;
}

Zu den integrierten Plugins gehören: circular-deps, coupling-matrix, dep-direction, entropy, gaps, hidden-coupling, hotspot, import-impact, middleware-chain, breaking-changes, type-safety, tooling-config, ai-recommendations.


Funktionsweise

  1. Parsen — LORE parst alle .ts/.tsx-Dateien mit einem hybriden ts-morph + Regex-Parser

  2. Graph erstellen — Konstruiert einen Abhängigkeitsgraphen mit typisierten Kanten (Import, Typ-Ref, Decorator, Async-Kette, Implements, Extends)

  3. Plugins ausführen — 13 Analysatoren laufen parallel durch die Plugin-Pipeline

  4. Bewerten — Berechnet Gesundheits-Scores (Typsicherheit, Tooling, Architektur, Gesamt 0–100)

  5. Empfehlen — KI-Engine generiert priorisierte Vorschläge (P0 kritisch → P3 nice-to-have)

  6. Bereitstellen — Ergebnisse verfügbar über CLI-Ausgabe, MCP-Tools oder SARIF-Format


Validierung

Projekt

Dateien

Ergebnis

Express

42

100% bestanden

Next.js

68

100% bestanden

Fastify

55

100% bestanden

NestJS

38

100% bestanden

Prisma

45

100% bestanden

Zod

35

100% bestanden

TypeORM

60

100% bestanden

+ 9 weitere

Alle 16 Testprojekte: 100% Erfolgsquote, null Abstürze.


Anforderungen

  • Node.js >= 18.0.0

  • TypeScript-Projekt (analysiert .ts und .tsx-Dateien)

  • Git (optional, für Hotspot-Analyse)

  • ripgrep (optional, für schnellere Dateisuche)


Tech-Stack

Komponente

Technologie

Sprache

TypeScript 5.5+

AST-Parsing

ts-morph 21

Protokoll

Model Context Protocol (MCP) SDK 1.0

Transport

Stdio (Claude Desktop / IDE-kompatibel)

Validierung

Zod-Schemas

Ausgabe

ANSI-Terminal, Markdown, SARIF


Lizenz

MIT © 2025 EliotShift


Install Server
A
license - permissive license
A
quality
C
maintenance

Maintenance

Maintainers
Response time
1wRelease cycle
4Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

  • A
    license
    Not graded
    quality
    C
    maintenance
    Provides persistent memory for AI coding assistants, storing and retrieving architectural decisions, patterns, and solutions across sessions using semantic search, while also offering git integration for commit messages and code expertise mapping.
    MIT
  • A
    license
    Not graded
    quality
    D
    maintenance
    Automatically extracts architectural decisions, patterns, and insights from Git commits to build a local, structured project memory. It exposes this living context to AI tools via MCP, allowing them to understand the historical reasoning and evolution behind your codebase.
    41
    7
    MIT
  • A
    license
    A
    quality
    A
    maintenance
    Local-first memory layer for AI coding agents — captures issues, attempts, fixes, and decisions, and warns at git commit before you repeat a mistake.
    15
    665
    MIT
  • A
    license
    Not graded
    quality
    D
    maintenance
    Provides AI coding assistants with persistent, context-rich memory of a codebase, including documentation and git history, enabling recall across sessions.
    105
    Apache 2.0

View all related MCP servers

Related MCP Connectors

  • AI Agent with Architectural Memory. Impact analysis (free), tests and code from the graph (pro).

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

  • Give your AI agent a persistent map of your project's structure, dependencies, and bugs.

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/EliotShift/lore-mcp'

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