Skip to main content

revoke_mcp_token

Function revoke_mcp_token 

Source
pub async fn revoke_mcp_token(id: String) -> Result<(), ServerFnError>
Expand description

撤销令牌(软删除:置 revoked_at = now(),行保留以备审计)。

找不到或非本人令牌 → 静默无操作(不报错,避免探测)。仅 admin。

§Handler information

  • Method: post
  • Path: <auto>