TAIPilot - MCP server for Siemens TIA Portal V21 (portable package)
==================================================================

Contents
--------
  TAIPilot.exe              the MCP server (stdio; started by Claude Desktop / Claude Code)
  TAIPilot.Setup.exe        helper: register in Claude, check prerequisites
  Control\TAIPilot.Control.exe   control panel (tool profile, HTTP server, API keys, license)
  *.dll, *.config         libraries (keep them next to TAIPilot.exe)
  CHANGELOG.md            what changed

The control panel expects TAIPilot.exe one folder above Control\: keep the folder layout.

Requirements
------------
  * Windows 10/11 x64, .NET Framework 4.8 (part of Windows 10 1903+ / 11)
  * Siemens TIA Portal V21 with the Openness option
  * Your Windows user in the local group "Siemens TIA Openness"
    (TIA Openness refuses access otherwise; sign out and in again after adding)

1. Unpack
---------
Unpack the zip to a folder that stays where it is, e.g. C:\Tools\TAIPilot.
If Windows blocked the download: right-click the zip > Properties > "Unblock" before unpacking.

2. Check prerequisites
----------------------
  TAIPilot.Setup.exe check-tia
  TAIPilot.Setup.exe openness-group

To add yourself to "Siemens TIA Openness" (administrator command prompt), then sign out and in again:
  TAIPilot.Setup.exe openness-group --add
or
  net localgroup "Siemens TIA Openness" "%USERDOMAIN%\%USERNAME%" /add

3. Register in Claude
---------------------
Automatic (makes a backup <file>.bak-taipilot-<timestamp> of every config it changes):
  TAIPilot.Setup.exe register              (Claude Desktop and Claude Code)
  TAIPilot.Setup.exe register --desktop    (Claude Desktop only)
  TAIPilot.Setup.exe register --code       (Claude Code only)
  TAIPilot.Setup.exe status                (show what is registered)
Restart Claude Desktop / Claude Code afterwards.

Manual - Claude Desktop: edit %APPDATA%\Claude\claude_desktop_config.json
(Claude menu: Settings > Developer > Edit Config) and add under "mcpServers":

  {
    "mcpServers": {
      "tia-v21": {
        "command": "C:\\Tools\\TAIPilot\\TAIPilot.exe",
        "args": []
      }
    }
  }

Manual - Claude Code (user scope, all projects):
  claude mcp add --scope user tia-v21 -- "C:\Tools\TAIPilot\TAIPilot.exe"

Optional: a smaller tool set per client via the environment variable TAIPILOT_PROFILE (e.g. "plc"):
  "env": { "TAIPILOT_PROFILE": "plc" }        or        TAIPilot.Setup.exe register --profile plc
The control panel (Control\TAIPilot.Control.exe) can change it, too.

4. License
----------
Without a license TAIPilot runs as the Free edition. To try Pro: the 72-hour demo trial (control panel > License >
Start demo trial, or tia_license action=trial) works on the TAIPilot demo projects (demo\run-demo.ps1), once per PC.
Import a license in the control panel (License tab) or with the tool tia_license. Data and license live in
%LOCALAPPDATA%\TAIPilot (logs, license) and %APPDATA%\TAIPilot (panel settings, API keys).

Online activation (optional, when a license server is available)
----------------------------------------------------------------
  TAIPilot.Setup.exe set-license-server https://license.yourvendor.com   (point this machine at the server)
  TAIPilot.Setup.exe clear-license-server                                 (back to the built-in default)
This only writes %LOCALAPPDATA%\TAIPilot\license\online.json. Without it, nothing changes: licensing keeps working with a
license file as before (the demo trial needs the license server).

Remove
------
  TAIPilot.Setup.exe unregister     (removes only tia-v21 entries that point to this TAIPilot.exe)
Then delete the folder. Optionally delete %LOCALAPPDATA%\TAIPilot and %APPDATA%\TAIPilot.

Кратко по-русски
----------------
Распакуйте архив в постоянную папку, проверьте "TAIPilot.Setup.exe check-tia", добавьте пользователя в группу
"Siemens TIA Openness" (нужны права администратора и повторный вход в Windows), затем "TAIPilot.Setup.exe register"
и перезапустите Claude. Без лицензии — 14 дней пробного периода, затем бесплатная версия (Free).
