
Lore Context
io.github.Lore-Context由 GitHub 帳號 Lore-Context 發布v0.6.0-alpha.1更新於 Oct 24, 2026
Governed AI-agent memory, Evidence Ledger traces, evals, and portable context tools.
概覽
以 stdio 執行的 MCP 伺服器,將助理代理到 Lore Context API,用於受治理的代理記憶、上下文查詢、評測與唯讀儲存庫圖譜查詢。
- 可以做什麼
- 跨記憶、網頁、儲存庫圖譜與工具軌跡查詢組合上下文,並附上來源資訊
- 透過 Lore API 寫入與管理記憶,包含生命週期與治理狀態
- 在自有資料集上執行檢索評測,並比對多次執行以找出回歸
- 查詢儲存庫圖譜:圖譜查詢、符號上下文、影響分析與變更偵測(唯讀)
- 以可攜交換格式匯出與匯入記憶
- 適用情境
- 當你同時使用一個或多個編碼代理,需要共享且可稽核的記憶、能證明記住了什麼以及是否被使用,或需要檢索評測與儲存庫圖譜作為依據時使用。若只需要原始記憶儲存,一般記憶庫即可。
- 執行需求
- 以 stdio 方式在本機執行,可透過 npx 或已發布的容器映像啟動。需要 LORE_API_URL 指向執行中的 Lore API 執行個體;當該 API 要求驗證時需提供 LORE_API_KEY。自行部署 API 需要 Node.js 22 以上、pnpm,可選 Postgres 16 加 pgvector。僅支援桌面端。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Lore Context,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
Lore Context
The control plane for AI-agent memory, eval, and governance.
Know what every agent remembered, used, and should forget — before memory becomes production risk.
[CI] [License: Apache 2.0] [Version] [DCO] [Node]
Getting Started · Website Quickstart · Benchmark Methodology · API Reference · Architecture · Project Plan · Release Status · Roadmap · Integrations · Deployment · Changelog
🌐 Read this in your language: English · 简体中文 · 繁體中文 · 日本語 · 한국어 · Tiếng Việt · Español · Português · Русский · Türkçe · Deutsch · Français · Italiano · Ελληνικά · Polski · Українська · Bahasa Indonesia
Localized docs may lag the current English release notes; the canonical v2.1
docs are the English README and docs/ set.
What is Lore Context
Lore Context is an open-core control plane for AI-agent memory: it composes context across memory, search, repository graphs, and tool traces; evaluates retrieval quality on your own datasets; routes governance review for sensitive content; and exports memory as a portable interchange format you can move between backends.
It does not try to be another memory database. The unique value is what sits on top of memory:
- Context Query — single endpoint composes memory + web + repo + tool traces, returns a graded context block with provenance.
- Memory Eval — runs Recall@K, Precision@K, MRR, stale-hit-rate, p95 latency on datasets you own; persists runs and diffs them for regression detection.
- Governance Review — six-state lifecycle (
candidate / active / flagged / redacted / superseded / deleted), risk-tag scanning, poisoning heuristics, immutable audit log. - MIF-like Portability — JSON + Markdown export/import preserving
provenance / validity / confidence / source_refs / supersedes / contradicts. Works as a migration format between memory backends. - Repo Graph — deterministic repository indexing (files, symbols, imports, calls, routes, tests) exposed as API routes and read-only MCP tools so agents ground repository answers in a stable project-context contract.
- Multi-Agent Adapter — first-class
agentmemoryintegration with version probe + degraded-mode fallback; clean adapter contract for additional runtimes.
When to use it
Quick Start
For the public website quickstart, see lorecontext.com/quickstart. For full setup (Postgres, Docker Compose, Dashboard, MCP integration), see docs/getting-started.md.
The canonical alpha quickstart is git clone + pnpm quickstart. Lore does
not currently publish or claim a public @lore-context/quickstart npm package.
The MCP stdio server is published separately as
@lore-context/server
for registry and client distribution, and the SDK middleware ships as
@lore-context/sdk-middleware
(npm) and lore-context-middleware (PyPI).
For AI-readable discovery, the website publishes /llms.txt and /llms-full.txt
from public documentation only. The Official MCP Registry entry is published,
and additional distribution drafts live under docs/distribution.
Launch drafts live under docs/launch, and design partner intake
under docs/design-partners. The public benchmark page
is a reproducible methodology and small smoke-run report, not a competitive
benchmark-win claim.
Architecture
The diagram below shows the full open-core plus hosted-production shape. In the public OSS repo, local file/Postgres deployment is supported directly; hosted Google sign-in, AWS SQS workers, private embeddings, billing, and multi-tenant operations are commercial hosted-cloud surfaces.
For detail, see docs/architecture.md.
What's in v2.1.0
v2.1.0 is the Repo Graph API and MCP Tools release. It makes Lore's own
repository graph a first-class agent memory surface: deterministic
TypeScript/JavaScript repository indexing for files, symbols, imports, calls,
routes, tests, and process hints, exposed through API routes and read-only MCP
tools so agents ground repository answers in a stable project-context contract
instead of ad hoc text search.
v2.1.0 is the current open-core source line. The hosted Lore Cloud production
line also runs v2.1.0 on the commercial AWS/Qdrant/private-embedding substrate,
but hosted operations, billing, production release automation, and Secret Vault
runtime stay in Lore-Context/lore-cloud.
See CHANGELOG.md for the full release history.
Current release status
v2.1.0 is the current source, hosted production, and release line. It deployed
to AWS production and the public website through the optimized release flow:
immutable arm64-first artifacts, staging API smoke, production API deploy,
isolated website deploy, post-release audit, and tag/release closure. External
checks confirm https://api.lorecontext.com/health returns status=ok,
/openapi.json reports 2.1.0, and https://lorecontext.com/status.html
contains v2.1.0.
Production keeps the v1.1+ RDS / SQS / memory-worker / Qdrant cloud shape, uses
lore_memories_v12 as the Qdrant collection, keeps 1024-dim pgvector for the
Postgres path, and adds the additive repo graph schema
(apps/api/src/db/schema-v21-repo-graph.sql).
See docs/release-status.md for the current public-safe status snapshot and docs/release-notes/v2.1.0.md for the full release notes.
Release focus
The v2.1 release makes Lore's repository graph a first-class agent memory surface. The goal is to let agents answer "where is X defined", "what calls this", and "what breaks if I change this" against a deterministic, stable project-context contract rather than ad hoc text search:
@lore/repo-graph— deterministic TypeScript/JavaScript repository indexing for files, symbols, imports, calls, routes, tests, and process hints.- API routes:
POST /v1/repo/graph/query,POST /v1/repo/symbol/context,POST /v1/repo/impact, andPOST /v1/repo/detect-changes. - MCP tools:
repo.graph_query,repo.symbol_context,repo.impact, andrepo.detect_changes(read-only). context_query(repo)now uses provider-backed repo graph evidence when available, with an honest unavailable fallback when repo graph storage is not configured.- The repo graph Postgres schema is additive — it sits on top of the existing production schema and is applied during production/staging schema setup.
Root and API package versions report 2.1.0 so /openapi.json matches the
release tag. The release train uses the optimized split API/website deployment
guardrails introduced after v2.0.9.
See docs/project-plan.md, docs/roadmap.md, and docs/release-governance.md.
Integrations
Lore Context speaks MCP and REST and integrates with most agent IDEs and chat frontends:
Deployment
All deployment paths require explicit secrets. Local/private paths require
POSTGRES_PASSWORD, LORE_API_KEYS, and dashboard auth. Hosted deployments also
need RDS, SQS, Qdrant, embedding-service, OAuth, tunnel configuration, and the
production runtime exports. The scripts/check-env.mjs script refuses production
startup if any value matches a placeholder pattern.
Security
v2.1.0 keeps the local/private deployment posture and the hosted cloud guardrails for ordinary-user access:
- Authentication: API-key bearer tokens with role separation (
reader/writer/admin) and per-project scoping. Empty-keys mode fails closed in production. - Rate limiting: per-IP + per-key dual bucket with auth-failure backoff (429 after 5 fails in 60s, 30s lockout).
- Dashboard: Google session flow for the hosted product; HTTP Basic Auth remains available for local/private operator deployments.
- Containers: all Dockerfiles run as non-root
nodeuser; HEALTHCHECK on api + dashboard. - Secrets: zero hardcoded credentials; all defaults are required-or-fail variables.
scripts/check-env.mjsrejects placeholder values in production. - Governance: PII / API key / JWT / private-key regex scanning on writes; risk-tagged content auto-routed to review queue; immutable audit log on every state transition.
- Memory poisoning: heuristic detection on consensus + imperative-verb patterns.
- MCP: zod schema validation on every tool input; mutating tools require
reason(≥8 chars) and surfacedestructiveHint: true; upstream errors sanitized before client return. - Worker isolation: capture, embedding, graph, connector, and backfill jobs run through AWS SQS queues with DLQs; Qdrant is a derived index and RDS remains authoritative.
- Logging: structured JSON with auto-redaction of
content,query,memory,value,password,secret,token,keyfields.
Vulnerability disclosures: SECURITY.md.
Project structure
Requirements
- Node.js
>=22 - pnpm
10.30.1 - (Optional local fallback) Postgres 16 with pgvector
- (Hosted/advanced) RDS PostgreSQL 16, AWS SQS, Qdrant, and private embedding service
Contributing
Contributions are welcome. Please read CONTRIBUTING.md for the development workflow, commit message protocol, and review expectations.
For documentation translations, see the i18n contributor guide.
Operated by
Lore Context is operated by REDLAND PTE. LTD. (Singapore, UEN 202304648K). Company profile, legal terms, and data handling are documented under docs/legal/.
License
The Lore Context repository is licensed under Apache License 2.0. Individual packages under packages/* declare MIT to enable downstream consumption. See NOTICE for upstream attribution.
Acknowledgments
Lore Context builds on top of agentmemory as a local memory runtime. Upstream contract details and version-compatibility policy are documented in UPSTREAM.md.
來源:README.md,提交 3dafa7b
工具
0版本歷史
1- v0.6.0-alpha.1最新Sep 16, 2026
評分
已滿足適用檢查項的 40%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分
請在儲存庫或註冊中心條目中宣告授權條款。