
chewcw/tia-portal-openness-mcpserver
Developer toolsЭта страница переведена автоматически. Технические детали смотрите в оригинале. Открыть оригинал
Открытость портала TIA MCP Server
Обзор
Сервер MCP (Model Context Protocol) для Siemens TIA Portal Openness, а также сопутствующий CLI для установки и обновления релизов. TiaPortalMcpServer/: C# MCP-сервер (целевая структура: net48), раскрывающий инженерные операции TIA Portal как инструменты MCP. - TiaPortalMcpServer. Тесты /: Единичные и интеграционные тесты для контрактов инструментов и поведения сервера. - cli/: TypeScript CLI для установки серверных выпусков и управления компаньонами. - жизненный цикл проекта (projects create, projects open, projects open with upgrade, projects save, projects close, projects get session info) - управление аппаратными средствами и устройствами (devices list, devices create, devices delete, devices get attributes, devices get app id, devices set app id, devices search catalog) - управление элементами устройства (deviceitems list, deviceitems get attributes, deviceitems plug move, deviceitems copy, deviceitems delete, catalog search device items) - программное обеспечение и операции блока (software add block, blocks list,...).
Обзор (машинный перевод)
Сервер MCP (Model Context Protocol) для Siemens TIA Portal Openness, а также сопутствующий CLI для установки и обновления релизов.
Что содержит репозиторий
TiaPortalMcpServer/: C# MCP-сервер (target framework:net48), раскрывающий инженерные операции TIA Portal как инструменты MCP. T2: модульные и интеграционные тесты для контрактов инструментов и поведения сервера.cli/: TypeScript CLI для установки серверных выпусков и управления компаньонами.
Ключевые возможности
Сервер предоставляет группы инструментов для:
- жизненный цикл проекта
projects_create,projects_open,projects_open_with_upgrade,projects_save,projects_close,projects_get_session_info] - аппаратное и аппаратное управление
devices_list,devices_create,devices_delete,devices_get_attributes,devices_set_attribute,devices_get_app_id,devices_set_app_id,devices_search_catalog[[T]18],deviceitems_get_attributes,deviceitems_plug_move,deviceitems_copy,deviceitems_delete,catalog_search_device_items] - Программное обеспечение PLC и операции блокировки ([T24], [T25], [T26])
Эта страница переведена автоматически. Технические детали смотрите в оригинале.
README
Показан фрагмент оригинального README. Открыть оригинал.
TIA Portal Openness MCP Server
MCP (Model Context Protocol) server for Siemens TIA Portal Openness, plus a companion CLI for release installation and updates.
What this repository contains
TiaPortalMcpServer/: C# MCP server (target framework:net48) exposing TIA Portal engineering operations as MCP tools.TiaPortalMcpServer.Tests/: unit and integration tests for tool contracts and server behavior.cli/: TypeScript CLI for installing server releases and managing companion skills.
Key capabilities
The server provides tool groups for:
- project lifecycle (
projects_create,projects_open,projects_open_with_upgrade,projects_save,projects_close,projects_get_session_info) - hardware and device management (
devices_list,devices_create,devices_delete,devices_get_attributes,devices_set_attribute,devices_get_app_id,devices_set_app_id,devices_search_catalog) - device item management (
deviceitems_list,deviceitems_get_attributes,deviceitems_plug_move,deviceitems_copy,deviceitems_delete,catalog_search_device_items) - PLC software and block operations (
software_add_block,blocks_list,software_get_block_hierarchy) - tag and tag-table management (
tags_create,tags_list,tags_tagtable_create,tags_tagtable_list,tags_tagtable_get,tags_tagtable_delete,tags_tagtable_export,tags_tagtable_open_editor,tags_group_create,tags_group_list,tags_group_find,tags_group_delete,tags_group_system_get,tags_constants_user_list,tags_constants_system_list) - advanced block operations (external sources, ProDiag, UDTs, types, editor helpers — 19 tools in
BlocksTools) - compilation (
compilation_project,compilation_software) - file import and validation (
files_read_csv,files_read_excel,files_list_sheets,files_validate_format,files_get_info) - HMI targets (
hmi_targets_list,hmi_targets_get,hmi_targets_validate) - sampling/LLM-assisted operations (
sampling_generate_code,sampling_summarize_project,sampling_get_suggestions) - elicitation and utility helpers (
utilities_elicit_user_input,utilities_get_project_info,utilities_list_libraries)
All active tools are declared in TiaPortalMcpServer/Tools/.
Runtime model
- Transport: MCP over
stdio. - Host process: .NET console app using
Microsoft.Extensions.Hosting. - Tool discovery: attribute-based (
[McpServerToolType],[McpServerTool]). - Logging: Serilog to stderr and rolling file logs (
TiaPortalMcpServer/logs/).
Requirements
- Windows machine.
- Siemens TIA Portal V20 installed and licensed.
- User account in the
TIA Portal Openness Usersgroup. - .NET Framework 4.8 runtime/developer pack (for building/running
net48project).
Build and run
From repository root:
dotnet build tia-portal-openness-mcpserver.sln
dotnet run --project TiaPortalMcpServer/TiaPortalMcpServer.csproj
Test
Установка
npx @modelcontextprotocol/inspector dotnet run --project TiaPortalMcpServer/TiaPortalMcpServer.csproj