Skip to main content
Glama

Visum Thinker MCP Server

MIT License
test-find-lay-files.jsonโ€ข2.15 kB
{"method":"tools/call","params":{"name":"project_execute","arguments":{"projectId":"S000009result_1278407893","code":"# Cerca Global Layouts in modi alternativi\nimport os\ntry:\n result = {}\n \n # 1. Verifica directory del progetto per file .lay\n project_path = r'H:\\go\\reports\\Input\\S000009result.ver'\n project_dir = os.path.dirname(project_path)\n \n lay_files = []\n if os.path.exists(project_dir):\n for file in os.listdir(project_dir):\n if file.endswith('.lay'):\n lay_files.append({\n 'filename': file,\n 'path': os.path.join(project_dir, file),\n 'size': os.path.getsize(os.path.join(project_dir, file))\n })\n \n result['lay_files_in_directory'] = lay_files\n \n # 2. Cerca attraverso Visum.IO se c'รจ un modo di listare layouts\n try:\n # Prova a vedere se c'รจ un attributo nascosto\n if hasattr(Visum, 'GetAttValue'):\n try:\n layout_info = Visum.GetAttValue('GlobalLayoutFile')\n result['visum_global_layout_file'] = layout_info\n except:\n result['visum_global_layout_file'] = 'Attributo non disponibile'\n except:\n pass\n \n # 3. Verifica se esiste un modo alternativo via Graphics\n try:\n if hasattr(Visum, 'Graphics'):\n graphics = Visum.Graphics\n result['has_graphics'] = True\n result['graphics_type'] = str(type(graphics))\n else:\n result['has_graphics'] = False\n except Exception as e:\n result['graphics_error'] = str(e)\n \n # 4. Cerca 'tabelle_report.lay'\n tabelle_report_path = os.path.join(project_dir, 'tabelle_report.lay')\n result['tabelle_report_exists'] = os.path.exists(tabelle_report_path)\n if os.path.exists(tabelle_report_path):\n result['tabelle_report_size'] = os.path.getsize(tabelle_report_path)\n \nexcept Exception as e:\n result = {'error': str(e)}\n \nresult","description":"Cerca file .lay nella directory del progetto"}},"jsonrpc":"2.0","id":3}

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