| 7 | const logger = createLogger({ name: 'mcp:auth' }); |
| 8 | |
| 9 | export interface McpAuthContext { |
| 10 | /** |
| 11 | * Fixed project ID for read clients. |
| 12 | * null for root clients — they can query any project in their organization. |
| 13 | */ |
| 14 | projectId: string | null; |
| 15 | organizationId: string; |
| 16 | clientType: 'read' | 'root'; |
| 17 | } |
| 18 | |
| 19 | export class McpAuthError extends Error { |
| 20 | constructor(message: string) { |
nothing calls this directly
no outgoing calls
no test coverage detected