Skip to main content
Glama

Visum Thinker MCP Server

MIT License
test-export-zones-correct.json•1.56 kB
{"method":"tools/call","params":{"name":"project_execute","arguments":{"projectId":"S000009result_1278407893","code":"# Test export con sintassi corretta per SaveAttributeFile\nimport os\nresult = {}\ntry:\n # Directory di output\n project_path = visum.GetPath(1)\n project_dir = os.path.dirname(project_path)\n project_name = os.path.basename(project_path).replace('.ver', '')\n \n result['project_name'] = project_name\n result['project_dir'] = project_dir\n \n # Prova ad esportare Zones come test\n # Separator codes: 0=space, 1=tab, 2=semicolon, 3=comma\n output_file = os.path.join(project_dir, f'{project_name}_Zones.att')\n \n try:\n # Prova con separator=2 (semicolon)\n visum.IO.SaveAttributeFile(\n output_file,\n 'ZONE',\n 2, # 2 = semicolon separator\n ['No', 'Name', 'Code']\n )\n result['zones_export'] = 'SUCCESS'\n result['zones_file'] = output_file\n result['file_exists'] = os.path.exists(output_file)\n if os.path.exists(output_file):\n result['file_size'] = os.path.getsize(output_file)\n # Leggi prime righe\n with open(output_file, 'r', encoding='utf-8') as f:\n result['first_lines'] = [f.readline().strip() for _ in range(5)]\n except Exception as e:\n result['zones_export_error'] = str(e)\n \nexcept Exception as e:\n result['error'] = str(e)\nresult","description":"Test export con separator code corretto"}},"jsonrpc":"2.0","id":16}

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