Skip to main content

Connect an external AI assistant through MCP

This guide covers your own AI client (e.g. codex, claude code, workbuddy, doubao, qwen, etc.): page authorization, MCP pairing, connection management, and reviewing model operations. For questions, attachments and conversations inside NexusFlow, start with Use the built-in intelligent assistant.

Both options use the same Workbench permission boundary. The permission, review and undo guidance below applies to both; copying connection information and configuring an external client applies only to external clients.

MCP (Model Context Protocol) connects an AI client to the current page. It can inspect the model, edit its draft, validate it, start a simulation and access jobs already loaded on the page, within the permissions you grant. It cannot open other models or save the current draft for you. Permitted operations do not receive an additional universal platform confirmation.

Open AI Control​

  1. Open the target model or unsaved draft in Workbench.
  2. Click AI Control in the bottom status bar.
  3. Check Current object and deselect unnecessary permissions.
  4. Enable the switch at the top right.

Permission choices are locked while authorization is active. Disable AI Control before changing them, then enable and pair again.

AI Control panel and page authorization
AI Control panel and page authorization

The panel shows the current object, connection status, remaining time, MCP address, permissions and recent operations. The temporary MCP address is hidden in this screenshot.

Choose permission scopes​

PermissionWhat it allowsEffect
Read, results and screenshotsInspect the model, component definitions, Workbench knowledge, loaded jobs, results, statistics and screenshotsRead-only access may include business data
Edit current draftAdd, remove or move components; edit labels and parameters; connect ports; change sheets and layout; undo or redo; adjust dashboards and legendsChanges enter the unsaved draft immediately
Validate and start computationValidate the model and create and start a job from the current draft after validation passesValidation and starting share one permission; starting consumes resources
Task control and commandsPause, resume or terminate loaded jobs, save runtime snapshots, send component commands or remove jobs from the pageDirectly affects jobs and may not be reversible

For inspection, grant only read access. Keep read access alongside other scopes so the assistant can obtain current definitions, revisions and job states.

Pair an external client​

  1. Enable AI Control and click Copy connection information.
  2. Send the complete copied content to the intended AI client, rather than only the displayed MCP address.
  3. Ask it to connect and read context without editing or starting a simulation.
  4. Wait for Waiting for connection to become Connected.
  5. Verify Connected client before issuing instructions.
Use the complete connection information below to connect to the current
NexusFlow Workbench. First read the current object, model revision and loaded
jobs. Summarize only; do not edit, validate or start computation.

<Paste the complete copied connection information here>

The connection information is a temporary credential. Share it only with the intended client, never in public documentation, source control or group messages. Quick pairing does not require your platform username, password or login token.

If the client cannot interpret the copied information, it must support remote MCP over Streamable HTTP. Add the displayed MCP address in its MCP settings and follow its standard OAuth authorization flow. Ordinary chat interfaces do not necessarily support custom MCP connections.

External-client pairing flow
External-client pairing flow

Pairing and session lifetime​

ItemLifetime or restriction
Copied pairing informationValid for 10 minutes and one successful use
Newly copied informationInvalidates previous unused information
Page authorizationRemaining time is displayed; maximum eight hours
Connected clientWorks while the page authorization and connection remain valid

Copying is disabled after connection. To switch clients, click Disconnect client, then copy new information. This preserves page authorization and returns to the waiting state. Close now or disabling the switch revokes the entire page authorization.

Refreshing or closing the page, switching models or Workbenches, losing the page connection, revocation or expiry invalidates the connection. Enable authorization and pair again on the new page.

What the assistant can and cannot do​

With suitable permissions, the assistant can inspect topology, ports, parameters and definitions; capture the page or drawing; edit draft objects, including port and branch connections, in an undoable batch; validate and start jobs; query loaded results and statistics; adjust dashboards; and control loaded jobs or send available component commands. Available objects, commands and results depend on the current Workbench and loaded content. Include professional constraints and units in your requests.

It cannot search or open models outside the current page, create or share model-library records, save the current draft to the platform, access unloaded jobs, administer users or services, or undo completed job commands through model history. Successful editing means the draft changed, not that the model was saved.

Confirmation and a practical workflow​

Enabled permissions are the primary boundary. Read operations do not change the model. Edits write immediately to the draft. Validation alone does not save or start a job, while a start request validates and then creates and starts a job when validation passes. Task controls act on the current job state.

Some AI clients provide their own confirmations, but this depends on client settings. Ask for a plan first, then explicitly confirm the intended action:

Read the model and list the exact objects, parameter changes and expected
impact. Do not execute yet. After I confirm, apply one related batch of edits,
report the changed objects and capture the result. Do not save the model.

For inspection, use read permission only. For editing, save a known starting point manually, review one related batch at a time and verify it before saving. For simulation, review validation, confirm the model and proposed job name, then start and check the new job. Computation uses the current draft snapshot; later draft edits do not change that snapshot.

Before task control, confirm the job name, state, target component, command and impact. A terminated job cannot resume from the same point, and model undo cannot retract a sent command. A conversational agreement is not permission isolation; grant only the scopes needed for the current step.

Review changes​

  1. Inspect Recent operations in AI Control for operation names, status and time. The latest entry is first; the list retains up to 20 entries.
  2. Ask for the affected objects and locate or capture them on the canvas.
  3. Check the destination sheet, connection direction and topology.
  4. Select edited components and verify values, units and conditional parameters.
  5. Validate the model and resolve new errors or warnings.
  6. Save manually once satisfied.

Recent operations is an activity log, not a complete before-and-after parameter diff. Use the canvas, parameter panel, screenshots and validation to review important edits.

Reviewing model changes
Reviewing model changes

Undo changes​

Multiple operations in one AI edit request form one draft history entry. If a step fails, completed steps in that batch roll back. After success, use the page undo command or Ctrl+Z to undo the batch. The assistant can also undo with edit permission.

Undo applies to the latest history entry. If you edited manually after the AI batch, check the order so that you do not unexpectedly undo your own work first. Undoing the draft does not stop jobs or retract commands.

If the model revision changed after the assistant read it, ask it to read the latest revision and rebuild the plan instead of repeatedly retrying stale edits.

Status and connection problems​

StatusMeaning and next step
ClosedChoose scopes and enable authorization when needed
Waiting for connectionCopy fresh information and pair the client
ConnectedVerify the client before requesting operations
ExecutingWait for the operation; avoid editing the same objects concurrently
ErrorRecord the message and re-enable authorization if appropriate

Use Close now when finished. Use Disconnect client to switch clients. If an unfamiliar client appears, disconnect it and revoke page authorization.

ProblemWhat to check
No AI Control entryOpen a Workbench model or task page; ask the administrator whether the deployment supports it
Enabling failsSelect at least one scope and check access to the model and Workbench
Stays waitingUse complete, fresh pairing information; check Streamable HTTP support, network reachability and OAuth completion
Cannot pair another clientOnly one client is allowed; disconnect the current client first
Permission deniedDisable authorization, choose the required scope, re-enable and pair again
Job not foundLoad the target job on the current page, then request a fresh job list
Revision conflictRead the current model and confirm a new plan
Connection fails after refreshReauthorize and pair on the current page
Client asks for a platform passwordDo not provide it; use quick pairing or standard OAuth