mirror of
https://github.com/sbroenne/mcp-server-excel.git
synced 2026-09-19 07:53:08 +08:00
1e996bea6d
* Remove file-based operations and refactor VBA to accept code strings Fixes #190 Changes: - Removed Connection.Import and Connection.UpdateProperties (JSON file-based operations) - Removed DataModel.ExportMeasure (DAX file export) - Refactored VBA Import/Update to accept code strings instead of file paths - Core layer now accepts vbaCode string parameter - CLI layer handles file I/O (reads files and passes code strings) - MCP Server layer accepts vbaCode parameter directly - Deleted PathValidator.cs and removed Security namespace references - Updated all documentation (READMEs, GitHub Pages) to reflect 163 operations (down from 168) Build status: ✅ 0 warnings, 0 errors Breaking changes: - VBA Import/Update signature changed in Core layer (file path → code string) - Connection and DataModel commands removed (file-based operations) * Fix VBA tests to pass code strings instead of file paths The VBA command signature changed to accept code strings directly rather than file paths. Updated all VBA trust tests to pass vbaCode strings instead of creating temporary files and passing file paths. Tests fixed: - ScriptCommands_Import_WithTrustEnabled_WorksCorrectly - ScriptCommands_Export_WithTrustEnabled_WorksCorrectly - ScriptCommands_Run_WithTrustEnabled_WorksCorrectly - ScriptCommands_Delete_WithTrustEnabled_WorksCorrectly - ScriptCommands_View_WithTrustEnabled_WorksCorrectly - ScriptCommands_Update_WithTrustEnabled_WorksCorrectly All 7 VBA tests now pass.