All posts

Your AI agents can now read and act on your machines over MCP

Haltless now runs an MCP server. Claude, Codex, Cursor, VS Code or any MCP client can read and act on your machines, alerts and work orders, as its key allows.

Attila Peter SzucsFounder, CEO & CTO11 min read
Haltless MCP in white and red lettering over a blurred photo of an automated production line on a factory floor
In this article

Your maintenance lead probably already asks an AI assistant to draft an email, summarise a manual or fix a spreadsheet formula. Then they open five tabs to find out which machines need attention this morning. The assistant can’t see the plant, so the plant is the one thing it can’t help with.

As of this week it can. Haltless now runs a Model Context Protocol (MCP) server, so the AI agents your team already uses (Claude, Codex, Cursor, VS Code or any other MCP client) can read your machines, readings, alerts, OEE, work orders, downtime and maintenance, answer in plain language and, with a key that may write, do something about it:

  • “Which machines need attention this morning?”
  • “What were last week’s critical alerts on Press 4, and has anyone acknowledged them?”
  • “Show me spindle temperature on CNC 7 over the last 24 hours, the maximum per interval.”
  • “Why did Conveyor 2 stop yesterday, and for how long?”
  • “Open a high-priority work order to replace the seal on Pump 2.”
  • “Acknowledge the Press 4 alert, and log the stop on Line 3 that started at 6:10.”

The agent sees and does what its key allows, and nothing more. Here’s how that works, what it can read and do, and where the limits are today.

At a glance

  • Endpoint: POST /api/v1/mcp on your Haltless API host, over Streamable HTTP
  • Protocol: MCP 2026-07-28, plus 2025-11-25, 2025-06-18 and 2025-03-26 through the initialize handshake
  • Authentication: a service-account API key, in an X-API-Key header or as a bearer token
  • Tools: sixteen. Nine read: fleet overview, machines, one machine, readings, OEE, alerts, work orders, downtime and maintenance. Seven act, for a key that may write: acknowledge an alert, open or update a work order, log or end a stop, schedule or update maintenance
  • Limits: the key’s role decides the tools and the actions, its machine groups decide the records, and its access (read only, or read and write) decides whether it may change anything at all
  • Accountability: every change is made as the key’s service account and recorded in the audit log; nothing an agent does deletes a record
  • Setup: configuration ready to paste for Claude Code, Claude Desktop, Codex, Cursor and VS Code, in the portal

What is an MCP server?

An MCP server is a service that AI agents connect to through the Model Context Protocol, an open standard for giving AI applications access to the systems that hold data. The server says which tools it offers, the agent decides which ones a question needs, and the server answers with data the agent then explains in its own words. One server works with every agent that speaks the protocol, so nobody builds a plugin per assistant.

Haltless’s MCP server offers sixteen tools: nine that read your plant’s data and seven that act on it. It answers only to a service-account key, so every answer and every change stays inside what you’ve chosen to allow.

Which AI agents can connect?

Any agent that speaks MCP over Streamable HTTP. The portal has configuration ready to paste for Claude Code, Claude Desktop, Codex, Cursor and VS Code, filled in with your server’s address, and the same address and key work in any other MCP client.

The server speaks protocol version 2026-07-28, where every request carries its own version, and the 2025 revisions through the initialize handshake, so both current clients and older ones connect. It’s stateless: each request gets its own JSON response, with no session to keep alive.

What can an agent read?

Nine tools cover the fleet overview, machines and the latest value of every metric, readings over 1 hour to 90 days, OEE per shift day, alerts, work orders, downtime and maintenance. Each tool is tied to the portal page its data comes from.

  • get_fleet_overview: machines by status, active alerts, MTTR, MTBF, OEE and downtime over a period, and which machines need attention
  • list_machines and get_machine: status, active alerts, last reading, and the latest value and unit of every metric a machine reports
  • get_readings: a machine’s metrics over 1 hour to 90 days, as the average, minimum or maximum per interval
  • get_oee: availability, performance, quality and OEE per machine and shift day, with the period’s averages
  • list_alerts, list_work_orders, list_downtime and list_maintenance: what happened in a period, filtered by state, priority, category or machine

Alerts, work orders, downtime, maintenance and OEE come back newest first, 25 records unless the agent asks for up to 100; machines come back by name, 100 unless it asks for up to 200. Every answer says when there were more, and each alert, work order, stop and maintenance event carries its id, so the agent can act on the one it found. An agent that gets an argument wrong is told which one and why, so it corrects itself instead of guessing.

What can an agent do in Haltless?

With a read-and-write key, the portal’s everyday actions: acknowledge an alert, open a work order or update one, log a stop or end one still going on, and schedule maintenance or update it. Each is offered only if the key’s role could take that action in the portal.

  • acknowledge_alert: acknowledges an open alert, so it stops counting as active
  • create_work_order and update_work_order: open a work order on a machine, optionally for one of its alerts, then change its status, priority, details, due date or completion notes
  • log_downtime and end_downtime: record a stop, with its category and a note, and end it when the machine runs again
  • schedule_maintenance and update_maintenance: put maintenance on a machine’s calendar, then move it, complete it or cancel it

Each tool is the same action a person takes in the portal, through the same code, so it has the same effects: completing a work order stamps when it was done, and completing maintenance that’s due by use starts its count again. None of them deletes anything.

What decides what an agent can see and do?

The service-account key it connects with. A service account is a member of your company with a role, and the agent sees exactly what that role sees in the portal: the pages the role can open decide which tools the agent is offered, and the role’s machine groups decide which records come back. Whether it may also act depends on the key’s access and on what the role may do.

Diagram: an AI agent such as Claude, Codex, Cursor or VS Code connects with a service-account key whose role is Viewer, whose machine scope is Line 3 and whose access is read only. It is offered six of the nine reading tools, those for the Dashboard, Machines and Alerts pages, and no writing tools. Every answer covers Line 3’s machines only. A read-and-write key with an Operator role would also be offered the writing tools for its pages.

Take a read-only key with the built-in Viewer role, kept to Line 3. Viewer sees the dashboard, machines and alerts, so the agent is offered six reading tools; work orders, downtime and maintenance aren’t on its list, and it gets no writing tools at all. Every answer covers Line 3’s machines, and a machine outside the line reads as not found. To let an agent read or do more, you change the key’s role or access, not the agent.

Can an AI agent change anything in Haltless?

Only with a key that may write, and only what its role could do in the portal. When you create a service-account key, you choose Read only or Read and write. A read-only key gets the nine reading tools and nothing else, and any attempt to create, change or delete through the rest of the Haltless API is refused with a 403 before it reaches an endpoint.

With Read and write, the agent also gets the writing tools its role allows. Acknowledging alerts and opening or updating work orders take the Admin or Operator role; logging stops and scheduling maintenance also need the role to keep the downtime and maintenance permissions, which you can revoke under Settings → Role Permissions. A Viewer never gets a writing tool, whatever its key allows.

Every change is made as the service account and recorded in the audit log with the tool that made it, and a change that fails partway is rolled back whole. Each writing tool is also marked as one that changes data, which many clients use to ask you before running it. So give an agent that answers questions a read-only key, which is what a new service-account key in the portal starts as, and keep read and write for agents that should act and for integrations that write back, like an ERP or MES.

A service account can also never manage users, roles, API keys or sign-in settings, however broad its role, so a leaked key can’t create new credentials that outlive its own revocation. Revoke the key and the agent is cut off on its next request.

Where does the data go when an agent reads it?

To whichever AI service runs the agent. Haltless answers the agent’s request; what the agent does with the answer, including sending it to its model provider, happens under your agreement with that provider, not under Haltless’s. Haltless doesn’t run the agent or choose its model.

So choose the key’s role and machine scope with that in mind, the way you’d decide what a new contractor gets to see on day one.

How do I connect an AI agent to Haltless?

In three steps, all under Settings → API keys → AI agents (MCP) in the portal: copy the server address, create a service-account key for the agent, and paste the configuration for your client.

  1. Copy the server address: your API host followed by /api/v1/mcp.

  2. Create a service-account key. Name it after the agent, pick the narrowest role that does its job, choose Read only for an agent that answers questions or Read and write for one that should act, and set an expiry. Only an administrator can create one, and the key is shown once.

  3. Paste the configuration for your agent. For Claude Code, that’s one command:

    claude mcp add --transport http haltless https://api.haltless.io/api/v1/mcp \
      --header "X-API-Key: YOUR_KEY"

Codex reads the key from an environment variable and VS Code asks for it once and keeps it in its own secret storage, so neither config file holds a secret. The setup guide has every client’s configuration. Give each agent its own key, so revoking one doesn’t cut off the others, and the API keys table shows when each one was last used.

What are the limits today?

Nothing deletes, lists are capped at 100 records per call, there’s no OAuth sign-in, it offers tools but no resources or prompts, and its requests share your company’s write budget of 120 requests per minute.

  • It doesn’t delete. An agent can acknowledge, add and update records, but no tool removes one, and none touches machines, users or settings.
  • Lists are capped. At most 100 records per call (200 for machines), with no paging. The agent narrows the period or the filters instead.
  • No OAuth sign-in. The key travels in a header or as a bearer token, so a client has to let you set one. Connectors that only offer OAuth sign-in can’t connect today.
  • Tools only. There are no MCP resources or prompts, and no event stream: the agent asks, and the server answers.
  • It counts against your rate limit. MCP requests are POSTs, so they share your company’s write budget of 120 requests per minute.

Where to go from here

If you run Haltless today, the section is in the portal now. The MCP server reference covers the protocol, each tool’s arguments and the errors, the API keys guide explains read only and read and write, and the roadmap lists the server under Shipped.

If you don’t yet, we’re taking a small number of design partners before the Q1 2027 launch, and an agent that can answer “what broke on Line 3 last night?” is a quick way to see whether Haltless earns its place on your floor. Or start with a number: the quote form comes back with a per-machine figure, usually in about four hours.

Claude is a trademark of Anthropic, PBC, and Codex a trademark of OpenAI. Cursor and VS Code belong to their respective owners. Haltless isn’t affiliated with or endorsed by any of them; they’re named here only to say the MCP server works with them.

Share with your community

STOP REACTING.START PREDICTING.

Tell us about your machines and we come back with a tailored per-machine quote, typically within about four hours. No new hardware, no proprietary sensors, no consultants.