fix(server): import MCP session revocation from sessionManager, not the mcp barrel

This commit is contained in:
jubnl
2026-07-26 20:34:21 +02:00
parent 41b51849b7
commit efd0e7fa98
2 changed files with 8 additions and 2 deletions
+4 -1
View File
@@ -2,7 +2,10 @@ import { ADDON_IDS } from '../addons';
import { readEnv } from '../app-config';
import { updateJwtSecret } from '../config';
import { db } from '../db/database';
import { revokeUserSessions, revokeUserSessionsForClient } from '../mcp';
// Import from sessionManager directly, NOT the ../mcp barrel: the barrel pulls
// the whole tools fan-out (and via the domain bridges, the Nest services) into
// every consumer of this module — a services→mcp→nest module cycle.
import { revokeUserSessions, revokeUserSessionsForClient } from '../mcp/sessionManager';
import { emitUserDeleted } from '../plugin-user-lifecycle';
import { User, Addon } from '../types';
import { maybe_encrypt_api_key, decrypt_api_key } from './apiKeyCrypto';
+4 -1
View File
@@ -14,7 +14,10 @@ import { encryptMfaSecret, decryptMfaSecret } from './mfaCrypto';
import { getAllPermissions } from './permissions';
import { decrypt_api_key, maybe_encrypt_api_key, encrypt_api_key } from './apiKeyCrypto';
import { createEphemeralToken } from './ephemeralTokens';
import { revokeUserSessions } from '../mcp';
// Import from sessionManager directly, NOT the ../mcp barrel: the barrel pulls
// the whole tools fan-out (and via the domain bridges, the Nest services) into
// every consumer of this module — a services→mcp→nest module cycle.
import { revokeUserSessions } from '../mcp/sessionManager';
import { startTripReminders } from '../scheduler';
import { deleteUserCompletely } from './userCleanupService';
import { emitUserDeleted } from '../plugin-user-lifecycle';