feat: Implement Cross-CLI Sync Panel for MCP servers

- Added CrossCliSyncPanel component for synchronizing MCP servers between Claude and Codex.
- Implemented server selection, copy operations, and result handling.
- Added tests for path mapping on Windows drives.
- Created E2E tests for ask_question Answer Broker functionality.
- Introduced MCP Tools Test Script for validating modified read_file and edit_file tools.
- Updated path_mapper to ensure correct drive formatting on Windows.
- Added .gitignore for ace-tool directory.
This commit is contained in:
catlog22
2026-02-08 23:19:19 +08:00
parent b9b2932f50
commit dfe153778c
24 changed files with 1911 additions and 168 deletions

View File

@@ -0,0 +1,19 @@
from __future__ import annotations
import platform
from pathlib import Path
from codexlens.storage.path_mapper import PathMapper
def test_denormalize_path_windows_drive_is_absolute() -> None:
if platform.system() != "Windows":
return
mapper = PathMapper(index_root=Path("C:/tmp/codexlens_indexes"))
mapped = mapper.denormalize_path("D/Claude_dms3/codex-lens/src")
assert mapped.is_absolute()
assert str(mapped).lower().startswith("d:\\") or str(mapped).lower().startswith("d:/")
assert mapped == Path("D:/Claude_dms3/codex-lens/src")