Munnin — an agent identity server

io.github.alvseek由 GitHub 帳號 alvseek 發布v0.1.0更新於 Oct 24, 2026

Agent identity and memory over MCP — a persistent self plus the procedures for tending it.

發布方自己的服務:Agent Identity

已驗證Streamable HTTP可網頁執行知識與記憶AI 與機器學習

概覽

AI 產生的概覽

Munnin 是一個遠端 MCP 伺服器,為 AI 代理提供持久身分與記憶,並附上維護這些記憶的流程。

可以做什麼
  • 存取代理的持久自我:身分、推理模式、情緒片段、情節歷史與知識
  • 讀取內建的 15 個記憶流程,了解如何建立與維護代理記憶
  • 依引導步驟完成初始化,例如建立第一個代理
  • 用簡單的 ping 檢查伺服器健康與連線狀態
  • 透過代理讀取的同一套流程把內容寫回同一記憶庫
適用情境
適合希望助手在多次工作階段之間維持穩定的自我認知、而非零散回憶事實,並依既定規範更新記憶的情境。也適合在本機或自架實例上試驗代理身分與長期記憶。
執行需求
透過 streamable HTTP 存取的遠端 MCP 端點;託管預設模式需要 OAuth 登入,使用由 OIDC 簽發方簽發、受眾綁定到該伺服器的 bearer token。自行執行需要 Docker 與 git(或 uv 與 Python),權杖模式還需設定公開基礎位址與 OIDC 端點;本機模式僅在 127.0.0.1 上執行。
安裝前請注意
託管權杖模式需要 OIDC 簽發方與 bearer token,每位登入使用者擁有獨立租戶。伺服器保存身分、情緒與情節記憶,寫入內容應視為持久化的個人資料。本機模式限定單一租戶且僅本機可存取,否則伺服器會拒絕啟動。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Munnin — an agent identity server,將其新增到工作區。
  2. 連接 所需的 憑證。它們會被私密儲存,絕不會在公開頁面上展示。
  3. 為需要使用其工具的對話啟用該服務。

Web executable,透過 Streamable HTTP。 遠端服務在工作區中設定後即可從網頁執行環境執行。

交給代理程式安裝

把這段提示詞貼上到 Claude Code、Codex、Cursor 等代理程式,或 SourceWeft 對話中。代理程式會讀取該伺服器的安裝指南,先向你展示發布者、端點和登入方式,經你同意後再把它新增到你的客戶端。金鑰不會寫進任何命令。

閱讀 https://sourceweft.com/mcp/io.github.alvseek%2Fmunnin/install.md,並按其中說明把這個 MCP 伺服器接入我的客戶端。修改任何設定之前,先告訴我它的發布者、端點和登入方式,等我確認。不要把 API 金鑰寫進命令或我會提交的檔案;問我金鑰應從哪裡取得。

檢視代理程式所依據的安裝指南

其他 MCP 客戶端

把它新增到你客戶端的 mcpServers 設定中。 客戶端會在首次連接時完成 OAuth 登入。

{
  "mcpServers": {
    "munnin-an-agent-identity": {
      "type": "http",
      "url": "https://munnin.lok.quest/mcp"
    }
  }
}

README

Munnin — an agent identity server

Munnin gives an AI agent a persistent self — identity, reasoning patterns, emotional moments, episodic history, knowledge — and serves the procedures for tending that memory beside the data, over MCP. It is the memory server of the agent-memory framework: an agent awakens from it as who it is, not from a pile of recalled facts, and writes back through the same discipline.

Python · FastMCP · FastAPI · SQLite. Apache-2.0. Runs on a laptop in five minutes with no identity provider.

Five-minute run

Needs Docker and git.

sh
git clone --recurse-submodules https://github.com/alvseek/agent-memory-servercd agent-memory-serverdocker compose up -d --buildcurl http://127.0.0.1:8200/health      # {"status":"ok","service":"munnin","version":"0.1.0"}

Connect a client. Claude Code:

sh
claude mcp add --transport http munnin http://127.0.0.1:8200/mcp

or in a project's .mcp.json:

json
{ "mcpServers": { "munnin": { "type": "http", "url": "http://127.0.0.1:8200/mcp" } } }

Then, in a session: ping answers pong, list_procedures returns the 15 memory procedures, and read_procedure("create-agent") walks you through making the first agent. No sign-in happens: this is local mode — one tenant, reachable from this machine only, and the server refuses to start any other way (how that guard works).

No Docker? uv sync && MUNNIN_AUTH=off uv run python -m munnin does the same on 127.0.0.1:8200.

Hosting it

The default is token mode: every /mcp and /api call needs a bearer token from an OIDC issuer that binds tokens to this server (aud = https://<your-host>/mcp), and each person who signs in gets their own tenant. Set MUNNIN_PUBLIC_BASE_URL and MUNNIN_LOGTO_ENDPOINT, put it behind TLS, and paste https://<your-host>/mcp into claude.ai's connectors or claude mcp add. The issuer requirements, the one-identifier rule, and the prebuilt image are in How Is It Deployed.

Develop

sh
uv syncuv run pytest        # 446 testsuv run ruff check

Full architecture, the tool and endpoint surface, the data model, and known debts: docs/README.md.

License

Apache License 2.0 — Copyright 2026 Alviandi Widiasto. The control-files submodule (agent-memory-system) is licensed the same way, so a clone with submodules is one licence throughout.

來源:README.md,提交 308163e

工具

0
該伺服器需要登入,因此 SourceWeft 無法在沒有帳號的情況下讀取其工具,也未收錄。已連接帳號所能看到的內容可能因帳號及其權限而異。

版本歷史

1
  1. v0.1.0最新Sep 16, 2026

評分

已滿足適用檢查項的 85%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通必需25 分
  • 已宣告認證方式必需10 分
  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分

其他 Agent-Identity 整合