import { AsyncLocalStorage } from 'async_hooks';

/**
 * Per-request context storage for passing authenticated userId
 * from Express middleware to MCP tool handlers.
 */
export const requestContext = new AsyncLocalStorage();
