⚠️ Breaking Change / 不兼容变更
HTTP/SSE transport now requires API_TOKEN to start.
Previously, leaving API_TOKEN empty silently disabled authentication,
exposing the memory API to anyone on the same network.
以前 API_TOKEN 留空会静默关闭认证,导致同局域网内任何人都能访问记忆 API。
现在 HTTP/SSE 模式启动时必须设置 API_TOKEN。
Migration / 迁移步骤
- Generate a token / 生成令牌:
python -c "import secrets; print(secrets.token_urlsafe(32))" - Add to
.env/ 写入.env:
API_TOKEN= - Update MCP client config / 更新客户端配置:
{
"headers": {
"Authorization": "Bearer <your-token>"
}
}
stdio mode (local MCP) is not affected.
本地 stdio 模式不受影响。
Full Changelog: https://github.com/Dataojitori/nocturne_memory/compare/2.4.0...2.4.1