Free · WaitlistJoin the waitlist for the free 2-day Vibecoding & AI Agents Intensive (autonomous Hermes + DeepSeek agent · led by Jemal Hamidun, Head of AI at Alpina Digital & MIPT)Join the waitlist →
ReleaseInsight · On RadarHabr AI→ original

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
AI Agent in Cursor Built a Working Ore-Processing MES Demo in 51 Minutes
Source: Habr AI. Collage: Hamidun News.
Listen to article
Article Fact Sheet & Key Figures
ParameterDetails
Primary sourceHabr AI ↗
Editor-in-Chief
Key metric #1Server 20 minutes, React 15 interface, refinement 8, build 5
The first deployment came out emptythe SQL bindings for the indicators did not connect
Key metric #3Telemetry was demo data, one run only, and the agent's token had admin rights

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.

Story

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.

ZK
Zhemal Khamidun — CPO at Alpina Digital, product manager of AlpinaGPT. Building AI products since 2019. Hamidun News is a pet project that grew into a production aggregator with 6,000+ readers.
✦ Free · Waitlist · Hermes + DeepSeek

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.

Join the waitlist →Nomad AI Workspace
What do you think?
Loading comments…