feat: 更新 Code Index MCP 提供者支持,修改 CLAUDE.md 和相关样式

This commit is contained in:
catlog22
2025-12-25 20:12:45 +08:00
parent 203100431b
commit 6894c7e80b
7 changed files with 91 additions and 37 deletions

View File

@@ -776,7 +776,9 @@ async function setCodeIndexMcpProvider(provider) {
window.claudeCliToolsConfig.settings.codeIndexMcp = provider;
}
showRefreshToast(`Code Index MCP switched to ${provider === 'ace' ? 'ACE (Augment)' : 'CodexLens'}`, 'success');
renderCliStatus();
// Re-render both CLI status and settings section
if (typeof renderCliStatus === 'function') renderCliStatus();
if (typeof renderCliSettingsSection === 'function') renderCliSettingsSection();
} else {
const data = await response.json();
showRefreshToast(`Failed to switch Code Index MCP: ${data.error}`, 'error');