
chewcw/tia-portal-openness-mcpserver
Developer toolsこのページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る
TIAポータルオープンネスMCPサーバー
概要
MCP (Model Context Protocol) は、Siemens TIA Portal Openness 用のサーバーで、リリースのインストールとアップデート用の CLI と接続します。 - TiaPortalMcpServer/:C# MCPサーバー(ターゲットフレームワーク:net48)は、MCPツールとしてTIAポータルエンジニアリング業務を公開しています。 - TiaPortalMcpServer。 Tests/: ツール契約とサーバーの動作に対するユニットテストと統合テスト。 - cli/:サーバーのリリースをインストールし、仲間のスキルを管理するためのTypeScript CLI。 - プロジェクトのライフサイクル(projects create, project open, project open with upgrade, project save, project close, project get session info) - ハードウェアおよびデバイス管理(devices list, device create, device delete, device get attributes, device set app id, device set app id, device app id, device search catalog) - デバイス管理(device create, device delete, device get attributes, device app id, device app app id, device app app app app id, device app app app app app id, device app app app app app app app id, device app app app app app app app app id, device app app app app app app app app id, device app app app app app app app app app app app app app app app.
概要(AI 翻訳)
MCP (Model Context Protocol) は、Siemens TIA Portal Openness 用のサーバーで、リリースのインストールとアップデート用の CLI と接続します。
このリポジトリが含まれているもの
- [
TiaPortalMcpServer/:C# MCPサーバー(ターゲットフレームワーク:[net48])は、MCPツールとしてTIAポータルエンジニアリング業務を公開します。 - [
TiaPortalMcpServer.Tests/: ツール契約とサーバーの動作のためのユニットと統合テスト。 - [
cli/:サーバーのリリースをインストールし、仲間のスキルを管理するためのTypeScript CLI。
主要機能
サーバは、以下のツールグループを提供します。
- プロジェクトライフサイクル([
projects_create)、[projects_open]、[projects_open_with_upgrade]]、[projects_save]]]、[projects_close]]]]) - ハードウェアおよびデバイス管理(
devices_list)、[devices_create、[devices_delete]]、[devices_get_attributes]]]]、[devices_get_app_id]、[devices_set_app_id、[devices_search_catalog]]]])]) - デバイス項目管理([T18]),
deviceitems_get_attributes,deviceitems_plug_move, [deviceitems_copy], [deviceitems_delete]], [[catalog_search_device_items]) - PLCソフトウェアおよびブロック操作([
software_add_block]])、[[blocks_list]、[software_get_block_hierarchy])
このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。
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