Elen

com.learningnodes由 learningnodes.com 发布v0.3.1更新于 Nov 4, 2026

Records coding-agent decisions with their limits and marks old ones superseded. Local SQLite.

已验证STDIO仅桌面知识与记忆开发者工具

概览

AI 生成的概览

Elen 把编码代理做出的技术决策连同其约束记录到本地 SQLite 决策图中,并让助手之后检索、展开和取代这些决策。

可以做什么
  • 提交和记录决策及其约束、证据与结论
  • 检索既往决策的简短指针,并按决策 ID 展开完整约束与正文
  • 搜索已验证决策中的先例,连接模式下还可搜索团队与人工决策
  • 修订旧决策并将其标记为被新决策取代
  • 查看按领域分组的活跃决策线索、能力画像、合并建议与数据库状态
适用场景
适合希望编码代理在做新技术决策前先查既有先例、并长期保留决策理由与边界的项目。对跨会话需要沿用先例和约束的长期项目尤其有用。
运行要求
通过 npx 以 stdio 方式本地运行 npm 包 @learningnodes/elen-mcp,需要 Node.js 和支持 MCP 的客户端(如 Claude Code、Cursor、VS Code、Gemini CLI)。决策保存在本地 SQLite 文件中,默认位于用户主目录下。可选的连接模式需要 Elen 登录和 API 密钥。
安装前请注意
该服务器会写入并修订本地 SQLite 数据库中的记录,取代操作会改变既有决策的状态。连接模式处于测试阶段,需要 API 密钥,并会把决策共享到工作区,团队与外部决策来自他人。README 说明仅 Claude Code 有维护者实际运行记录,其他客户端配置尚未验证。项目采用 AGPL-3.0 许可,README 中链接了商业工作区。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Elen,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

Elen is an open-source MCP server that records the decisions your coding agent makes, with the limits that bound them, and marks old decisions as superseded. It installs with one npx line, works with Cursor, Claude Code and any MCP client, and keeps decisions in a local SQLite file.

Install

bash
npx -y @learningnodes/[email protected]

Claude Code

bash
claude mcp add --transport stdio elen -- npx -y @learningnodes/[email protected]

VS Code

Open this link to install:

vscode:mcp/install?%7B%22name%22%3A%22elen%22%2C%22command%22%3A%22npx%22%2C%22args%22%3A%5B%22-y%22%2C%22%40learningnodes%2Felen-mcp%400.3.1%22%5D%7D

Cursor

Add this to .cursor/mcp.json in your project:

json
{  "mcpServers": {    "elen": {      "command": "npx",      "args": ["-y", "@learningnodes/[email protected]"]    }  }}

Gemini CLI

Add this to settings.json (~/.gemini/settings.json, or .gemini/settings.json in your project):

json
{  "mcpServers": {    "elen": {      "command": "npx",      "args": ["-y", "@learningnodes/[email protected]"]    }  }}

Any other MCP client

Use the same mcpServers entry:

json
{  "mcpServers": {    "elen": {      "command": "npx",      "args": ["-y", "@learningnodes/[email protected]"]    }  }}

Tested with

ClientStatus
Claude CodeRun by the maintainer
CursorConfiguration follows the client's documentation. Not yet recorded as tested.
VS CodeConfiguration follows the client's documentation. Not yet recorded as tested.
Gemini CLIConfiguration follows the client's documentation. Not yet recorded as tested.
Other MCP clientsConfiguration follows the client's documentation. Not yet recorded as tested.

Make your agent use it

The tools alone give an agent no habit: it sees what each tool does, but it does not stop mid-task to ask whether a precedent exists. Add the block below to your rules file or system prompt so that searching before a decision and committing after one become part of every session.

markdown
# Epistemic Decision Memory Protocol
You must adhere to the Minimal Token Protocol for decisions:
1. Pointer-First Retrieval: Before making a technical decision, ALWAYS use elen_suggest to retrieve Top-K minimal pointers.2. On-Demand Expansion: If a pointer looks relevant, you MUST call elen_expand on that specific ID. Do not hallucinate constraints.3. Commiting Atoms: When deciding, use elen_commit. Summarize constraints into plain-text arrays (e.g. "budget < 500ms").4. Graph Revision: If a decision invalidates a precedent, you MUST use elen_supersede to advance the graph state.

What it stores

In local mode decisions stay in a SQLite file on your machine (default ~/.elen/decisions.db). Connected mode is optional, needs elen login and an API key, and is in beta.

Tools

ToolWhat it does
elen_commitCommits a new decision to the graph, with its constraints as a plain-text list.
elen_get_competencyShows the competency profile for this agent, built from its validated decision history.
elen_consolidateSuggests clusters and duplicate or stale candidates without changing the graph.
elen_get_contextGives an overview of active decision threads grouped by domain, for the start of a session.
elen_expandExpands a decision ID into its full constraints and text.
elen_incomingLists decisions other people have shared into your workspace. Connected mode, beta.
elen_log_decisionCreates a validated Decision Record from constraints, evidence and an answer.
elen_search_precedentsSearches validated decisions for precedents.
elen_statusReturns the agent, project, database path and counts, to check the namespace before committing.
elen_suggestRetrieves short pointers to prior decisions before you make a new one.
elen_supersedeRevises an older decision and marks it superseded by a new one.
elen_team_searchSearches team and human decisions visible to your workspace for a topic. Connected mode, beta.

Links

Elen is the open-source part of Learning Nodes, the DecisionOps workspace. For the business decisions behind the code: https://workstation.learningnodes.com?utm_source=elen-readme&utm_medium=referral&utm_campaign=npm-page

来源:packages/mcp-server/README.md,提交 6ed6c0f

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

1
  1. v0.3.1最新Oct 14, 2026

评分

已满足适用检查项的 50%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分