
StateJar memory
com.statejar由 statejar.com 发布官方发布者v1.0.0更新于 Oct 30, 2026
Verifiable memory for AI assistants: typed facts, content-addressed versions and an audit trail.
概览
面向 AI 助手的托管记忆层,保存带类型、可版本化、可审计且带可验证句柄的事实。
- 可以做什么
- 保存、搜索、获取、列出和更新带类型校验的事实
- 删除事实、查看版本历史并导出已存状态
- 查看披露审计记录并校验状态的 SHA-256 句柄
- 以事实而非对话记录保存记忆,发送前会移除密钥
- 适用场景
- 适合需要让助手跨会话保留持久且可核查的事实、而不是重放对话记录的场景,也适合需要审计记忆披露记录的情况。
- 运行要求
- 通过 HTTP 连接远程 MCP 端点,并在 Authorization 头中携带 StateJar 开发者密钥(Bearer sj_live_…),密钥需在 StateJar 账户中创建;需要能访问托管服务器与 API 的网络。
安装
在 SourceWeft 中
- 打开 控制台中的 StateJar memory,将其添加到工作区。
- 连接 所需的 凭据。它们会被私密存储,绝不会在公开页面上展示。
- 为需要使用其工具的对话启用该服务。
Web executable,通过 Streamable HTTP。 远程服务在工作区中配置后即可从网页运行时运行。
交给智能体安装
把这段提示词粘贴到 Claude Code、Codex、Cursor 等智能体,或 SourceWeft 对话中。智能体会读取该服务器的安装指南,先向你展示发布者、端点和登录方式,经你同意后再把它添加到你的客户端。密钥不会写进任何命令。
阅读 https://sourceweft.com/mcp/com.statejar%2Fmemory/install.md,并按其中说明把这个 MCP 服务器接入我的客户端。修改任何配置之前,先告诉我它的发布者、端点和登录方式,等我确认。不要把 API 密钥写进命令或我会提交的文件;问我密钥应从哪里获取。其他 MCP 客户端
把它添加到你客户端的 mcpServers 配置中。 客户端会在首次连接时完成 OAuth 登录。
{
"mcpServers": {
"statejar-memory": {
"type": "http",
"url": "https://statejar.com/mcp"
}
}
}README
StateJar integrations: memory your AI agents can trust
statejar.com · Docs · Blog · Pricing
Client code that connects AI coding agents and assistants to StateJar, a memory layer that
keeps facts instead of transcripts. Each value is checked by its type (a value that fails is refused, with a reason),
every change is a new version with the old one kept in history, an assistant gets only the facts a question needs,
every disclosure is audited, and each state has a verifiable handle (shm_…, the SHA-256 of the canonical state).
Quick start
- Make a developer key at https://statejar.com/api-keys and set
STATEJAR_API_KEY. - Pick your client:
Details for each are below.
What is here
- Hosted MCP server, for any client that speaks MCP over HTTP:
https://statejar.com/mcp(live). - Claude Code plugin:
plugins/statejar/; guide inclaude-code/. Marketplace: this repository. - Codex plugin (the same plugin): guide in
codex/. Marketplace: this repository. - OpenCode plugin:
opencode/. npm:opencode-statejar. - Hermes Agent memory provider (
memory.provider: statejar):hermes/statejar/. Install withhermes plugins installfrom this repository. - OpenClaw memory-slot plugin:
openclaw/. npm:openclaw-statejar. - Agent skill, for any agent that reads
SKILL.md:skills/statejar/. - CLI:
pip install statejargivesstatejar login,init,add,search,list,forget,export,status.
Every integration uses a StateJar developer key (https://statejar.com/api-keys), scoped to your account. None of them stores a transcript. Each removes secrets before anything is sent.
Availability. Recall and capture call StateJar's REST API at https://api.statejar.com. The plugins' StateJar
tools use the hosted MCP server at https://statejar.com/mcp. Both are live.
Any MCP client
Make a developer key at https://statejar.com/api-keys and put it in STATEJAR_API_KEY. Then:
OpenCode, in opencode.json:
Any other client: a remote (HTTP) MCP server at https://statejar.com/mcp with the header
Authorization: Bearer <your key>. The ten tools are remember, search, get, list, update, delete,
history, audit, verify and export.
Claude Code
Codex
Then trust the plugin's hooks with /hooks. See codex/README.md.
OpenCode
Add "plugin": ["opencode-statejar"] and StateJar's MCP server to opencode.json. See
opencode/README.md.
Hermes Agent
See hermes/statejar/README.md.
OpenClaw
See openclaw/README.md.
Agent skill
Copy skills/statejar/ into your agent's skills folder (for Claude Code, ~/.claude/skills/). See
skills/README.md.
Tests
End to end, against a local or staging StateJar (never production): a fact stated in one session of the real client
is recalled in a fresh one, through the hooks and through StateJar's MCP tools. Each run makes a throwaway account and
deletes it. With no model on the machine, a scripted stand-in (e2e/scripted_model.py) answers "OK" or calls
StateJar's search and repeats its output verbatim; codex_e2e.py --model ollama:<name> uses a real local model.
Each script takes the API (and, where it uses MCP, the MCP URL) of a local or staging server, and an output folder:
openclaw_e2e.pyneeds Node 24.16+.python e2e/openclaw_discovery.pyandpython e2e/codex_discovery.pyshow what OpenClaw and Codex themselves load from the plugin (no model, no StateJar).HERMES_PYTHON=/path/to/hermes/venv/bin/python python -m pytest tests/test_hermes_provider.pyruns the provider test with Hermes's own loader.
Licence
MIT (see LICENSE). The StateJar service these clients talk to has its own terms: https://statejar.com/terms.
来源:README.md,提交 33a3226
工具
0版本历史
1- v1.0.0最新Oct 30, 2026
评分
已满足适用检查项的 85%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通必需25 分
- 已声明认证方式必需10 分
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分