PDK for Ignition Perspective: lets an AI agent build, validate, deploy and inspect Perspective views on a development gateway.
pip install pdk-perspective==0.5.0 Copy PIP instructions
PDK 0.5.0 is the last release of this repository, which is now frozen and archived. It remains available under the Apache License 2.0, as every earlier release does: you can use, fork and modify it under those terms. It will not receive further changes, fixes (security fixes included) or support.
Development continues as a commercial edition, maintained for newer Ignition and Perspective versions, with a signed gateway module and support. If you are interested, contact me through GitHub: @fcastel2002.
Thank you to everyone who tried PDK and shared feedback.
PDK (Perspective DevKit) is a set of tools for an AI agent (Claude Code or any MCP client) to build and fix Ignition Perspective views (view.json) — and to prove they work before you open them. PDK closes the loop generate → validate → deploy → inspect → fix:
Development gateways only. PDK installs an unsigned module that writes to a sandbox project. Never install it on a production gateway.
PDK is an independent project. It is not affiliated with, endorsed by or supported by Inductive Automation. Ignition and Perspective are trademarks of Inductive Automation.
irm https://raw.githubusercontent.com/fcastel2002/pdk/main/install.ps1 | iex Linux and macOS:
curl -LsSf https://raw.githubusercontent.com/fcastel2002/pdk/main/install.sh | sh The installer installs uv if it is missing and PDK as a command (uv tool install pdk-perspective): pdk and pdk-mcp then work from any folder. It sets up ./pdk-views for Claude Code with pdk init (set PDK_PROJECT to change it), extracts the schemas of your Perspective into ~/.pdk/schemas/ and downloads Playwright's Chromium. Then it runs pdk doctor, which lists what is left on the gateway side. It never touches the gateway or anything that needs admin rights, and it is safe to run again to update.
uv tool install pdk-perspective pdk init my-views # any folder: skill, subagents, MCP server, hook and CLAUDE.md for Claude Code pdk doctor --fix PDK says when a newer release is out (one check a day against GitHub, also told to the agent at the start of a session); update with uv tool upgrade pdk-perspective. To work on PDK itself, clone the repo and run uv sync (see CONTRIBUTING.md); in a clone the commands are uv run pdk ....
pdk doctor checks every step and says what is missing. Run it at the start and at the end.
Create the sandbox project. It is the only project PDK writes to: create an empty Perspective project (for example pdk_sandbox) from the gateway web page or the Designer. Do not use a real project.
Edit ignition.conf (needs admin). In /data/ignition.conf add two wrapper.java.additional.N lines, with free values of N; pdk doctor tells you which:
wrapper.java.additional.10=-Dignition.allowunsignedmodules=true wrapper.java.additional.11=-Dpdk.sandbox=pdk_sandbox Restart the gateway. Without -Dpdk.sandbox the module is read-only.
Optional: a target project for finished screens (for example a copy of your production project imported into this development gateway):
wrapper.java.additional.12=-Dpdk.target= The target only receives finished work (views, style classes and project scripts outside PDK/, and the stylesheet), and only through pdk promote --to-project target [--to ]: no direct deploy and no page config, except the eyes' preview pages under /pdk/ to look at a promoted view. A promote is refused if the view references views under PDK/, and warns about references the target does not have. It must differ from the sandbox.
Create an API key on the gateway web page (Platform > Security > API Keys), with security level Administrator and Require secure connections unchecked. Save it to ~/.pdk/ignition-api-key, or as api_key in the config file (below). It is only used to install the module and restart the gateway.
pdk gateway install --restart It compiles the module's Java sources (shipped with PDK) against the jars of your install, uploads it through the REST API, accepts its certificate (it is an unsigned module) and restarts the gateway.
pdk doctor Every check should be ok. Optionally, from a clone, uv run pytest -m gateway runs the live tests, which write only under PDK/_selftest/ in the sandbox and delete what they create.
Everything is configured through environment variables. To avoid setting them in every shell, in the MCP server and in the hook, put them in ~/.pdk/config.toml (or another file pointed to by PDK_CONFIG). A variable that is already set wins over the file.
gateway_url = "http://127.0.0.1:8088" ignition_home = "C:/Program Files/Inductive Automation/Ignition" The sandbox name is not configured in PDK: -Dpdk.sandbox sets it on the gateway and the client reads it from /health.
With Claude Code, open the folder you set up with pdk init (claude in it), approve the pdk MCP server and ask for a screen. The perspective-views skill drives the cycle:
catalog → write view.json → validate → deploy → inspect → fix.
uv run pdk catalog ia.display.table --prop columns uv run pdk validate work/ /PDK/Pump/view.json uv run pdk deploy work/ /PDK/Pump uv run pdk inspect PDK/Pump uv run pdk inspect PDK/Pump --query root/Header uv run pdk inspect PDK/Pump --expect "root/Body below root/Header; root/Header width 100%" uv run pdk tags apply sample uv run pdk inspect PDK/Pump --act "tag Sandbox/Setpoint 42" --expect "root/Value text \"42\"" uv run pdk screenshot PDK/Pump --out pump.png The project stylesheet is edited in the sandbox too: uv run pdk pull stylesheet downloads work/ /_stylesheet/stylesheet.css and uv run pdk deploy work/ /_stylesheet uploads it.
From another MCP client (Codex, Gemini CLI, VS Code, Cursor…), register the stdio server with the work/ of the folder you set up with pdk init, where the pulled views go:
{"mcpServers": {"pdk": {"command": "pdk-mcp", "env": {"PDK_WORK_DIR": "/path/to/screens/work"}}}} From a clone: "command": "uv", "args": ["--directory", "/path/to/pdk", "run", "--quiet", "pdk-mcp"]. Per-client formats are in the agents guide.
The full documentation, with a step-by-step tutorial and the reference of every command and diagnostic, is at https://fcastel2002.github.io/pdk/.
Codes are stable; each diagnostic reads E|W|I CODE /json/pointer (component path) | message | hint.
You are about to run an installer, install an unsigned module on your gateway and give an agent write access to a project, so being cautious is reasonable. If you will not read the code yourself, ask an AI model you trust (Claude, ChatGPT or another) to review it for you before installing. Point it at the repository (https://github.com/fcastel2002/pdk), or better, clone it and open it in a coding agent so it reads the actual files, and ask something like:
Review this repository as a security auditor before I install it on my machine and my Ignition gateway. Tell me whether it contains malware, hidden network calls or telemetry, data exfiltration, obfuscated code, or anything that writes outside what the README says. Check in particular install.ps1 and install.sh, the Java module in gateway/ (what its REST API allows and from where), and the Python package in pdk/ (which hosts it contacts, which files and gateway resources it writes). Point to the exact files and lines behind each finding.
What a review should find, so you can compare:
An AI review lowers the risk, it does not remove it: models can miss things. For a production network, have someone you trust read the code, and keep PDK on a development machine as recommended above.
This repository is archived and no longer takes issues or pull requests. You are welcome to fork it under the Apache License 2.0.
The community edition is not supported. The maintained commercial edition, support, and services (screens built with PDK, Vision → Perspective migrations, assisted setup and training) are available from Francisco Castel: reach out through GitHub.
Apache License 2.0. See NOTICE for attributions.
agents claude-code hmi ignition mcp perspective scada
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
None of the files in this release were uploaded with provenance metadata.
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.




