Skip to main content
Glama

Visum Thinker MCP Server

MIT License
GLOBAL_LAYOUTS_TEST_RESULTS.mdโ€ข5.29 kB
# Test Results - Global Layouts Feature ## โœ… Test Summary **Date:** October 19, 2025 **Status:** All tests PASSED **Visum Version:** PTV Visum 2025 64-bit **Test Project:** S000009result.ver (96237 nodes, 227508 links, 265 zones) --- ## Test 1: List Available Layouts **Command:** ```powershell Get-Content test-list-layouts.json | node build/index.js ``` **Input:** ```json {"method":"tools/call","params":{"name":"project_list_available_layouts","arguments":{"projectId":"S000009result_1278407893"}},"jsonrpc":"2.0","id":11} ``` **Result:** โœ… **PASS** **Output:** ``` ๐Ÿ“‚ Global Layout Files Disponibili ๐Ÿ“ Directory: H:\go\reports\Input ๐Ÿ“Š Totale file .lay: 1 1. tabelle_report.lay ๐Ÿ“ Dimensione: 11.36 MB (11,909,589 bytes) ๐Ÿ“‚ Path: H:\go\reports\Input\tabelle_report.lay ๐Ÿ’ก Uso: Usa project_load_global_layout per caricare uno di questi layout nel progetto. ``` **Performance:** ~1-5ms --- ## Test 2: Load Global Layout **Command:** ```powershell Get-Content test-load-layout.json | node build/index.js ``` **Input:** ```json {"method":"tools/call","params":{"name":"project_load_global_layout","arguments":{"projectId":"S000009result_1278407893","layoutFile":"tabelle_report.lay"}},"jsonrpc":"2.0","id":12} ``` **Result:** โœ… **PASS** **Output:** ``` โœ… Global Layout Caricato ๐Ÿ“‚ File: tabelle_report.lay ๐Ÿ“ Path: H:\go\reports\Input\tabelle_report.lay ๐Ÿ“Š Dimensione: 11.36 MB ๐ŸŽจ Il layout รจ ora attivo nel progetto Visum. ``` **Performance:** ~7 seconds (expected for 11.9 MB file) --- ## Test 3: API Method Discovery **Command:** ```powershell Get-Content test-explore-all-methods.json | node build/index.js ``` **Result:** โœ… **PASS** **Discovered Methods:** ```json { "global_methods": [ "LoadGlobalLayout", "SaveGlobalLayout" ], "layout_methods": [ "LoadGlobalLayout", "LoadQuickViewLayout", "SaveGlobalLayout", "SaveQuickViewLayout" ] } ``` **Key Finding:** `visum.LoadGlobalLayout(path)` is the correct working method. --- ## Test 4: Error Handling - File Not Found **Input:** ```json {"method":"tools/call","params":{"name":"project_load_global_layout","arguments":{"projectId":"S000009result_1278407893","layoutFile":"missing.lay"}},"jsonrpc":"2.0","id":13} ``` **Result:** โœ… **PASS** **Output:** ``` โŒ File non trovato File .lay non trovato: H:\go\reports\Input\missing.lay ๐Ÿ’ก Suggerimento: Usa project_list_available_layouts per vedere i file .lay disponibili. ``` --- ## Test Files Created 1. **test-list-layouts.json** - List available layouts 2. **test-load-layout.json** - Load specific layout 3. **test-explore-all-methods.json** - API method discovery 4. **test-find-lay-files.json** - Filesystem search for .lay files 5. **test-debug-loadlayout.json** - Debug LoadGlobalLayout signature --- ## API Verification ### โœ… Working Methods: - `visum.LoadGlobalLayout(file_path)` - **VERIFIED** - `visum.SaveGlobalLayout(file_path)` - **EXISTS** (not tested) - `visum.GetPath(1)` - **VERIFIED** (1 = .ver file type) ### โŒ Non-Working Methods (Confirmed): - `visum.IO.LoadGlobalLayout()` - Doesn't exist - `visum.Graphics.AssociateGlobalLayoutFile()` - visum.Graphics doesn't exist - `visum.AddGlobalLayout()` - Doesn't exist - `visum.Net.Project.GlobalLayouts` - Collection not accessible - `visum.Project.GlobalLayouts` - Collection not accessible - `visum.GetPath()` - Requires parameter (crashes without it) --- ## Integration Test Results ### Full Workflow Test **Steps:** 1. Open project: `project_open("S000009result.ver")` โœ… 2. List layouts: `project_list_available_layouts` โœ… 3. Load layout: `project_load_global_layout("tabelle_report.lay")` โœ… **Total Time:** ~8-10 seconds - Project open: ~1-2s (if already open) - List layouts: ~1-5ms - Load layout: ~7s **Result:** โœ… **COMPLETE SUCCESS** --- ## Build Status ```powershell npm run build ``` **Result:** โœ… **SUCCESS** - No TypeScript errors **Compiled Files:** - `build/index.js` - Main MCP server - `build/persistent-visum-controller.js` - Visum controller - `build/project-server-manager.js` - TCP server manager --- ## Documentation Created 1. **GLOBAL_LAYOUTS_WORKFLOW.md** - Complete technical guide 2. **CLAUDE_LAYOUTS_GUIDE.md** - Quick reference for Claude 3. **GLOBAL_LAYOUTS_README.md** - Quick start guide 4. **.github/copilot-instructions.md** - Updated with layout tools --- ## MCP Tool Registration **Tools Added:** - `project_list_available_layouts` โœ… - `project_load_global_layout` โœ… **Tools Deprecated:** - `project_list_global_layouts` โš ๏ธ (COM API not accessible) --- ## Known Issues **None** - All tests passing --- ## Recommendations 1. โœ… Use `project_list_available_layouts` for listing 2. โœ… Use `project_load_global_layout` for loading 3. โŒ Don't use deprecated `project_list_global_layouts` 4. โš ๏ธ Inform users loading may take 5-10 seconds for large files --- ## Next Steps (Future Enhancements) - [ ] Add `project_save_global_layout` tool - [ ] Add QuickView layout support - [ ] Add layout metadata extraction - [ ] Add layout preview/description --- **Test Status:** โœ… **ALL TESTS PASSING** **Production Ready:** โœ… **YES** **Tested By:** Visum MCP Server Development **Test Date:** October 19, 2025

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/multiluca2020/visum-thinker-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server