// Description: Configuration for AI agents in MCP (Multi-Cloud Platform)
export interface MCPAgentConfig {
ci: any;
enableAI: boolean; // Master switch for AI suggestions
defaultAgent: 'none' | 'copilot' | 'openai' | 'custom';
projectOverrides?: Record<string, Partial<MCPAgentConfig>>; // Optional per-project overrides
maxRetries?: number; // Retry AI calls if failed
apiKeys?: {
openai?: string; // Add your OpenAI key
copilot?: string; // Add your Copilot key
custom?: string; // Custom AI endpoint
};
cursorIDEIntegration?: boolean; // Enable Cursor/IDE hints
autoSuggest?: {
hooks?: boolean; // Suggest hooks
pageRenderMode?: boolean; // Suggest page render modes
docs?: boolean; // Suggest documentation links
components?: boolean; // Suggest components
};
uiFramework?: 'tailwind' | 'shadcn' | 'mui' | 'none' | 'auto'; // UI framework for component suggestions
}
export const mcpAgentConfig: MCPAgentConfig = {
enableAI: true,
defaultAgent: 'copilot',
maxRetries: 2,
apiKeys: {
openai: process.env.OPENAI_API_KEY || '',
copilot: process.env.COPILOT_API_KEY || '',
custom: process.env.CUSTOM_AI_API_KEY || '',
},
cursorIDEIntegration: true,
autoSuggest: {
hooks: true,
pageRenderMode: true,
docs: true,
components: true,
},
projectOverrides: {
// Example: override for a specific repo/project
'my-nextjs-app': {
defaultAgent: 'openai',
enableAI: true,
},
},
uiFramework: 'auto',
ci: {
failOnBreakingChange: true,
},
};