nworks_logout
Remove all saved authentication credentials and tokens for NAVER WORKS to securely end your session.
Instructions
저장된 NAVER WORKS 인증 정보와 토큰을 모두 삭제합니다
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/mcp/tools.ts:1030-1068 (handler)Implementation of the nworks_logout tool, which clears credentials and revokes tokens.
server.tool( "nworks_logout", "저장된 NAVER WORKS 인증 정보와 토큰을 모두 삭제합니다", {}, async () => { try { try { const creds = await loadCredentials(); const token = await loadToken(); const userToken = await loadUserToken(); if (token?.accessToken) { await revokeToken(token.accessToken, creds.clientId, creds.clientSecret); } if (userToken?.refreshToken) { await revokeToken(userToken.refreshToken, creds.clientId, creds.clientSecret); } } catch { // best-effort } await clearCredentials(); return { content: [ { type: "text" as const, text: JSON.stringify({ success: true, message: "인증 정보와 토큰이 모두 삭제되었습니다. 다시 사용하려면 nworks_setup tool로 재설정 후 nworks_login_user로 브라우저 로그인하세요.", }), }, ], }; } catch (err) { return { content: [{ type: "text" as const, text: mcpErrorHint(err) }], isError: true, }; } } );