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 分