Skip to main content
Glama

Visum Thinker MCP Server

MIT License
test-fast-csv-export.json•1.81 kB
echo '{"method":"tools/call","params":{"name":"project_execute","arguments":{"projectId":"S000009result_1278407893","code":"import xml.etree.ElementTree as ET\nimport os\ntree = ET.parse(r''H:\\go\\reports\\Input\\tabelle_report.lay'')\nroot = tree.getroot()\ncol_defs = []\nfor list_item in root.iter(''listLayoutItem''):\n graphic = list_item.find(''.//listGraphicParameterLayoutItems'')\n if graphic and graphic.get(''netObjectType'') == ''LINK'':\n for attr_def in list_item.iter(''attributeDefinition''):\n col_defs.append(attr_def.attrib)\n break\nfull_attrs = []\nheaders = []\nfor col in col_defs:\n attr_id = col[''attributeID'']\n sub1 = col.get(''subAttributeID1'', '''')\n sub2 = col.get(''subAttributeID2'', '''')\n sub3 = col.get(''subAttributeID3'', '''')\n if sub1 or sub2 or sub3:\n subs = [s for s in [sub1, sub2, sub3] if s]\n full_attr = attr_id + ''('' + '',''.join(subs) + '')''\n header = attr_id + ''_'' + ''_''.join(subs)\n else:\n full_attr = attr_id\n header = attr_id\n full_attrs.append(full_attr)\n headers.append(header)\nlks = visum.Net.Links\ndata = lks.GetMultipleAttributes(full_attrs)\nlines = ['';''.join(headers)]\nfor row_tuple in data:\n lines.append('';''.join(str(v) for v in row_tuple))\ntext = ''\\n''.join(lines)\noutput = r''H:\\go\\reports\\Input\\_Links_All29Columns.csv''\nwith open(output, ''w'', encoding=''utf-8'', newline='''') as f:\n f.write(text)\nsize_mb = os.path.getsize(output) / (1024*1024)\nresult = {''rows'': len(data), ''cols'': len(full_attrs), ''size_mb'': round(size_mb, 2), ''file'': output, ''sample_attrs'': full_attrs[:5]}\nresult","description":"Export ALL 29 columns with sub-attributes"}},"jsonrpc":"2.0","id":29}' | node build/index.js

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