MCP server
The Console contains an MCP server (Model Context Protocol). An AI assistant that speaks MCP can read your plant (live values, history, alarms, OEE, the plant graph) and can propose changes. It can never change anything itself: a person approves and executes every proposal in the Console.
The assistant brings its own AI. The Console only provides plant data and tools.

How it works
Safety properties:
- There is no write tool. Propose tools create a pending proposal.
- Reads use the credential's own limits: the owner's roles, the access ceiling, toolsets, devices, path prefix and the owner's scoped access.
- Egress rules (see Governance) withhold values. Withheld objects keep their name and say
withheld. If the policy cannot be read, nothing is sent. - Names, notes and messages in plant data are returned as untrusted data, clipped, and never used as instructions.
- Passwords, keys and tokens are redacted.
Endpoint and transport
| Address | https://<console>/api/v2/mcp (copy it from Settings → AI connections → MCP endpoint, Copy URL) |
| Transport | Streamable HTTP. POST carries JSON-RPC (initialize, tools/list, tools/call, resources, prompts). GET returns the catalogue. DELETE ends a session. |
| Header | Authorization: Bearer mii_ac_... |
| MCP versions | 2024-11-05 up to 2025-11-25, and 2026-07-28 |
Optional query parameters on the address: ?profile=core|full, ?toolsets=see,monitor, ?output=compact|full. GET /api/v2/mcp?export=cursor|claude returns ready-made client settings.
Use HTTPS. Over plain HTTP the secret travels unencrypted, and the Console UI warns about it.
Create a credential
Each assistant gets its own credential. A credential is a secret that starts with mii_ac_.
- Sign in as a user with the
manage_userspermission (administrators have it). - Open Settings → AI connections.
- In Credentials, enter a Name, for example
Claude Desktop. - Choose an Access ceiling:
- Read-only (see + history):
read_config,read_history. - Operator (read + propose acknowledge): adds
operate_runtime,ack_alarms. - Engineer (read + propose changes and tag writes): adds
write_tags,configure_devices.
- Read-only (see + history):
- Click Create credential.
- Copy the secret with Copy secret and click I have saved it. The secret is shown once and only a hash is stored. If you lose it, revoke the credential and create a new one.
The ceiling is intersected with the roles of the credential's owner, so it can never exceed what the owner may do. Whatever the ceiling, an agent credential is always denied read_audit, manage_users, manage_identity, import_config and approve_dashboards.
The list shows Name, Ceiling, Created, Last used and the state (Active or Revoked). Revoke takes effect on the next message and cannot be undone. Creating credentials needs manage_users; other users see "Managing credentials requires the user-management permission."
You can also manage credentials with the API: POST /api/v2/agent-credentials (name, capabilities, toolsets, optional mcpProfile), GET, PATCH and DELETE /api/v2/agent-credentials/{id}.
Profiles and toolsets
| Profile | Tools listed | Use |
|---|---|---|
core (default for new credentials) | 18 | Compact answers within a token budget. Other tools are found with mii_tool_search and run with mii_tool_run. |
full | all 91 | People and credentials created earlier. |
A profile is not a permission. Toolsets are see, history, understand, monitor, act, build and meta. Cursor limits the number of tools over all servers, so keep core there.
Connect an assistant
The Console page Settings → AI connections shows these guides under "Connect an assistant". The steps follow vendor documentation of November 2026 and, as the page itself says, are not tried out with every product yet; menus may differ.
- Claude Code
- Claude / Claude Desktop
- Cursor
- VS Code and others
- Copilot Studio
claude mcp add --transport http makeintelligent https://<console>/api/v2/mcp \
--header "Authorization: Bearer mii_ac_..."
claude mcp list
The Console can stay on the plant network; the client runs on your computer. With a private certificate authority set NODE_EXTRA_CA_CERTS=/path/ca.pem. The prompts appear as slash commands. Check it by asking "which alarms are active?"; the assistant should call mii_monitor_alarms.
Claude connects from the vendor's cloud, so the Console needs a public HTTPS address.
- In Claude open Customize → Connectors → Add custom connector. On Team and Enterprise an owner adds it under Organization settings → Connectors.
- Enter a name and the address
https://<console>/api/v2/mcp. - Choose "No sign in" and add the request header:
Authorization: Bearer mii_ac_...
The Console describes claude_desktop_config.json only for servers on the same computer, not for this address. There is no claude_desktop_config.json snippet for a remote Console.
Put this in ~/.cursor/mcp.json (or .cursor/mcp.json in a project). Do not commit the secret. Set the environment variable on the computer that runs Cursor.
{
"mcpServers": {
"makeintelligent": {
"url": "https://<console>/api/v2/mcp",
"headers": { "Authorization": "Bearer ${env:MII_MCP_SECRET}" }
}
}
}
GET /api/v2/mcp?export=cursor returns this with the address filled in (it uses the variable name MII_MCP_TOKEN; either name works if the shell variable matches). Keep the profile core.
The repository does not ship a VS Code specific guide. Any client that speaks MCP over Streamable HTTP and can send an Authorization header can connect. Give it the address https://<console>/api/v2/mcp and the header Authorization: Bearer mii_ac_.... Test with curl first (below).
- In the agent open Tools → Add a tool → New tool → Model Context Protocol.
- Enter a server name, a description and the address
https://<console>/api/v2/mcp. Transport: Streamable HTTP. - Choose authentication API key, type Header, header name
Authorization. - Create a connection and enter the whole value including the word
Bearer:Bearer mii_ac_....
One key is one shared credential for everybody who uses that agent. Keep the profile core. The Console notes that it is not certain whether Copilot Studio sends the value unchanged; if you get "authentication is required", this is the likely cause.
Test with curl
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"}'
curl -s -H "$H" -H 'Content-Type: application/json' "$URL" \
-d '{"jsonrpc":"2.0","id":2,"method":"tools/call","params":{"name":"mii_find","arguments":{"query":"Filler speed"}}}'
The Console also has a Test this credential button. It runs initialize and tools/list and reports the MCP version and tool count.
Stdio bridge
For clients that only speak stdio, the mi-mcp bridge forwards JSON-RPC lines to the HTTPS endpoint. It reads MI_MCP_URL (the endpoint), MI_MCP_TOKEN or MI_MCP_TOKEN_FILE (required: a Console token or a mii_ac_ secret) and MI_MCP_INSECURE (lab only).
The Console accepts a Bearer secret in the Authorization header. Other sign-in methods (OAuth) are not offered in the Console UI, and the Console says "ChatGPT cannot connect directly", because ChatGPT connectors need OAuth or no sign-in. The server code contains OAuth routes, but they are parked (there is no consent page yet) and are not a supported way to connect. Do not put a no-sign-in proxy in front of the Console: anyone who finds it could read plant data.
Tools
Every tool needs at least read_config; the capability a tool needs is listed where it differs. Names and descriptions are the real tool names. Common arguments: name (a spoken name resolved like mii_find does, used instead of an id), lang (en or tr for summary lines), durations such as 30m, 1h, 7d, and times in RFC 3339. A result with truncation is incomplete: narrow the query or use nextCursor.
Kind: Read returns data; Propose creates a pending proposal and changes nothing; Decide exists only where the plant allows it, and never for agent credentials.
Core tools (listed in the core profile)
mii_find, mii_see_read, mii_history_series, mii_kg_equipment_state, mii_analyze_what_changed, mii_analyze_explain_alarm, mii_analyze_explain_stop, mii_analyze_shift_summary, mii_analyze_root_cause, mii_process_current, mii_sor_oee, mii_monitor_alarms, mii_act_proposal_get, mii_act_propose_write_tag, mii_act_outcome, mii_build_propose_dashboard_create, mii_tool_search, mii_tool_run.
See
| Tool | What it does | Key parameters | Kind |
|---|---|---|---|
mii_find | Turns spoken names ("pump 2 pressure") into tag and equipment ids. Returns resolved, needs_clarification (ranked candidates and a question to ask the person) or not_found. | query (required, max 300 characters), kind (any, tag, equipment), maxItems (1 to 50, default 12) | Read |
mii_see_read | Current value of up to 32 tags with unit, quality and time. | tagIds (1 to 32) or name | Read |
mii_see_values | Live values, optionally limited. | deviceId, pathPrefix, quality (good, uncertain, bad, unknown), query, maxItems, cursor, name | Read |
mii_see_find (old name mii_find_values) | Live values whose name, path or device contains all words. | query (required) | Read |
mii_see_describe | Unit, type, device, last value and source of one tag. | tagId, path or name | Read |
History (needs read_history)
| Tool | What it does | Key parameters | Kind |
|---|---|---|---|
mii_history_series | One tag over a range, at most 7 days per call. Bad points carry no value. | from (required), to (default now), tagId/path/name, maxPoints (default 2000), cursor | Read |
mii_history_last | Last recorded point or points of a tag. | tag selector | Read |
mii_history_table | Several tags over one range, as rows. | tags, range | Read |
mii_history_explore | Lists tags that have history. | Read |
Understand
| Tool | What it does | Key parameters | Kind |
|---|---|---|---|
mii_understand_graph | Compact plant graph. | Read | |
mii_understand_impact (old name mii_impact) | What is affected if a node stops, from free text. | Read | |
mii_understand_locate | Finds an equipment and its devices by name. | Read | |
mii_understand_trace_value | Where a value comes from: tag, device, driver, Site Runtime. | Read | |
mii_understand_list_edges | Links between equipment (feeds, controls, depends_on). | Read | |
mii_understand_model | The ISA-95 model: site, area, line, equipment and tag counts. | Read | |
mii_kg_graph | Nodes and links around a node. | Read | |
mii_kg_impact | Downstream hops of an equipment or device. | id or name | Read |
mii_kg_equipment_state | Current state of one equipment with its important tags. | equipment (id) or name | Read |
mii_kg_library | Built-in equipment class templates. | Read | |
mii_kg_library_class | One class template with its properties. | Read | |
mii_kg_edges | Stored graph links. | Read | |
mii_kg_vocabulary | Relations, kinds, quantities and roles. | Read | |
mii_kg_suggest_semantics | Suggested quantity and role for an equipment's tags. Nothing is applied. | Read | |
mii_kg_migration_report | Report of the old-link migration. | Read | |
mii_config_changes (read_history) | Configuration and setpoint change log. | from, to | Read |
mii_unit_history | A series' unit over time. Never aggregate across unit segments. | Read |
Analyze (needs read_history; the tools compute, the assistant explains)
| Tool | What it does | Key parameters | Kind |
|---|---|---|---|
mii_analyze_what_changed | What differs in a part of the plant compared to a reference period. | scope (required), window (default 1h), reference (default 24h), at, lang | Read |
mii_analyze_explain_alarm | Why an alarm may have come, ordered by evidence. | alarmId (from mii_monitor_alarms) or tagId/path/name, window (default 30m), at, lang | Read |
mii_analyze_explain_stop | The newest stop of an equipment and what preceded it. | equipment (required), window (default 30m), at, lang | Read |
mii_analyze_shift_summary | One shift of a plant part: run time, stops, alarms, unusual tags, configuration changes. | scope (required), shift (current or previous), from, to, lang | Read |
mii_analyze_root_cause | Ranked candidates with evidence. Candidates, not causes. | scope or tagId/path/name, window (default 1h), at, lang | Read |
mii_analyze_tag | Usual level, steps, trend with time to limit, gaps and stuck signal. | tagId/path/name, from, to | Read |
mii_analyze_compare | Compares two periods and says whether the difference exceeds chance. | fromA, toA, fromB, toB (required), tag or scope | Read |
mii_analyze_correlate | Which tags move with one tag, and with what delay. | tag or scope, with (max 24 tag ids), maxLag (default 10m), from, to | Read |
mii_analyze_health | Equipment against its class limits. | equipment (required), window (default 24h) | Read |
mii_analyze_data_quality | Gaps and failed reads for a tag (default last 24 h). | tag selector | Read |
Monitor, process and production
| Tool | What it does | Key parameters | Kind |
|---|---|---|---|
mii_process_current | Current shift, site time zone, running production orders and open stops. | site | Read |
mii_sor_oee (read_history) | OEE: availability, performance, quality (ratios 0 to 1) and counts. | equipment, from (default 7 days before to), to, group (total, shift, day, order), order | Read |
mii_sor_oee_current | OEE of the running shift. | Read | |
mii_sor_oee_losses | Downtime by reason (Pareto). | Read | |
mii_monitor_alarms | Alarms active now. | query, limit, cursor | Read |
mii_monitor_inventory (old name mii_inventory) | Plant inventory. | Read | |
mii_monitor_devices | Devices and their state. | Read | |
mii_monitor_runtimes | Site Runtimes with last heartbeats. | Read | |
mii_monitor_runtime_detail | One Site Runtime in detail. | Read | |
mii_monitor_system | System state. | Read | |
mii_monitor_quality | Tags with bad, uncertain or old values. | Read | |
mii_monitor_uplinks, mii_monitor_uplink_get | Uplinks and one uplink. | Read | |
mii_monitor_subscriptions | Uplink subscriptions. | Read | |
mii_monitor_alarm_journal | Alarm journal. | Read | |
mii_monitor_alarm_definitions | Alarm definitions. | Read | |
mii_monitor_ops | Console version and uptime, disk, database size, backup status, runtime health. | Read | |
mii_monitor_change_log (read_audit) | Who changed what, from the audit chain. | Read | |
mii_process_downtime | Stops with reasons, a Pareto and totalSeconds (default last 24 h). | Read | |
mii_process_orders | Production orders: queue, running, done. | Read | |
mii_governance_withheld | Tags withheld by the egress policy and why. Never values. | Read |
Act (propose only)
| Tool | What it does | Key parameters | Kind |
|---|---|---|---|
mii_act_propose_write_tag (write_tags) | Propose writing a value to a tag. Tags with a safe-write policy must have min and max set. | deviceId, tagId, value (required: number, boolean or string), reason (max 2000 characters), analysisId | Propose |
mii_act_propose_ack_alarms (ack_alarms) | Propose to acknowledge or shelve alarms. | alarmIds (1 to 50, required), action (ack or shelve), reason, analysisId | Propose |
mii_act_proposal_get | State of one proposal. | id (required) | Read |
mii_act_proposals | List proposals. | Read | |
mii_act_outcome (read_history) | What an executed proposal changed, with evidence tags before and after. | id (required), window, lang | Read |
mii_act_audit | Who proposed, decided and executed. | Read | |
mii_act_approve, mii_act_reject, mii_act_execute | Decide. Exist only when the plant sets MI_MCP_ALLOW_HITL_EXECUTE=true, only for people, never for agent credentials. | Decide |
Build (propose only)
| Tool | What it does | Key parameters | Kind |
|---|---|---|---|
mii_build_list_devices, mii_build_get_device | Devices and one device. | Read | |
mii_build_list_rules, mii_build_list_dashboards, mii_build_list_uplinks, mii_build_list_protocols | Rules, dashboards, uplinks, protocols. | Read | |
mii_build_propose_dashboard_create | Propose a dashboard. The server builds the layout from an equipment. Approval needs approve_dashboards. | equipment (id or code) or dashboard (object with a name; panels only without equipment), reason, analysisId | Propose |
mii_build_propose_dashboard_update, mii_build_propose_dashboard_delete | Change or delete a dashboard. | Propose | |
mii_build_propose_device_create | Propose a device. | name, protocolId, runtimeId, equipmentId, configuration (host, port) | Propose |
mii_build_propose_device_update, mii_build_propose_device_delete | Change or delete a device (delete is high risk). | Propose | |
mii_build_propose_tags_upsert | Add or change tags, up to 1000 per group. pruneToNames removes the others. | Propose | |
mii_build_propose_rule_create, mii_build_propose_rule_delete | Create or delete a rule. | Propose | |
mii_build_propose_uplink_create, mii_build_propose_uplink_delete | Create or delete an uplink. | Propose | |
mii_build_propose_graph_edge | Add, change or delete a plant graph link. | Propose |
Meta
| Tool | What it does | Key parameters | Kind |
|---|---|---|---|
mii_tool_search | Finds tools that are not listed, by task, in English or Turkish. | query (required), toolset, limit (default 6, max 20) | Read |
mii_tool_run | Runs a found read-only tool. Refuses propose tools. | name (required), arguments | Read |
mii_meta_whoami, mii_meta_plant, mii_meta_capabilities, mii_meta_toolsets, mii_meta_licence | Who you are, plant info, your capabilities, toolsets, licence. | Read |
Resources and prompts
Resources: mii://plant, mii://inventory, mii://graph, mii://alarms/active, mii://uplinks, mii://protocols, mii://kg/vocabulary, mii://docs/safety, mii://device/{deviceId}, mii://tag/{tagId}, mii://equipment/{equipmentId}/state.
Prompts (English and Turkish): shift_handover, why_did_it_stop, explain_alarm, what_changed, compare_periods, oee_review, propose_setpoint, diagnose_stale_or_bad, impact_of_outage, explain_value, onboard_device, uplink_health, pick_protocol.
Example conversation
A shift lead connects Claude Code with an operator credential. The values below are illustrative.
You: Why did the Filler stop on Line 1?
Assistant: (calls
mii_findwith "Filler", thenmii_analyze_explain_stopfor the Filler.) The newest stop began at 10:42. Before it, Pressure on the Compressor fell from 6.8 to 5.1 bar (quality good). These are candidates, not proven causes.You: Propose to set the Filler speed setpoint to 90.
Assistant: (reads the tag with
mii_see_read, then callsmii_act_propose_write_tag.) I created proposalprop_...forDEMOFOODS/IZMIR/BOTTLING/LINE1/FILLER/SpeedSetpoint= 90. Current value is 120. Nothing is written yet; a person must approve it in Approvals.
The assistant must not say something was changed until mii_act_proposal_get reports the proposal as executed.
Permissions and audit
- Authentication failures: 401 means the secret is missing, wrong, disabled, or its owner is disabled. 403 means no
read_config, or a browserOriginthat is not allowed (MI_MCP_ALLOWED_ORIGINS). 404 with a session id means the session ended and the client must initialize again. 429 means a limit was reached (seeRetry-After). 503 means MCP is switched off. - Limits per credential and minute: 600 messages, 120 calls and 10 proposals.
- Kill switch:
PUT /api/v2/mcp/settingswith{"enabled": false, "reason": "..."}(needsmanage_users). While it is off every request gets 503, on every Console within about two seconds. - End sessions:
POST /api/v2/mcp/sessions/revokewith{"credentialId": "..."},{"userId": "..."}or{"all": true}. Sessions are not logins; to lock a client out, revoke its credential. - Audit: every call is recorded: who, client, tool, result, time, size and a digest of the arguments, never the arguments or values. A call that cannot be audited is not answered. Read it with
GET /api/v2/mcp/usageandGET /api/v2/mcp/usage/calls(needsread_audit). Retention:MI_MCP_AUDIT_RETENTION_DAYS(default 365, 7 to 3650). - Metrics:
mi_console_mcp_calls_total,mi_console_mcp_call_seconds,mi_console_mcp_response_bytes,mi_console_mcp_withheld_total.
MCP error codes
Returned in the error text and in _meta["com.makeitintelligent/error"].
| Code | Meaning | What to do |
|---|---|---|
MI-MCP-400 | An argument is missing, unknown or has the wrong type. | Correct it and call again. |
MI-MCP-403 | The credential may not use the tool or see the object. | Do not repeat; ask for access. |
MI-MCP-404 | Unknown id or name, or out of scope. | Look it up with mii_find. |
MI-MCP-409 | The object is not in a state that allows this. | Read its state, then decide again. |
MI-MCP-413 | The result is too large. | Narrow the query or time range. |
MI-MCP-429 | Too many calls. | Wait for Retry-After. |
MI-MCP-500 | The call failed. | Try once more, then tell the person. |
MI-MCP-502 | Console, historian or Site Runtime answered with an error. | Try once more, then tell the person. |
MI-MCP-503 | A needed part is unavailable, or MCP is off. | Do not retry in a loop. |
MI-MCP-504 | The plant did not answer in time. | Try a smaller range once. |
Limits and good practice
- One credential per assistant, with the lowest ceiling that does the job.
- OAuth is not offered; ChatGPT cannot connect directly.
- Cloud assistants (Claude web, Copilot Studio) must reach the Console from the internet. A plant-network address does not work for them; ask your IT department before exposing it.
- A person can still approve a bad proposal, and a model can draw a wrong conclusion from right data. Read the reason and the current value in Approvals.
- Programs and reports should use API keys, not agent credentials.