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.

已验证Streamable HTTP可网页运行知识与记忆安全与监控

概览

AI 生成的概览

面向 AI 助手的托管记忆层,保存带类型、可版本化、可审计且带可验证句柄的事实。

可以做什么
  • 保存、搜索、获取、列出和更新带类型校验的事实
  • 删除事实、查看版本历史并导出已存状态
  • 查看披露审计记录并校验状态的 SHA-256 句柄
  • 以事实而非对话记录保存记忆,发送前会移除密钥
适用场景
适合需要让助手跨会话保留持久且可核查的事实、而不是重放对话记录的场景,也适合需要审计记忆披露记录的情况。
运行要求
通过 HTTP 连接远程 MCP 端点,并在 Authorization 头中携带 StateJar 开发者密钥(Bearer sj_live_…),密钥需在 StateJar 账户中创建;需要能访问托管服务器与 API 的网络。
安装前请注意
需要绑定账户的 StateJar 开发者密钥,通过 Authorization 头发送;服务为托管式并提及付费方案,请先确认价格。工具可写入、更新和删除已存事实,记忆内容会发送到 StateJar 服务器。

安装

在 SourceWeft 中

  1. 打开 控制台中的 StateJar memory,将其添加到工作区。
  2. 连接 所需的 凭据。它们会被私密存储,绝不会在公开页面上展示。
  3. 为需要使用其工具的对话启用该服务。

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

[PyPI] [npm]

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

  1. Make a developer key at https://statejar.com/api-keys and set STATEJAR_API_KEY.
  2. Pick your client:
ClientInstall
Claude Codeclaude plugin marketplace add KING-OF-FLAME/statejar-integrations then claude plugin install statejar@statejar
Codexcodex plugin marketplace add KING-OF-FLAME/statejar-integrations then codex plugin add statejar@statejar
OpenCode"plugin": ["opencode-statejar"] in opencode.json
Hermes Agenthermes plugins install KING-OF-FLAME/statejar-integrations/hermes/statejar --enable
OpenClawopenclaw plugins install openclaw-statejar
Any MCP clientremote MCP server https://statejar.com/mcp, header Authorization: Bearer <key>

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 in claude-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 with hermes plugins install from this repository.
  • OpenClaw memory-slot plugin: openclaw/. npm: openclaw-statejar.
  • Agent skill, for any agent that reads SKILL.md: skills/statejar/.
  • CLI: pip install statejar gives statejar 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:

bash
# Claude Codeclaude mcp add --transport http statejar \  https://statejar.com/mcp \  --header "Authorization: Bearer $STATEJAR_API_KEY"
# Codexcodex mcp add statejar \  --url https://statejar.com/mcp \  --bearer-token-env-var STATEJAR_API_KEY

OpenCode, in opencode.json:

json
{  "mcp": {    "statejar": {      "type": "remote",      "url": "https://statejar.com/mcp",      "oauth": false,      "headers": { "Authorization": "Bearer {env:STATEJAR_API_KEY}" }    }  }}

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

bash
claude plugin marketplace add KING-OF-FLAME/statejar-integrationsclaude plugin install statejar@statejar

See claude-code/README.md.

Codex

bash
codex plugin marketplace add KING-OF-FLAME/statejar-integrationscodex plugin add statejar@statejar

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

bash
hermes plugins install KING-OF-FLAME/statejar-integrations/hermes/statejar --enablehermes memory setup          # choose statejar

See hermes/statejar/README.md.

OpenClaw

bash
openclaw plugins install openclaw-statejaropenclaw statejar init       # the memory slot, autoRecall, autoCapture

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

bash
python -m pytest tests/claude plugin validate ./plugins/statejarclaude plugin validate .

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:

bash
API=http://127.0.0.1:8000/api/v1MCP=http://127.0.0.1:8000/mcp
python e2e/codex_e2e.py --api $API --mcp $MCP --out /tmp/codex-e2epython e2e/claude_code_e2e.py --api $API --mcp $MCP --out /tmp/cc-e2epython e2e/opencode_e2e.py --api $API --mcp $MCP --out /tmp/oc-e2epython e2e/hermes_e2e.py --api $API --out /tmp/hermes-e2epython e2e/openclaw_e2e.py --api $API --out /tmp/openclaw-e2e
  • openclaw_e2e.py needs Node 24.16+.
  • python e2e/openclaw_discovery.py and python e2e/codex_discovery.py show 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.py runs 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
该服务器需要登录,因此 SourceWeft 无法在没有账号的情况下读取其工具,也未收录。已连接账号所能看到的内容可能因账号及其权限而异。

版本历史

1
  1. v1.0.0最新Oct 30, 2026

评分

已满足适用检查项的 85%

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

  • 近 30 天内可连通必需25 分
  • 已声明认证方式必需10 分
  • 已列出工具15 分

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

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