HT

heilingbrunner/tiaportal-mcp

效率工作流

本页由 AI 翻译,技术细节请以原文为准。 查看原文

126 stars 51 forks 质量 80 趋势 37MIT

Heilingbrunner/Tiaportal-MCP 是从 https://github.com/heilingbrunner/tiaportal-mcp. 导入的 MCP 服务器候选

概览

Heilingbrunner/Tiaportal-MCP 是从 https://github.com/heilingbrunner/tiaportal-mcp. 导入的 MCP 服务器候选

概述(AI 翻译)

一个连接到西门子TIA门户的MCP服务器。

资源

  • TIA 门户开放性 API 概述
  • TIA 门户开放性 API 文档
  • TIA 门户开放性 API 用于工程工作流程自动化
  • TIA 门户开放性 API,用于工程工作流程自动化- 导出/导入文档

特色

  • 连接到TIA门户实例
  • 浏览并参与TIA门户项目
  • 在 VS Code 内执行基础项目操作
  • 读取完整的PLC软件:程序块、PLC数据类型、标签和常量、监视和 力场表、外部源文件与交叉引用
  • 可选地创建、重命名、删除、移动和导入项目对象(参见写入模式)

命令行参数

论证 描述
--tia-major-version TIA Portal 主要版本,用于绑定。默认 21。
--project-path 为OpenProject / OpenTiaProject的path参数预设。见下文。
--software-path 为softwarePath工具参数预设,例如PLC_1。见下文。

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。

TIA-Portal MCP-Server

A MCP server which connects to Siemens TIA Portal.

Resources

Features

  • Connect to a TIA Portal instance
  • Browse and interact with TIA Portal projects
  • Perform basic project operations from within VS Code
  • Read the full PLC software: program blocks, PLC data types, tags and constants, watch and force tables, external source files, and cross references
  • Optionally create, rename, delete, move and import project objects (see Write mode)

Command Line Arguments

Argument Description
--tia-major-version TIA Portal major version to bind against. Default 21.
--project-path Preset for the path argument of OpenProject / OpenTiaProject. See below.
--software-path Preset for the softwarePath tool argument, e.g. PLC_1. See below.
--export-path Preset for the exportPath tool argument. See below.
--logging 1 stderr, 2 debug output, 3 Windows event log. Omit for no logging.
--doctor Print the environment report and exit without starting the MCP server.
--preserve-path Flag: preservePath defaults to true for the export tools. See below.
--with-dependencies Flag: withDependencies defaults to true for the ExportSource* tools. See below.
--force-presets Flag: the path, softwarePath and exportPath presets cannot be overridden. See below.
--allow-write Register the project-mutating tools. Omitted by default; see below.

Presetting tool arguments

softwarePath, exportPath, preservePath and withDependencies (the ExportSource* tools) appear in many tools, path (the project file) in OpenProject and OpenTiaProject. Set them once in the args

在 GitHub 查看完整 README

安装

This server does not publish a one-line install command.

Open the repository installation guide 新手?先看 mcpskill.org 教程 →

配置

{ "mcpServers": { "tia-mcp-server": { "type": "stdio", "command": "<path-to>\\TiaMcpServer.exe", "args": [ "--tia-major-version", "21", "--project-path", "D:\\Projects\\Plant\\Plant.ap21", "--software-path", "PLC_1", "--export-path", "${CLAUDE_PROJECT_DIR}\\export", "--preserve-path", "--with-dependencies", "--allow-write" ], "env": {} } } }