Logo di Locus

Locus

Community
Magnifico4625

Persistent project-aware memory for AI coding tools. Built on MCP. Works with Codex, Claude Code, and other MCP-compatible clients.

Pubblicato daMagnifico4625
Repositorylocus
LinguaTypeScript
Fork
2
Stelle
14
Strumenti disponibili
0
Tipo di trasportostdio
Categorie
LicenzaMIT
Link
  • Collega gli strumenti ai flussi di lavoro IA

    Locus mette a disposizione funzionalità MCP utilizzabili da client e agenti IA compatibili.

  • Strumenti disponibili: 0

    Esplora le azioni richiamabili qui sotto, con nomi e descrizioni se il server li fornisce.

  • Configurazione pronta da copiare

    Usa gli esempi di installazione per configurare questo server nel tuo client MCP preferito.

  • Indicatori di interesse della comunità open source

    Stelle: 14; fork: 2 (repository collegato).

Locus

Local persistent memory for AI coding tools. Built on MCP. Optimized for Codex CLI.

Locus hero image

npm version Node.js License: MIT MCP Compare

Quick links: Install · Why Locus · Competitive Snapshot · Full comparison

What Locus Does

AI coding agents forget project context between sessions. Locus gives them a local memory database they can query through MCP:

  • project structure: files, exports, imports
  • saved decisions: architecture choices, preferences, constraints
  • Codex conversation recall: recent work, errors, rejected alternatives, next steps
  • diagnostics: what is stored, what was imported, what capture mode is active

Locus is local-first. It stores data on your machine, uses SQLite, and does not require a cloud account, hosted database, embeddings provider, or LLM call to write memory.

Install For Codex

bash
npx -y locus-memory@latest install codex --yes

Restart Codex, then verify:

bash
npx -y locus-memory@latest doctor codex

Remove the Codex MCP entry while keeping local memory data:

bash
npx -y locus-memory@latest uninstall codex --yes

The installer adds the Locus MCP server, installs the Codex skill, sets practical redacted capture defaults, and pins the recurring MCP runtime to the installed package version.

New In v3.7

New in v3.7 / Track D: Codex memory reliability. memory_recall, memory_search, and memory_timeline are scoped to the current project, date-aware recall reports searched buckets, memory_calendar gives day/week/month activity discovery, and memory_project_state summarizes current package/git/memory state before the agent relies on old context.

Track C richer recall is still carried forward: memory_recall can summarize imported redacted Codex sessions, durable decisions, explicit memory_remember entries, rejected alternatives, validation facts, user style, and dated questions such as "what did we do yesterday?". If several matches are plausible, Locus returns candidateGroups so the agent can ask a focused clarification instead of guessing.

Codex CLI is the primary validated path. Codex Desktop uses the same MCP model where exposed by the upstream surface, and the Track D marker acceptance validates the desktop MCP path when LOCUS_CODEX_SURFACE=desktop is set. Extension parity still depends on target-surface testing.

Why Choose Locus

NeedLocus approach
One-command Codex setupnpx -y locus-memory@latest install codex --yes
Local-only storageSQLite under $CODEX_HOME/memory/, ~/.claude/memory/, or ~/.locus/memory/
Low token costWrites happen locally; tokens are spent only when the agent recalls memory
Privacy controlmetadata, redacted, and full capture modes; full is explicit warning territory
Project-aware memoryStructural scan plus durable decisions and conversation events
Inspectabilitymemory_status, memory_project_state, memory_doctor, memory_audit, memory_review
Cross-client baseAny MCP client can use the server; Codex and Claude Code have the strongest adapters today

Competitive Snapshot

Locus is not trying to be a full agent runtime or cloud memory platform. It is a small local memory layer for coding agents, with Codex as the first-class product path.

ProjectMain strengthTrade-off vs Locus
agentmemoryVery broad coding-agent memory stack with many tools, hooks, viewer, and benchmark claimsLarger system surface; Locus is smaller, simpler, Codex-first, and ships as one npm MCP runtime
AIDE MemoryPath-scoped local memory and very small context nudgeLocus focuses more on MCP tools, Codex JSONL import, diagnostics, and explicit recall UX
Mem0Popular general-purpose memory layer for AI agents with SDKs, hosted/self-hosted options, and benchmarksUsually an application integration layer; Locus is ready-to-use for coding tools through MCP
LettaFull stateful agent platform with advanced memoryMore framework/runtime commitment; Locus plugs into existing tools instead of replacing them
Zep / GraphitiTemporal knowledge graphs and production context infrastructureStrong for app/enterprise memory; Locus is lighter and local by default for individual coding workflows

Full comparison: docs/comparison.md

Capture Modes

ModeUse it whenWhat to expect
metadataYou want safest diagnostics-first behaviorMinimal content recall
redactedYou want practical Codex memoryBounded snippets and keyword extraction with best-effort secret redaction
fullYou explicitly want maximum recallMore content stored locally after redaction; not risk-free

Recommended Codex settings:

bash
LOCUS_CODEX_CAPTURE=redacted
LOCUS_CAPTURE_LEVEL=redacted

For product claims: full is maximum recall and must be treated as explicit opt-in, not a safe default.

MCP Tools

Locus exposes 17 MCP tools:

ToolPurpose
memory_recallSummary-first recall for questions about past work
memory_calendarDiscover day/week/month activity buckets for a project and time range
memory_project_stateSummarize project identity, package/git state, memory freshness, and active next steps
memory_searchFull-text search across structure, decisions, and conversation events
memory_rememberSave important decisions or preferences
memory_reviewInspect durable memories, states, evidence, and topic keys
memory_import_codexManually import Codex rollout JSONL sessions
memory_timelineChronological event feed
memory_scanIndex project structure
memory_exploreBrowse indexed project structure
memory_statusRuntime state and Codex diagnostics
memory_doctorActionable health checks
memory_auditStorage and privacy audit
memory_configShow effective configuration
memory_compactPrune old episodic entries
memory_forget / memory_purgeDelete selected or all memory with safety confirmation

For broad period questions, use memory_calendar first. It defaults to last_30d, so agents should pass this_month, last_month, or an explicit range for user period questions. Date-scoped memory_recall reports searched date buckets, and current-project recall must not mix other project memories unless the user asks for global recall.

Other Clients

Locus is an MCP server, so it can run in Claude Code, Cursor, Windsurf, Cline, Zed, Claude Desktop, and similar clients.

Current maturity:

SurfaceStatus
Codex CLIPrimary validated path
Claude CodeSupported through hooks and shared runtime
Codex desktop / extensionDesktop MCP marker path validated with LOCUS_CODEX_SURFACE=desktop; extension still requires target-surface validation
Cursor / Windsurf / Cline / ZedMCP tools work; passive conversation adapters are future work

Manual MCP fallback:

bash
codex mcp add locus -- node /path/to/locus/dist/server.js

Docs

Development

bash
git clone https://github.com/Magnifico4625/locus.git
cd locus
npm install

npm run check
npm run build

License

MIT — see LICENSE.

Installazione

TypingMind
Prerequisiti:

Node.js 18+

{
  "mcpServers": {
    "magnifico4625-locus": {
      "command": "npx",
      "args": [
        "-y",
        "locus-memory"
      ]
    }
  }
}

Usa Locus MCP con più modelli AI

TypingMind collega gli strumenti MCP a livello di area di lavoro: una volta connesso Locus, puoi usarlo con diversi modelli IA in TypingMind, senza configurarlo separatamente per ogni modello. Questa integrazione MCP viene eseguita localmente sul tuo dispositivo tramite il connettore MCP di TypingMind.

Guida alla configurazione del connettore locale

Usa questo metodo quando il server MCP deve accedere a file locali, app o risorse private sul tuo computer.

1

Apri le impostazioni MCP

In TypingMind, vai su Impostazioni, Impostazioni avanzate, poi su Model Context Protocol e scegli Configura connettore.

  1. Apri TypingMind nel tuo browser.
  2. Fai clic sull'icona Impostazioni.
  3. Vai a Impostazioni avanzate.
  4. Apri la sezione Model Context Protocol.
  5. Fai clic su Configura connettore e scegli Questo dispositivo.
Schermata di configurazione del connettore MCP di TypingMind con l’opzione «Questo dispositivo» selezionata
2

Esegui il comando del connettore

Scegli Questo dispositivo, copia il comando da TypingMind ed eseguilo nel terminale. Lascia il processo in esecuzione mentre usi MCP.

  1. Copia il comando di configurazione mostrato da TypingMind.
  2. Apri Terminale su macOS o Windows Terminal su Windows.
  3. Incolla ed esegui il comando.
  4. Conferma l'installazione del pacchetto se il terminale ti chiede di procedere.
  5. Tieni aperta la finestra del terminale con il processo in esecuzione mentre usi gli strumenti MCP.
3

Aggiungi Locus come server

Quando lo stato del connettore è Pronto, fai clic su Modifica server e incolla la configurazione del server MCP.

  1. Attendi che lo stato del connettore sia Pronto.
  2. Fai clic su Modifica server.
  3. Incolla la configurazione del server MCP di Locus.
  4. Salva l'elenco dei server.
  5. Se vuoi verificare che il connettore sia ancora pronto, aggiorna la pagina.
Impostazioni MCP di TypingMind con un server attivo e il pulsante Modifica server
{
  "mcpServers": {
    "magnifico4625-locus": {
      "command": "npx",
      "args": [
        "-y",
        "locus-memory"
      ]
    }
  }
}
4

Usa la connessione con diversi modelli

Salva l'elenco dei server, apri Plugin, abilita gli strumenti MCP di Locus, poi seleziona un modello IA supportato in TypingMind e usa gli strumenti in chat o assegnali a un agente IA.

  1. Apri la pagina Plugin in TypingMind.
  2. Abilita gli strumenti MCP di Locus.
  3. Avvia una chat e scegli il modello IA che vuoi usare.
  4. Usa gli strumenti MCP in chat o assegnali a un agente IA.
  5. Passa a un altro modello IA quando serve, senza riconnettere MCP.
Chat di TypingMind che usa gli strumenti MCP abilitati con un modello IA selezionato
Puoi usare Locus per aiutarmi con questa attività?
Locus
Certo. L’ho letto.
Ecco cosa ho trovato con Locus.

Domande frequenti

A cosa serve il server MCP Locus?

Locus è un server MCP che consente ai client IA compatibili di accedere a strumenti e informazioni di contesto esterni. In TypingMind puoi aggiungere questo server MCP una sola volta e rendere disponibili i suoi strumenti nella tua area di lavoro IA.

Posso usare il server MCP Locus con più modelli IA in TypingMind?

Sì. TypingMind collega gli strumenti MCP a livello di area di lavoro, quindi puoi usare Locus con diversi modelli IA come Claude, ChatGPT, Gemini o altri modelli che hai configurato in TypingMind, senza dover configurare il server MCP separatamente per ogni modello.

Perché usare il connettore MCP Locus con TypingMind?

TypingMind è una delle migliori interfacce per chattare con gli LLM perché riunisce più modelli IA, prompt, plugin, agenti IA, chiavi API e strumenti MCP in un'unica area di lavoro. Collegando Locus, puoi usare i suoi strumenti MCP con i tuoi modelli preferiti e mantenere organizzato il tuo flusso di lavoro in chat su TypingMind.

Come collego il server MCP Locus a TypingMind?

Locus funziona tramite il connettore MCP locale di TypingMind. È la soluzione ideale quando il server MCP deve accedere a file locali, app desktop, strumenti da riga di comando o risorse private sul tuo computer.

Quali strumenti offre il server MCP Locus in TypingMind?

Locus mette a disposizione funzionalità MCP che puoi attivare dalla pagina Plugin di TypingMind e usare in chat o assegnare agli agenti IA.

Devo condividere le mie chiavi API con TypingMind per usare il server MCP Locus?

No. TypingMind privilegia il funzionamento in locale e ti permette di mantenere il controllo su fornitori di modelli, chiavi API, prompt e configurazione MCP. Se Locus richiede l'autenticazione, aggiungi le intestazioni, le impostazioni OAuth o la configurazione locale necessarie per quel server MCP quando crei la connessione.

Server MCP correlati

Elenco completo

Crea subito il tuo spazio di lavoro AI

Iscriviti alla nostra newsletter per ricevere aggiornamenti sulle nuove funzionalità e sulle prossime iniziative a premi 👇