Willder
ai.willder由 willder.ai 发布官方发布者v0.1.0更新于 Nov 6, 2026
One memory for your AI agents: scoped, expiring, revocable per-agent tokens and an audit log.
概览
Willder 是为 AI 智能体提供共享记忆的 MCP 服务:每个智能体使用独立、有范围、会过期的令牌读写事实,并留有审计日志。
- 可以做什么
- 按名称和内容写入事实,并返回版本号供后续更新使用
- 按词语、语义和图谱关联查询记忆,结果附带写入时间与写入者
- 在任务开始时获取该范围的规则、决策与近期写入摘要,按任务词语排序
- 把 GitHub、Google Drive、Slack、Figma、PostHog 等来源同步到指定范围
- 记录来源、版本、冲突,以及读取、写入和拒绝的审计日志
- 适用场景
- 适合多个智能体(例如代码智能体、研究智能体、副项目智能体)处理真实任务时共享事实、在下一次调用中看到彼此的改动,并按范围隔离、按智能体控制访问。
- 运行要求
- 托管服务是远程端点,需在 Authorization 头中携带 bearer 能力令牌,令牌在网页端按智能体签发且只显示一次。自托管则需 Docker 与 Compose v2、Node 20.19+、22.12+ 或 24+、数 GB 磁盘、带 pgvector 的 Postgres、Neo4j 和嵌入模型;写入时可选配 OpenAI 兼容的抽取模型密钥。仅支持 OAuth 的客户端目前无法连接。
安装
在 SourceWeft 中
- 打开 控制台中的 Willder,将其添加到工作区。
- 连接 Authorization token 凭据。它们会被私密存储,绝不会在公开页面上展示。
- 为需要使用其工具的对话启用该服务。
Web executable,通过 Streamable HTTP。 远程服务在工作区中配置后即可从网页运行时运行。
交给智能体安装
把这段提示词粘贴到 Claude Code、Codex、Cursor 等智能体,或 SourceWeft 对话中。智能体会读取该服务器的安装指南,先向你展示发布者、端点和登录方式,经你同意后再把它添加到你的客户端。密钥不会写进任何命令。
阅读 https://sourceweft.com/mcp/ai.willder%2Fwillder/install.md,并按其中说明把这个 MCP 服务器接入我的客户端。修改任何配置之前,先告诉我它的发布者、端点和登录方式,等我确认。不要把 API 密钥写进命令或我会提交的文件;问我密钥应从哪里获取。其他 MCP 客户端
把它添加到你客户端的 mcpServers 配置中。
{
"mcpServers": {
"willder": {
"type": "http",
"url": "https://willder.ai/api/mcp",
"headers": {
"Authorization": "Bearer <YOUR_TOKEN>"
}
}
}
}README
Willder
Apps, Agents, Teams Synced.
Willder is a context layer that syncs your apps, agents and teams, with access control on every call and real-time coordination: what one agent writes, the others read on their next call. Each agent holds its own scoped, expiring token; its memory reads and writes pass one check and land in the audit log; revoke a token and its next call is refused. Connect your Claude Code or Cursor agent over MCP in five minutes.
[MIT license] [Latest release] [MCP server] [Discussions]
Website · Docs · Architecture · Connect a client · Discussions
What it does
- The right context, unasked. At the start of a task an agent gets a short brief of what matters for it: the scope's rules, decisions and recent writes, ranked by the task's words. Queries search by words, by meaning and by links in the graph. Task-start briefs, hybrid retrieval.
- One memory across every agent. What Claude Code saves, Codex reads on its next call, with who wrote it. Change a fact once and every agent reads the new version. Versions and conflicts.
- Connectors into scopes. GitHub, Google Drive, Slack, Figma and PostHog sync into a scope you choose, under that scope's rules. services/connectors/.
- Access control. Each agent holds its own scoped, expiring token. Its memory reads and writes pass one check and land in the audit log; a revoked token is refused on its next call. What the check does not cover is listed under Limits. The single check.
- Set up in minutes. One command connects Claude Code; Codex, Cursor and other clients have a page each. Connect a client.
- Memory you can see. Every fact keeps who wrote it, where it came from, what it replaced and which agents first read it. Audit and provenance.
How it works
Deep dives: architecture, hybrid retrieval, conflict resolution, database, API, export format, self-hosting.
Why
You run several agents on real work: a coding agent in the repo, a research agent on a schedule, a side project's agent. Nothing decides what each may see, tells the others when one changes something, or records what was read. Willder is the memory they share and the fence between them: scopes, per-agent tokens, a change feed and an audit, with no model in any access decision.
Run it on your machine
This repository is the engine: Postgres with pgvector, Neo4j, the memory service and the MCP server. It runs on your own machine with no willder.ai account and no call to willder.ai. You need Docker with Compose v2, Node 20.19+, 22.12+ or 24+, and a few GB of disk. Without Docker, docs/self-host.md says what to run instead.
The smoke ends with 9 of 9 steps passed. docs/self-host.md describes each
line it prints and what to do when one fails.
Mint a token for your agent. One per agent, scoped and expiring:
It prints a wcap_... token once. Put it in an environment variable and nowhere else:
Connect Claude Code to the local stdio MCP server, from this directory:
Then tell the agent: Save this to Willder: we store sessions in Postgres, not Redis, so they survive a restart. Then ask Willder where we store sessions and why.
It calls memory_ingest with two required arguments, content (the fact) and name (what the
fact is about), and gets back the id a later update passes as baseVersion:
Then it calls memory_query, which returns one bullet per fact with when and who wrote it (an
agent that has only a token is named by it, quoted), notes on what its grant let it read, and the
answer's revision:
A token for another scope (npm run selfhost:token -- --scope research --agent second-agent)
gets No facts found. for the same question. Other clients: docs/connect/;
the stdio server and its tools: mcp/README.md.
The engine calls out to one thing at most, and only if you configure it: an OpenAI-compatible model endpoint that extracts facts on writes (a local server works; without one a write is still stored and readable, and only graph extraction is skipped). The web app is optional: it needs a free Clerk development instance to sign people in, and docs/self-host.md lists the other outside calls it makes. An export is one JSON Lines file in a documented format: docs/export-format.md.
Prefer not to run it? The hosted service at willder.ai runs the same engine: docs/quickstart.md.
Prove it does not leak
Two checks, about ten minutes, and neither needs an account. The second revokes the
claude-code token from Run it on your machine (any token you are
willing to revoke works).
1. Run the leak suite. From a fresh clone, with Node 20.19, 22.12 or 24:
Installing takes about a minute; the suite runs in seconds with no keys and no network. It
is every test file named *eval.test.ts, *leak.test.ts or *leakage.test.ts: check(),
the guarded memory reads and the MCP tool bodies run for real, and only the database and
memory backends are stubbed. A pass ends with no failed file. One file,
app/api/briefs/staleness-scope-leak.test.ts, reports as skipped unless QA_DATABASE_URL
names a test Postgres (docs/development.md). The suite asserts that:
- a token scoped to one team never receives a sibling scope's facts, graph nodes, uploaded files or briefs, and the in-scope token still does, so an over-broad filter fails too;
- a revoked or expired token is refused on every memory tool over the real MCP endpoint;
- a call without a real caller identity is denied, never audited under a stand-in actor;
- the account tier can narrow a read and never widen one;
- the same holds with thousands of facts and concurrent callers, and a backend failure is reported as a failure, not as an empty answer.
A few cases are named GAP:. They pass by pinning a known defect, and each one says what
the correct behaviour is. The suite proves the code; step 2 proves the running service.
2. Revoke a token and see its next call refused. Revoke the agent's token from the terminal:
It prints each token it revoked by id, scope, permission and expiry, never the token, and nothing waits for the token to expire. What the agent sees next depends on how it connects:
- A stdio MCP server already running, like the
claude mcp addconnection above: it keeps listing its tools, but every memory call after the revoke is refused and nothing is read or written. Memory tools answerAccess denied: no valid capability for agent claude-code granting read(orwrite)on the target scope …, and each refusal is a deny row in the audit log under the call's own action (memory.read,memory.writeormemory.entity). - A stdio MCP server started with the revoked token exits before connecting, with
WILLDER_CAPABILITY_TOKEN is not a live token in this database (unknown, expired or revoked), and records acapability.refusedrow. - Over HTTP, the web app's
/api/mcporhttps://willder.ai/api/mcpon the hosted service, the next call getsHTTP 401withInvalid or unknown capability token.and acapability.refuseddeny row for that agent.
npm run selfhost:export holds every one of those refusals as audit lines.
Measured on the hosted service
Measured with dates: the first three rows on the hosted service at willder.ai, the setup row in a clean container. The harness that produced them is not in this repository. Implementation is not proof, and nothing here is a guaranteed latency.
Audit rows are evidence of access decisions, not proof that an answer is correct. The
code-level leak claims are reproduced without an account by npm run test:leaks
(Prove it does not leak).
Limits
Each line names the file that makes it true.
- Who can see what is decided by
check()in the application, not by the database. No row-level security is enabled (no migration inprisma/migrations/creates a policy), so the credentials listed in the next section reach memory withoutcheck(). - Source permissions do not carry over. A connected source takes the access of the
scope it lands in, not its own sharing list. Connecting asks you to acknowledge any
widening, people and agents both, before it goes ahead
(
services/access/source-widening.ts). - Conflicting writes are detected and notified, nothing more. When two agents write the
same fact in one scope within one second, the version stored first stays current, the
later one is recorded as superseded, and its writer is told on its next tool call. Both
versions stay readable (
services/memory/conflict.ts,mcp/README.md). - No cost saving is claimed. No measure of tokens per run has run on a deployed commit.
- Connectors read, with one write. GitHub, Google Drive, Slack, Figma, PostHog and
websites today (
SourceTypeinprisma/schema.prisma); no Linear connector. The one write into a connected tool is exporting a brief as a new Google Doc in the org's connected Drive (POST /api/briefs/[id]/export-doc,createGoogleDocinservices/connectors/gdrive.ts). Nothing else writes back to a connected tool (services/connectors/source-readers.ts). - The memory service needs Neo4j and a local embedding model (about 130 MB), plus an
extraction model key to write. Reads work without a model key
(
memory-service/README.md,memory-service/app/config.py). - OAuth-only clients cannot connect yet. claude.ai and ChatGPT sign in with OAuth, which
is built but off until
MCP_OAUTH_ENABLEDis turned on in production (mcp/oauth-discovery.ts); until then hosted MCP needs a client that sends the bearer header. - MCP has no delete tool. A fact is replaced with
memory_ingestandbaseVersion; deleting one goes through the app (mcp/tools/,mcp/README.md). - The Starter account tier returns no facts. It allows only the
sourceandfilesstores, and memory search reads only the graph and vector stores (services/memory/account-tiers.ts,services/memory/hybrid-store.ts).
Credentials that bypass the authorizer
Memory in Postgres is read and written through check() in services/access/check.ts.
The lint gate eslint/eslint.memory-access.mjs enforces this in code: a query against a memory
table (a model marked @memory in prisma/schema.prisma) outside services/access and
services/memory fails npm run scope-gate:check in CI, and no eslint-disable comment
can silence it there. The gate does not cover the memory
graph: a few routes and jobs still write it through the unguarded memory store export
rather than guardedMemory, and the gate does not see those calls. The authorizer runs
inside the application, so a person holding one of these credentials can reach memory
without it.
Credentials that act as someone through the authorizer are not on this list, because
check() still decides what they can do: capability tokens, a Clerk session, and
CLERK_SECRET_KEY (which can sign in as any user). Revoking or narrowing those works as
described above. Rotating one of the credentials in the table is the only way to cut off
whoever holds it.
npm run bypass-credentials:check (scripts/check-bypass-credentials.mjs) keeps this
table honest: it fails when the code or .env.example reads a credential that is neither
listed here nor recorded there with the reason it does not reach memory.
Reference
- docs/self-host.md: every self-host step, tokens, revoking, export, refusals, no Docker.
- mcp/README.md: tools, permissions, the local stdio server.
- docs/development.md: the web app and local development.
- docs/willder_api.md: the route map.
- docs/architecture.md: the architecture, with diagrams and measured numbers.
- docs/README.md: every document in this repository, one line each.
Contributing and security
CONTRIBUTING.md covers tests, lint and what a PR needs. Report a vulnerability per SECURITY.md, not in a public issue.
MIT, see LICENSE.
来源:README.md,提交 48794d1
工具
0版本历史
1- v0.1.0最新Oct 30, 2026
评分
已满足适用检查项的 85%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通必需25 分
- 已声明认证方式必需10 分
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分
