---
name: iblai-connect-plex
description: "Read and write Plex Smart Manufacturing Platform data through the Plex APIs (Plex Developer Portal) and expose it to an ibl.ai agent as an MCP tool. Use when the user asks an agent to work with Plex Smart Manufacturing Platform data, or to set up a Plex Smart Manufacturing Platform MCP connection on ibl.ai."
metadata:
  kind: guide
---

# Plex Smart Manufacturing Platform connector for AI agents

> A starting point maintained on ibl.ai at https://ibl.ai/developer/connectors/plex — not part of the iblai/base repository. Checked against Rockwell Automation (Plex)'s documentation on October 20, 2026; test it against your own Plex Smart Manufacturing Platform setup before you rely on it.

The Plex Smart Manufacturing Platform from Rockwell Automation is a cloud ERP and MES. It holds parts, BOMs, production lines and workcenters, inventory containers, purchase and sales orders, quality plans and accounting.

## Auth & conventions

- **API:** Plex APIs (Plex Developer Portal) (REST). Managed REST endpoints grouped into API products such as Parts, BOM, Production Operations Management, Inventory Tracking, Purchase Orders, Sales Orders, Control Plans and Accounts Payable Invoices.
- **Base URL:** https://[test.]connect.plex.com/{collection}/{version}/{resource}
- **Access:** Issued by your administrator. Developer portal access needs Plex IAM and a support case filed with the customer's Plex Champion. A portal user then creates an app, selects its API products, and receives the Consumer Key and Secret.
- **Auth:** API key (X-Plex-Connect-Api-Key header). Every request carries the app's key in the X-Plex-Connect-Api-Key header. X-Plex-Connect-Tenant-Id or X-Plex-Connect-Customer-Id targets a tenant (PCN) other than the default. Test and production keys must differ.
- **Limits:** Exceeding a rate limit returns HTTP 429; when a Retry-After header is present, wait that interval before retrying. Keys can carry API restrictions and expiration dates.
- Keep Plex Smart Manufacturing Platform credentials in environment variables or the ibl.ai credential store. Never print a token in chat and never commit one to a file.
- Destructive or outward-facing calls are marked **Confirm with the user first** — do.

## Reads

- **Production** — Production lines, workcenters and their status, batches, production entries and labor entries.
- **Purchase orders** — Purchase orders, line items, prices, statuses and types.
- **Inventory containers** — Containers by serial number and master units.
- **Parts and BOMs** — Parts, BOMs, part specifications and process routings from their API products.

## Writes

- **Operator clock in and out** — Clock operators in or out of a workcenter.
- **Lot assignment** — Assign a lot or add source inventory at a workcenter.
- **Container RFID** — Update the RFID on a container or master unit.
- **AP invoices** — Create or update accounts payable invoices and link receipts to them.

## Expose it to an ibl.ai agent (MCP)

Rockwell Automation (Plex) did not publish an MCP server of its own when this skill was checked. Host a small MCP server that wraps the calls above, then register it below.

First install the ibl.ai platform skills and connect your organization (writes `IBLAI_ORG`, `IBLAI_USERNAME` and `IBLAI_API_KEY` to `.env`):

```bash
npx skills add iblai/base --all
# then, in your coding agent:
/iblai-api-login
```

Every call below sends `Authorization: Api-Token $IBLAI_API_KEY`.

1. **Register the server** — `POST https://api.iblai.app/dm/api/ai-mentor/orgs/$IBLAI_ORG/users/$IBLAI_USERNAME/mcp-servers/` with `name`, `url`, `transport` (`sse` | `websocket` | `streamable_http`) and `auth_type` (`none` | `token` | `oauth2`). Capture the returned `id`.
   - For an API key or service credential use `auth_type=token` with `auth_scope=platform` for one key across the organization, or scope it to a single agent for one key per agent.
2. **Create the connection** — `POST https://api.iblai.app/dm/api/ai-mentor/orgs/$IBLAI_ORG/users/$IBLAI_USERNAME/mcp-server-connections/` with `server`, `scope` (`platform` | `mentor` | `user`), `auth_type`, and either `credentials` + `authorization_scheme` or a `connected_service` id for OAuth. Credentials are masked on read; never send a masked value back.
3. **Enable it on the agent** — `GET https://api.iblai.app/dm/api/ai-mentor/orgs/$IBLAI_ORG/users/$IBLAI_USERNAME/mentors/{agent_id}/settings/`, add `mcp-tool` to `tool_slugs` and the server id to `mcp_servers`, then `PATCH` the full lists back. They are replaced, not merged.

Full reference: https://ibl.ai/developer/platform/mcp/mcp-connections and the `/iblai-api-agent-mcp` skill.

## Example prompts

- "What is the current status of every workcenter on production line 3?"
- "Find container 00123456 by serial number and show its part and location"
- "List open purchase orders from supplier ACME with their line prices"
- "Clock operator 1042 out of workcenter WC-210"

## Guardrails

- Production records, lot traceability, quality data and supplier pricing are proprietary; automotive and defense suppliers may also hold customer-controlled or export-controlled data.
- Request the narrowest Plex Smart Manufacturing Platform scopes or role the task needs, and prefer a read-only credential for agents that only answer questions.
- Return the fields the user asked for, not whole records; do not paste personal data into chat that the user did not request.
- Before any write, show the user exactly what will change and wait for a yes.
- Respect the documented limits above: page through results and back off on rate-limit responses instead of retrying in a loop.

## References

- Plex Developer Portal: Get Started: https://developers.plex.com/getstarted
- Production Operations Management API: https://developers.plex.com/docs/production-operations-management-api
- Best practices for Plex API keys: https://developers.plex.com/best-practices
- This connector on ibl.ai: https://ibl.ai/developer/connectors/plex
- ibl.ai MCP server connections: https://ibl.ai/developer/platform/mcp/mcp-connections
