Skip to main content

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.

Prerequisites
  • 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​

  1. Open Settings → AI connections. The page shows the "MCP endpoint" with Copy URL, for example https://<console>/api/v2/mcp.

  2. Under "Credentials" fill Name Claude Desktop (or Claude Code). Choose the Access ceiling:

    CeilingUse 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.
  3. Click Create credential.

  4. Copy the secret now with Copy secret. It starts with mii_ac_, is shown once and is not stored. Click I have saved it.

  5. 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.

AI connections page with the MCP endpoint and the credential list
AI connections page with the MCP endpoint and the credential list

2. Connect Claude​

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.

Not tried with every client

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:

ToolWhy
mii_monitor_alarmsLists the alarms that are active now.
mii_findTurns a spoken name into an equipment or tag id.
mii_see_readReads 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:

  1. mii_find with query: "Filler" returns the equipment id. If it says needs_clarification, Claude must ask you which one; it never chooses.
  2. mii_analyze_explain_stop with equipment and window: "30m". It finds the newest stop and what happened before it.
  3. mii_history_series for State, Speed and Pressure around the stop, if more evidence is needed.
  4. mii_monitor_alarms or mii_analyze_what_changed for 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. State went from 1 to 0. Speed dropped 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 show State = 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:

QuestionTools 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:

  1. Ask the client to show its tool calls, or read the transcript.
  2. 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/usage and /api/v2/mcp/usage/calls). Every call of your credential is there with the time and the result.
  3. 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, stale or 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:

  1. mii_find for "Filler SpeedSetpoint".
  2. mii_see_read returns 120, quality good.
  3. mii_act_propose_write_tag with value: 100 and the reason. The result is a pending proposal id.
  4. mii_act_proposal_get to 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.

Approvals page: proposals from the AI assistant wait in the Inbox
Approvals page: proposals from the AI assistant wait in the Inbox

7. Approve it as a person​

  1. Sign in to the Console as a person who may write tags, and who is not the owner of the credential. Open Administration → Approvals.
  2. 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".
  3. Click Approve, then Approve and run.
  4. Ask Claude "What did proposal <id> change?". It calls mii_act_proposal_get and mii_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 list shows makeintelligent connected (Claude Code), or the connector lists tools (Desktop).
  • "Which alarms are active?" calls mii_monitor_alarms and names the Compressor alarm with a time.
  • "Why did the Filler stop?" calls mii_find and mii_analyze_explain_stop and 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​

Troubleshooting​

SymptomLikely causeFix
401Secret missing or wrong, credential revoked, or its owner is disabled.Create a new credential.
403No read_config right, or a browser origin that is not allowed.Check the owner's role. For browser clients set MI_MCP_ALLOWED_ORIGINS.
503MCP is switched off in the Console.An administrator switches it on (/api/v2/mcp/settings).
429Too many calls: 600 messages, 120 calls and 10 proposals per minute and credential.Wait for Retry-After.
Claude Desktop cannot connectThe 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_clarificationMore than one match.Answer Claude's question. It never picks one for you.
The answer says a value is withheldGovernance blocks that tag from leaving the plant.See Governance, Egress.
Proposal refused: lowest and highest value neededThe 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 vanishedProposals expire after 24 hours.Ask for a new proposal.