登出(清除登录态)
noy_logoutClears the locally saved login session and invalidates the current process so all tools require re-login; set revoke=true to also revoke the server-side session.
Instructions
清除本地保存的登录态(~/.noyacg-mcp/session.json)并让当前进程立即失效,之后所有工具会要求重新登录。
默认只清本地:服务端的会话仍然有效(其它设备不受影响,同一个 cookie 复制走还能用)。
revoke=true 会额外调用 /api/logout 吊销服务端会话——这是不可逆的,之后必须重新登录。
注意:如果登录态来自环境变量 NOY_SESSION,本工具清不掉它,需要用户自己改 MCP 配置。
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "noy_logout"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| revoke | No | 是否同时吊销服务端会话(不可逆,会影响其它设备上的同一 cookie) |