Logo von Trace

Trace

Community
mrchatam

Local-first project knowledge graph + progressive planning for AI coding agents (CLI, MCP, optional GUI).

Herausgebermrchatam
RepositoryTrace
SpracheGo
Forks
0
Sterne
12
Verfügbare Tools
0
Transporttypstdio
Kategorien
LizenzApache-2.0
Links
  • Tools mit KI-Workflows verbinden

    Trace stellt MCP-Funktionen bereit, die kompatible KI-Clients und Agenten nutzen können.

  • 0 verfügbare Tools

    Sehen Sie sich unten die aufrufbaren Aktionen an, einschließlich Namen und Beschreibungen, sofern der Server diese bereitstellt.

  • Konfiguration zum Kopieren

    Nutzen Sie die Installationsbeispiele, um diesen Server in Ihrem bevorzugten MCP-Client zu konfigurieren.

  • Open-Source-Kennzahlen

    12 Sterne und 0 Forks im verlinkten Repository.

Trace

Local-first project knowledge graph and progressive planning for AI coding agents.

Trace sits beside Git and your coding agent. It records why work exists, what the project currently believes, and how discoveries should change the next plan — then serves that back as bounded context (CLI, MCP, optional local GUI).

Why Trace

Coding agents see files and diffs. They usually do not see:

  • which goal or decision caused a change;
  • what assumptions are still load-bearing;
  • what evidence supports a “done” claim;
  • how a discovery should replan affected work;
  • which skills/tools/MCP servers a task actually needs.

Trace is that missing layer: a versioned SQLite graph under .trace/, with Git remaining the source-of-truth for history and content.

Install

Requirements: Go matching go.mod (currently 1.26+), plus a C toolchain for the full CLI (CGO_ENABLED=1 — tree-sitter analyzers).

The module is not published to the Go module proxy yet, so go install …@latest fails until a version is tagged. Build from a checkout:

bash
git clone https://github.com/mrchatam/Trace.git
cd Trace
CGO_ENABLED=1 go build -o bin/trace ./cmd/trace
CGO_ENABLED=1 go build -o bin/trace-mcp ./cmd/trace-mcp
cp -f bin/trace bin/trace-mcp ~/.local/bin/   # or any dir on PATH
./bin/trace version
  • Both trace and trace-mcp need CGO_ENABLED=1 on tip (tree-sitter / analyzers). CGO_ENABLED=0 fails to link language bindings.
  • Some library packages that do not import analyzers remain usable with CGO_ENABLED=0.
  • No GitHub Releases yet — use the build above. See also docs/gui-quickstart.md for PATH notes.

trace install … configures agent/MCP/hook snippets; it does not put binaries on PATH.

60-second quickstart

From any project directory (Git optional but recommended):

bash
trace init
# → creates .trace/trace.db (never project-root trace.db)

trace add goal --title "Harden auth" --body "Close session gaps"
# → {"id":"<goal-id>","ok":true,"type":"goal"}

trace add task --title "Audit cookie flags" --goal-id <goal-id>
# → {"id":"<task-id>","ok":true,"type":"task"}

trace index
trace search cookie
trace context <task-id>
trace loop status --task <task-id>

Clone of a repo that commits trace/graph.json:

bash
trace init
trace seed import trace/graph.json
trace index
trace plan show
trace why goal <id>
trace context <task-id>

After seed import, tasks are PENDING (default export omits reviews, transitions, and task work_state).

Surfaces

SurfaceBinary / commandRole
CLItraceCanonical operator interface (init, add, index, search, context, loop, plan, …)
MCPtrace-mcp (stdio)Same graph for any MCP-capable coding agent — tools trace_why, trace_context, trace_search, trace_loop, trace_plan, trace_explore, … (17 tools; confirm with trace_version)
HTTP / GUItrace serve / trace guiOpt-in loopback API + embedded Explore SPA (default 127.0.0.1:7432; not a daemon)

Wire Trace into your coding agent (MCP)

Trace’s agent integration is stdio MCP, not a Cursor-only plugin. Any host that can launch an MCP server with a command + args can use trace-mcp the same way (Cursor, Claude Code, and other MCP clients).

Universal config shape (print adapters emit this):

json
{
  "mcpServers": {
    "trace": {
      "type": "stdio",
      "command": "/abs/path/to/trace-mcp",
      "args": ["-C", "${workspaceFolder}"]
    }
  }
}

Prefer an absolute path to trace-mcp. After install or rebuild, restart/reload the MCP connection in your agent so you are not talking to a stale stdio process. Then call trace_version and confirm the identity matches your build.

Shipped install adapters (helpers — same MCP server underneath):

bash
# Detect what Trace can configure in this environment / project
trace install detect

# Cursor — prints snippet; --write merges into ~/.cursor/mcp.json (or --mcp-json)
trace install cursor
trace install cursor --write --bin /abs/path/to/trace-mcp

# Claude Code — requires project marker (.claude/ or CLAUDE.md); --write → .claude/trace-mcp.json
trace install claude
trace install claude --write --bin /abs/path/to/trace-mcp

# Optional: git post-commit / Cursor hook helpers
trace install git-hook
trace install cursor-hook

Other MCP hosts: paste the JSON above into that product’s MCP settings (or generate it with trace install cursor / claude and adapt the path). The protocol and tool names do not change.

GUI (any project with .trace/ — agent-agnostic):

bash
cd your-project && trace gui
# headless twin: trace serve

Details: docs/gui-quickstart.md. See also trace install --help and trace install detect.

What it is / isn’t

Is

  • Local-first knowledge + planning substrate for one project root (-C / cwd; no parent walk-up).
  • Hybrid retrieval: exact lookup, lexical FTS, graph-label traversal, temporal/history — not embedding/vector semantic search (deferred — DR-NOSSEM; do not expect semantic_match).
  • Progressive planning: coarse → deep near execution → replan from discoveries.
  • Evidence and independent review before DONE; provenance on inferred vs verified facts.
  • Portable causal graph via committed trace/graph.json (.trace/ stays local/gitignored).

Isn’t

  • A Git replacement, IDE, or coding-agent runtime.
  • Cloud SaaS, multi-tenant hosting, or always-on network daemon (HTTP/GUI is opt-in loopback).
  • Embedding/RAG semantic search (not shipped).
  • A claim that Jev or other external integrations are productized here.

Design principles (condensed)

  • Progressive planning; discovery is normal and feeds the plan.
  • Evidence over assertions; implementation ≠ review identity.
  • Context minimization — smallest high-value packet first, expand on demand.
  • Hybrid FTS/graph/temporal retrieval (no embeddings yet — DR-NOSSEM).
  • Provenance everywhere; forward progression; human authority.
  • Capability-aware tasks; Git for history; incremental index updates.

Feature map (shipped vs deeper docs)

AreaShipped surface (examples)
Graph CRUDtrace add, link, transition, review, tasks
Retrievalsearch, why, context, explore / MCP trace_explore
Loop / gatesloop next|apply|status|gate, optional --enforce
Planningplan create-coarse|deep|show|bootstrap|…
Indexindex / index status / index watch (file-local incremental)
Portable graphseed import|export → trace/graph.json
Impact / capsimpact, capability, agents recommend
Install adaptersinstall detect|cursor|claude|cursor-hook|git-hook|agents (MCP helpers for multiple agents)
Local HTTP/GUIserve, gui (embedded SPA)

For command truth, prefer trace --help and MCP Instructions / trace_version over older blog-style docs.

Documentation map

DocWhat
docs/TODO.mdExecution board index (phase tables under docs/TODO/)
docs/gui-quickstart.mdOpt-in GUI / serve
docs/ARCHITECTURE.mdComponent boundaries
docs/SECURITY.mdTrust boundaries
docs/PROJECT_MODEL.mdEntities, relations, provenance
docs/RETRIEVAL_AND_CONTEXT.mdRetrieval strategy (incl. DR-NOSSEM)
docs/ROADMAP.mdRoadmap / milestone gates
PROJECT_DOCS_INDEX.mdFull doc index
CONTRIBUTING.mdDev rules, portable-graph export, dual-stack notes
AGENTS.mdAgent entrypoint / phase focus
LICENSEApache-2.0

Status

Active research/engineering codebase: foundational graph, CLI, MCP, and opt-in local GUI are in use and under rapid iteration (multi-phase boards; see AGENTS.md). The validation bar is not “orchestrate many agents,” but:

Can an agent understand an unfamiliar repo, plan a bounded task, adapt when implementation discovers something new, and decide better with the project graph than with raw files alone?

Expect sharp edges, evolving commands, and honest gaps. Read trace --help and the active phase board before assuming a feature exists.

License

Apache-2.0. Hosted/enterprise offerings may appear later without restricting the open-source core.

Installation

TypingMind
{
  "mcpServers": {
    "trace": {
      "command": "trace-mcp",
      "args": [
        "-C",
        "{{config.WORKSPACE_FOLDER}}"
      ],
      "env": {
        "WORKSPACE_FOLDER": "<WORKSPACE_FOLDER>"
      }
    }
  }
}

Trace MCP mit mehreren KI-Modellen nutzen

TypingMind bindet MCP-Tools auf Arbeitsbereichsebene ein. Sobald Trace verbunden ist, können Sie die Integration mit verschiedenen KI-Modellen in TypingMind verwenden, statt sie für jedes Modell separat einzurichten. Diese MCP-Integration läuft lokal über den TypingMind-MCP-Konnektor auf Ihrem Gerät.

Einrichtungsanleitung für den lokalen Konnektor

Nutzen Sie diese Option, wenn der MCP-Server Zugriff auf lokale Dateien, Apps oder private Ressourcen auf Ihrem Computer benötigt.

1

MCP-Einstellungen öffnen

Gehen Sie in TypingMind zu „Einstellungen“, „Erweiterte Einstellungen“ und dann „Model Context Protocol“ und wählen Sie „Konnektor-Setup“.

  1. Öffnen Sie TypingMind in Ihrem Browser.
  2. Klicken Sie auf das Symbol „Optionen“.
  3. Gehen Sie zu „Erweiterte Einstellungen“.
  4. Öffnen Sie den Abschnitt „Model Context Protocol“.
  5. Klicken Sie auf „Konnektor-Setup“ und wählen Sie „Dieses Gerät“.
Einrichtungsbildschirm des TypingMind-MCP-Konnektors mit ausgewählter Option „Dieses Gerät“
2

Konnektor-Befehl ausführen

Wählen Sie „Dieses Gerät“, kopieren Sie den Befehl aus TypingMind und führen Sie ihn im Terminal aus. Lassen Sie den Prozess laufen, solange Sie MCP verwenden.

  1. Kopieren Sie den in TypingMind angezeigten Einrichtungsbefehl.
  2. Öffnen Sie unter macOS Terminal bzw. unter Windows Windows Terminal.
  3. Fügen Sie den Befehl ein und führen Sie ihn aus.
  4. Bestätigen Sie die Paketinstallation, wenn Sie im Terminal zum Fortfahren aufgefordert werden.
  5. Lassen Sie das Terminalfenster geöffnet und den Prozess darin laufen, solange Sie MCP-Tools verwenden.
3

Trace als Server hinzufügen

Wenn der Konnektorstatus „Bereit“ anzeigt, klicken Sie auf „Server ändern“ und fügen Sie die MCP-Server-Konfiguration ein.

  1. Warten Sie, bis der Konnektorstatus „Bereit“ anzeigt.
  2. Klicken Sie auf „Server ändern“.
  3. Fügen Sie die MCP-Server-Konfiguration für Trace ein.
  4. Speichern Sie die Serverliste.
  5. Aktualisieren Sie die Ansicht, um bei Bedarf zu prüfen, ob der Konnektor weiterhin bereit ist.
MCP-Einstellungen in TypingMind mit aktivem Server und der Schaltfläche „Server ändern“
{
  "mcpServers": {
    "trace": {
      "command": "npx",
      "args": [
        "-y",
        "<mcp-server-package>"
      ]
    }
  }
}
4

Verbindung modellübergreifend nutzen

Speichern Sie die Serverliste, öffnen Sie „Plugins“ und aktivieren Sie die MCP-Tools von Trace. Wählen Sie dann ein beliebiges unterstütztes KI-Modell in TypingMind und verwenden Sie die Tools im Chat oder weisen Sie sie einem KI-Agenten zu.

  1. Öffnen Sie die Seite „Plugins“ in TypingMind.
  2. Aktivieren Sie die MCP-Tools von Trace.
  3. Starten Sie einen Chat und wählen Sie das KI-Modell, das Sie verwenden möchten.
  4. Nutzen Sie die MCP-Tools im Chat oder weisen Sie sie einem KI-Agenten zu.
  5. Wechseln Sie bei Bedarf zu einem anderen KI-Modell, ohne die MCP-Verbindung erneut herzustellen.
TypingMind-Chat mit aktivierten MCP-Tools und einem ausgewählten KI-Modell
Können Sie mir mit Trace bei dieser Aufgabe helfen?
Trace
Gerne. Ich habe es gelesen.
Das habe ich mit Trace gefunden.

Häufig gestellte Fragen

Wofür wird der MCP-Server Trace verwendet?

Trace ist ein MCP-Server, über den kompatible KI-Clients auf externe Tools und Kontext zugreifen können. In TypingMind können Sie diesen MCP-Server einmal hinzufügen und seine Tools in Ihrem KI-Arbeitsbereich verfügbar machen.

Kann ich Trace MCP mit mehreren KI-Modellen in TypingMind verwenden?

Ja. TypingMind bindet MCP-Tools auf Arbeitsbereichsebene ein. So können Sie Trace mit verschiedenen KI-Modellen wie Claude, ChatGPT, Gemini oder anderen in TypingMind konfigurierten Modellen verwenden, ohne den MCP-Server für jedes Modell separat einzurichten.

Warum Trace MCP mit TypingMind nutzen?

TypingMind ist eine der besten Oberflächen für LLM-Chats, da es mehrere KI-Modelle, Prompts, Plugins, KI-Agenten, API-Schlüssel und MCP-Tools in einem Arbeitsbereich vereint. Sobald Trace verbunden ist, können Sie die zugehörigen MCP-Tools mit Ihren bevorzugten Modellen nutzen und Ihre Chat-Abläufe in TypingMind übersichtlich organisieren.

Wie verbinde ich Trace MCP mit TypingMind?

Trace wird über den lokalen MCP-Konnektor von TypingMind angebunden. Das ist die beste Wahl, wenn der MCP-Server auf lokale Dateien, Desktop-Apps, Befehlszeilentools oder private Ressourcen auf Ihrem Computer zugreifen muss.

Welche Tools stellt Trace MCP in TypingMind bereit?

Trace stellt MCP-Funktionen bereit, die Sie auf der Plugins-Seite in TypingMind aktivieren und im Chat verwenden oder KI-Agenten zuweisen können.

Muss ich meine API-Schlüssel mit TypingMind teilen, um Trace MCP zu verwenden?

Nein. TypingMind arbeitet vorrangig lokal, sodass Sie die Kontrolle über Ihre Modellanbieter, API-Schlüssel, Prompts und MCP-Konfiguration behalten. Falls Trace eine Authentifizierung erfordert, fügen Sie beim Erstellen der Verbindung die erforderlichen Header, OAuth-Einstellungen oder die lokale Konfiguration für diesen MCP-Server hinzu.

Ähnliche MCP-Server

Alle

Jetzt eigenen KI-Arbeitsbereich einrichten

Abonnieren Sie unseren Newsletter und erfahren Sie mehr über neue Funktionen und kommende Gewinnspiele 👇