AI Agent in Cursor Built a Working Ore-Processing MES Demo in 51 Minutes
An MES is the shop-floor software that tracks ore intake, downtime, and output, and the customer needed a live demo quickly. The team opened the requirements document in Cursor and connected the agent to the ISPF platform via MCP, which lets the agent call 121 platform tools. In 51 minutes it produced an app with a mimic diagram, downtime tracking, and data exchange with the plant's automation system (APCS). The platform's strict rules yield a prototype in an hour, but the result still needs to be checked by eye. When a customer sends a thick requirements document with appendices and brand guidelines, it usually takes weeks before they see anything clickable. The ISPF platform team tried to do it in an hour and recorded the process on video. A mining and processing company wanted an MES, the shop-floor program where an operator sees an equipment diagram, logs ore intake, records downtime, and reviews the shift summary. It also needed data exchange with the APCS (the automation that controls machines and sensors) and with the laboratory. From opening the document folder to a working app on the test bench took 51 minutes, including the time the agent spent generating code.
AI-processed from Habr AI; edited by Hamidun News
When a customer sends a thick requirements document with appendices and brand guidelines, it usually takes weeks before they see anything clickable. The ISPF platform team tried to do it in an hour and recorded the process on video. A mining and processing company wanted an MES, the shop-floor program where an operator sees an equipment diagram, logs ore intake, records downtime, and reviews the shift summary. It also needed data exchange with the APCS (the automation that controls machines and sensors) and with the laboratory. From opening the document folder to a working app on the test bench took 51 minutes, including the time the agent spent generating code.
How the build works
ISPF is an open platform for IoT, SCADA, and MES. A solution is described in a bundle.json package: an object tree, data bindings, and operator screens. A custom React interface sits alongside it as a separate ui-pack package. The agent worked in Cursor in Auto mode. It connects to the platform via MCP, the standard way to give an agent a set of tools it calls on its own. In the settings, the server appears as ispf with 121 tools and 10 resources. Cursor is not required here: VS Code, WebStorm, or another environment would work.
The work ran in five steps:
- Preparation, 3 minutes. They opened the folder with the requirements document, "Appendix 1," and the "Appendices 2–5" folder (report forms, target picture, screen examples, brand guidelines), and checked the MCP connection.
- Server side, 20 minutes. Essentially one request: build the full package structure from the customer's documentation, following the platform's build conventions.
- React interface, 15 minutes.
- Interface refinement, 8 minutes.
- Final build on ISPF, 5 minutes.
How this differs from vibe coding from scratch
The agent does not write whatever comes to mind. It acts within the platform's rules. Devices live separately, logic lives separately, and operator screens sit in the operatorUi section. The agent reads these rules through MCP and, before installing, runs the package through the validate_bundle and dry_run_deploy checks. The result is not a pile of generated code that nobody can make sense of six months later, but an ordinary application on the platform. Any engineer familiar with ISPF can work with it.
The interface was built in a separate request, without touching the package. While it runs on localhost, it can be reworked as many times as needed, and the test bench is unaffected. The first version already resembled a workstation, but it had leftover labels, formulas, and requirement item numbers showing. The next request removed them and replaced the English terms with Russian ones. They added hourly charts, samples, downtime, and a "shift / day / week" switch in the summary. The mimic diagram gained a chain running from the raw material warehouse through crushers, screens, a hydrocyclone, and a thickener to flotation.
In the end, the agent built the ui-pack, placed it in the interface packages directory, added a reference in operatorUi, and enabled deployment version 1.0.1. After that, an Open app UI button appeared in operator mode.
What went wrong
The first deployment of the package came out empty. The team asked the agent why there was no data, and it explained that the SQL bindings for the indicators had not connected on the first deployment. The agent then loaded demo telemetry and made "Reports" the start screen. The practical takeaway: a package can install without errors and still have no data in the app. Only a visual check reveals that. At the fifth step, the interface button also failed to appear until the deployment version was enabled.
There is a security question too. The agent calls platform tools with the rights of whoever's token is set in the MCP configuration, and in the documentation's example that is an administrator token. They deployed to a test bench. Everything the agent produced has to be reviewed before it is shown to the customer, and even more so before it is installed on a production server.
Honest limitations
This is a demo, not a deployment. The telemetry and indicators are demonstration data, and no real plant was involved. There was one run, and the timings were taken from the slides of the video, where they are labeled as actual. Key decisions were made by people. They understood production and what the customer wanted to see. They also noticed that the deployment was empty and sent the agent back to the previous step.
The lesson for developers and product managers is this. If a platform has strict conventions, checks, and MCP access to its tools, an agent can turn a requirements document into a verifiable prototype in an hour. Prototype time stops being an argument against showing a client something. But responsibility for data, access rights, and quality stays with the human.
- Nov 25, 2026Google Releases gemini-api-cli: Claude Code and Codex Call Gemini with a Single Command
- Nov 25, 2026VK AI Space dropped per-file copying into the pod: a sandbox call took 92 seconds
- Nov 25, 2026Developer swaps Whisper for GigaAM v3 in an ETS2 radio companion: speech recognition drops from 7.4 to 0.4 s
- Nov 25, 2026Of 71 AI Services, 21 Are Closed to Russia, and Only Alice AI Takes a Russian Card
Key Questions Answered
How the build works?
ISPF is an open platform for IoT, SCADA, and MES. A solution is described in a bundle.json package: an object tree, data bindings, and operator screens. A custom React interface sits alongside it as a separate ui-pack package. The agent worked in Cursor in Auto mode. It connects to the platform via MCP, the standard way to give an agent a set of tools it calls on its own. In the settings, the server appears as ispf with 121 tools and 10 resources.
How this differs from vibe coding from scratch?
The agent does not write whatever comes to mind. It acts within the platform's rules. Devices live separately, logic lives separately, and operator screens sit in the operatorUi section. The agent reads these rules through MCP and, before installing, runs the package through the validate_bundle and dry_run_deploy checks. The result is not a pile of generated code that nobody can make sense of six months later, but an ordinary application on the platform. Any engineer familiar with ISPF can work with it.
What went wrong?
The first deployment of the package came out empty. The team asked the agent why there was no data, and it explained that the SQL bindings for the indicators had not connected on the first deployment. The agent then loaded demo telemetry and made "Reports" the start screen. The practical takeaway: a package can install without errors and still have no data in the app. Only a visual check reveals that. At the fifth step, the interface button also failed to appear until the deployment version was enabled.
Free 2-Day Vibecoding & AI Agents Intensive
Day 1: the autonomous Hermes + DeepSeek AI agent — vibecoding and development on par with Claude Code / Codex / Gemini. Led by Jemal Hamidun, Head of AI at Alpina Digital and academic supervisor at MIPT. Right after you register with our bot Nika: the recording + 11 materials from the previous intensive.
Waitlist: free vibecoding intensive + AI digest
Leave your email to reserve a spot in the free 2-day intensive and get the AI stories that matter.