Ask Claude about your plant
What you build
A read-and-propose connection between an AI assistant (Claude) and your plant. You create an agent credential in the Console, connect Claude to the Console's MCP address, and ask questions such as "Why did the Filler stop?". Claude calls mii tools that read live values, history, alarms and stops, and it explains the result. When you ask for a change, Claude can only propose it. A person approves and runs it in the Console.
Time: about 30 minutes.
- The Filler and Compressor pipelines from Your first pipeline and Alarm on a limit, collecting for at least an hour so there is something to ask about. For the OEE questions also OEE for the Filler.
- You may create credentials (the user-management right, so admin).
- Claude Code on a computer that can reach the Console. Claude Desktop or claude.ai only if the Console has a public HTTPS address (see the caution below).
- For the setpoint part: the tag and limits from Change a setpoint with approval, steps 1 to 4.
What the assistant can and cannot do
- It reads what its credential allows, with the credential's own scope. Values of tags that may not leave the plant (see Governance) come back as withheld.
- It has no write tool. The "act" and "build" tools only create a proposal.
- Approve, reject and execute are for people only. An agent credential is refused.
- Every call is recorded in the MCP audit (who, tool, result, time). Arguments and values are not stored.
- Text in names, notes and messages from the plant is treated as untrusted data, never as instructions.
Step by step
1. Create the credential
-
Open Settings → AI connections. The page shows the "MCP endpoint" with Copy URL, for example
https://<console>/api/v2/mcp. -
Under "Credentials" fill Name
Claude Desktop(orClaude Code). Choose the Access ceiling:Ceiling Use it for Read-only (see + history) Questions only. Start here. Operator (read + propose acknowledge) Also proposes to acknowledge or shelve alarms. Engineer (read + propose changes and tag writes) Also proposes tag writes. Needed for step 6. -
Click Create credential.
-
Copy the secret now with Copy secret. It starts with
mii_ac_, is shown once and is not stored. Click I have saved it. -
Click Test this credential. A good result reads "The Console accepts this credential (MCP
<version>, N tools)." It does not show whether Claude can reach the address.
The credential can never do more than its owner may do. Create one credential per assistant, with only the access it needs. Revoke it with Revoke if it leaks. Assistants using it lose access at once.

2. Connect Claude
- Claude Code
- Claude Desktop / claude.ai
- Test with curl
Claude Code runs on your computer, so the plant network is enough. Replace the address and the secret:
claude mcp add --transport http makeintelligent https://<console>/api/v2/mcp \
--header "Authorization: Bearer mii_ac_..."
claude mcp list
claude mcp list should show makeintelligent as connected. If the Console uses a private certificate authority, start Claude Code with NODE_EXTRA_CA_CERTS=/path/ca.pem.
The Console also provides prompts. They appear as slash commands, for example why_did_it_stop, shift_handover, explain_alarm and oee_review.
In Claude (Claude Desktop too) open Customize → Connectors → Add custom connector. On Team and Enterprise plans an owner adds it under Organization settings → Connectors.
- Enter a name,
MakeIntelligent, and the addresshttps://<console>/api/v2/mcp. - Choose No sign in.
- Add the request header
Authorizationwith the valueBearer mii_ac_...(the whole value, including the wordBearer).
A custom connector in Claude is called from the vendor's cloud. The Console needs a public HTTPS address for it, and a plant network address does not work. Ask your IT department before you open it, and never put a proxy without sign-in in front of the Console. If the Console is only on the plant network, use Claude Code.
The file claude_desktop_config.json is described only for servers that run on the same computer, not for this address.
URL=https://<console>/api/v2/mcp
H="Authorization: Bearer $MII_MCP_TOKEN"
curl -s -H "$H" -H 'Content-Type: application/json' "$URL" \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}'
A list of tools in the answer means the credential works.
The Console states that the connection steps follow the vendors' documentation of November 2026, and that menus may differ. ChatGPT cannot connect directly, because it needs OAuth and this Console accepts only a secret in the header.
3. Ask: what is wrong now?
Ask Claude:
Which alarms are active right now? For each, say which equipment it belongs to and since when. Mark values that are old or bad.
Behind the scenes Claude calls a few tools. Most clients show them as "used tool" lines:
| Tool | Why |
|---|---|
mii_monitor_alarms | Lists the alarms that are active now. |
mii_find | Turns a spoken name into an equipment or tag id. |
mii_see_read | Reads the current value of up to 32 tags, with unit, quality and time. |
An answer looks like this (yours will differ):
One alarm is active: HI Compressor pressure high (priority 2), on the Compressor, since 10:41:07. Pressure is 8.07 bar (good, read 3 s ago) against the limit of 8.0 bar. The previous alarm of this kind returned to normal at 10:32:50.
4. Ask: why did the Filler stop?
Ask:
Why did the Filler stop? Use the last two hours.
Typical tool calls, in order:
mii_findwithquery: "Filler"returns the equipment id. If it saysneeds_clarification, Claude must ask you which one; it never chooses.mii_analyze_explain_stopwithequipmentandwindow: "30m". It finds the newest stop and what happened before it.mii_history_seriesforState,SpeedandPressurearound the stop, if more evidence is needed.mii_monitor_alarmsormii_analyze_what_changedfor alarms and changes before the stop.
An example answer:
The Filler stopped at 10:58:12 and ran again at 10:59:53, a stop of 1 min 41 s.
Statewent from 1 to 0.Speeddropped from 116 to 0 bottles/min within two seconds. No alarm was active, and Filler temperature (4.2 °C) and pressure (3.2 bar) stayed normal. This looks like a short stop and not a fault: a fault would showState= 2. The data does not show a cause, so you can record a reason for this stop on the OEE time line.
Note how the answer separates what the data shows from guesses. The analysis tools compute; the assistant explains. For stops of the simulator, fault stops last 1 to 4 minutes (State = 2) and short stops 20 seconds to 2 minutes (State = 0).
More questions to try:
| Question | Tools you will see |
|---|---|
| "Summarise the last shift for Line 1." | mii_analyze_shift_summary |
| "What changed on the Compressor in the last hour?" | mii_analyze_what_changed |
| "What was the OEE of the Filler yesterday, per shift?" | mii_sor_oee |
| "Show Filler speed for the last 6 hours." | mii_history_series |
| "Which tags have bad or old values?" | mii_tool_search, then mii_tool_run |
| "If the Compressor stops, what is affected?" | mii_kg_impact or mii_understand_impact |
By default a credential gets the core profile: 18 tools. Others are found with mii_tool_search and run with mii_tool_run, which runs read-only tools only.
5. Check what Claude used
You do not have to trust the answer. Check the call log:
- Ask the client to show its tool calls, or read the transcript.
- A user with the right to read the audit can list MCP usage per tool and the individual calls through the Console API (
GET /api/v2/mcp/usageand/api/v2/mcp/usage/calls). Every call of your credential is there with the time and the result. - Ask Claude "Show me the values you used, with their time and quality." Reported numbers carry unit, time and quality. A value that is
bad,uncertain,unknown,staleor withheld is not a fact, and Claude must say so.
6. Ask Claude to propose a setpoint change
This needs the Engineer ceiling and the safe-write limits on SpeedSetpoint (see Change a setpoint with approval).
Ask:
Propose to set the Filler SpeedSetpoint to 100. First show me the current value, its quality and the limits, then give the reason: the label roll is nearly empty. Do not claim it is done.
Tool calls you should see:
mii_findfor "Filler SpeedSetpoint".mii_see_readreturns 120, quality good.mii_act_propose_write_tagwithvalue: 100and the reason. The result is a pending proposal id.mii_act_proposal_getto read the state.
Claude's answer should say that a proposal is waiting, not that the speed changed. A tag without limits is refused with a message that a lowest and highest value are needed.

7. Approve it as a person
- Sign in to the Console as a person who may write tags, and who is not the owner of the credential. Open Administration → Approvals.
- The proposal is in the tab Inbox as Waiting, source "AI assistant (MCP)". Check Device, Tag, "Now", "Requested" and the reason. The reason is the assistant's text and is "not verified".
- Click Approve, then Approve and run.
- Ask Claude "What did proposal
<id>change?". It callsmii_act_proposal_getandmii_act_outcome, which shows the evidence tags before and after. Claude must not say the change happened before the status is executed.
The full procedure, with guard rails and audit, is in Change a setpoint with approval.
Check it works
- Test this credential reports the MCP version and the number of tools.
-
claude mcp listshowsmakeintelligentconnected (Claude Code), or the connector lists tools (Desktop). - "Which alarms are active?" calls
mii_monitor_alarmsand names the Compressor alarm with a time. - "Why did the Filler stop?" calls
mii_findandmii_analyze_explain_stopand gives a time, a duration and the state before the stop. - The setpoint request ends with a pending proposal in Approvals, not with a changed value.
- A different person approved it, and only then did the Filler speed change.
Next steps
MCP server
Endpoint, profiles, tools, limits and error codes.
Approvals and safe write
Policies and the two-person rule.
Governance
Decide which data may leave the plant.
Troubleshooting
| Symptom | Likely cause | Fix |
|---|---|---|
| 401 | Secret missing or wrong, credential revoked, or its owner is disabled. | Create a new credential. |
| 403 | No read_config right, or a browser origin that is not allowed. | Check the owner's role. For browser clients set MI_MCP_ALLOWED_ORIGINS. |
| 503 | MCP is switched off in the Console. | An administrator switches it on (/api/v2/mcp/settings). |
| 429 | Too many calls: 600 messages, 120 calls and 10 proposals per minute and credential. | Wait for Retry-After. |
| Claude Desktop cannot connect | The connector runs from the cloud and cannot reach a plant address. | Use Claude Code, or give the Console a public HTTPS address with IT approval. |
mii_find says needs_clarification | More than one match. | Answer Claude's question. It never picks one for you. |
| The answer says a value is withheld | Governance blocks that tag from leaving the plant. | See Governance, Egress. |
| Proposal refused: lowest and highest value needed | The tag has no safe-write limits. | Set them in the device (tutorial "Change a setpoint with approval", step 2). |
| "agent credentials can only propose; a person must approve and execute" | You tried to approve with the credential. | Approve as a person in Approvals. |
| The proposal vanished | Proposals expire after 24 hours. | Ask for a new proposal. |