[mcp-oauth] MCP token TTL 用戶可調(console 設定頁 → 存 KBDB → /token 發 token 讀 per-owner,回退 30 天) #19
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
動機
PR #15(arcrun-mcp OAuth 2.1 server)目前 access_token TTL 用單一 env
MCP_TOKEN_TTL(預設 30 天)。TTL 是風險偏好,應交用戶決定(對齊 low-code GUI「決定權在用戶」原則):預設 30 天,覺得危險可自行縮短(如 7 天)。本 issue 追蹤「per-owner 可調」。規格
POST /token發 token 時:routes.ts的tokenTtl(env)擴充成先查 owner 設定)。邊界
相關檔案
mcp/src/oauth/routes.ts(tokenTtl()//tokenhandler)mcp/OAUTH.md§5(TTL 取捨)來源:PR #15 leo review 第 3 點補充拍板。