@rip-user/rls-debugger-mcp
Version:
AI-powered MCP server for debugging Supabase Row Level Security policies with Claude structured outputs
40 lines • 1.18 kB
TypeScript
import { RLSPolicy, PolicyLogicTree } from './types.js';
import { PolicyKnowledge } from './types.js';
export declare class RLSAnalyzer {
private anthropic;
private model;
constructor(apiKey: string, model?: string);
/**
* Analyze RLS policies using Claude with native structured outputs (Nov 14, 2025 API)
*/
analyzeWithStructuredOutput(scenario: string, policies: RLSPolicy[], savedKnowledge: PolicyKnowledge[]): Promise<any>;
/**
* Build the analysis prompt
*/
private buildAnalysisPrompt;
/**
* Compile policy logic tree for a table
*/
compilePolicyLogic(policies: RLSPolicy[], tableName: string): PolicyLogicTree;
/**
* Parse policy details
*/
private parsePolicyDetails;
/**
* Parse a policy condition to extract key information
*/
private parseCondition;
/**
* Extract table references from a condition
*/
private extractTableReferences;
/**
* Extract joins from a condition
*/
private extractJoins;
/**
* Generate decision flow explanation
*/
private generateDecisionFlow;
}
//# sourceMappingURL=analysis.d.ts.map