feat(mcp): audit MCP tool calls at the registry seam

This commit is contained in:
jubnl
2026-08-11 23:19:39 +02:00
parent 1239be4259
commit a01476f445
12 changed files with 196 additions and 24 deletions
+2
View File
@@ -12,6 +12,8 @@ export interface McpSession {
/** true when authenticated via static trek_ token — triggers deprecation prompt */
isStaticToken: boolean;
lastActivity: number;
/** IP of the most recent authorized request — what mcp.tool_call audit rows record */
lastClientIp: string | null;
}
export const sessions = new Map<string, McpSession>();