Describe the device. Keep control of the model.
Tell your own AI agent what device you need and what you want to test. With SPX MCP, the agent can work with library models or create a model, run an instance and help check its behavior.
The agent handles the individual tool calls in the background. You can follow its progress, answer questions when needed and inspect the editable model and results.
From one request to a running device
Describe your goal in a single request. The agent carries out the intermediate steps and reports back.
Before you start: install SPX, start the environment and open the prepared workspace in your local AI agent. Follow the MCP connection guide if needed. The native installer prepares the workspace; you provide your own AI client.
- Ask your agent for a device and the behavior you want to test.
- The agent prepares the device: it can use a library model or create one and configure it through SPX tools.
- The agent runs and tests it: it can start an instance and check its behavior, asking for details or approval when needed.
- Explore the result: review the report and open SPX UI to see live values and the chart.
Your agent's SPX workspace
SPX Setup prepares a local workspace for your AI agent. Open that folder in a supported local agent to give it the SPX instructions and project-level MCP connection it needs to work with your installation.
Your AI agent
Opens the workspace and responds to your request.
Installer-prepared workspace
Model context
Model guidance, examples and catalog
SPX MCP connection
Local MCP tools and project configuration
SPX runtime
Models, instances, live state and configured device connections.
The agent uses workspace context and MCP tools to prepare models and operate the running SPX environment.
- Model context: guidance for authoring models, a catalog and examples help the agent find or build a device and understand its behavior and protocol mappings.
- MCP tools: the workspace includes the local MCP setup and client configuration. The agent uses these tools to work with SPX rather than requiring you to issue each operation yourself.
- Running SPX: after setup, the same workspace connection supports runtime work: creating and starting instances, inspecting live state and changing supported values. The available operations depend on the model and the agent's permissions.
The workspace is local to your installation. Your agent is a separate application; opening a folder in a web chat alone does not provide local MCP access. During installation the agent may ask for configuration details and approval before applying the setup.
Example: Shelly Plus H&T sensor
The Shelly Plus H&T is a real Wi-Fi temperature and humidity sensor with MQTT support. Ask your agent to use the manufacturer's technical documentation as the source for a virtual device. This example needs a broker reachable from SPX.
1. Give your agent a concrete task
Using the official Shelly Plus H&T documentation, create and run an SPX model of this temperature and humidity sensor with MQTT. Simulate changing temperature and humidity readings, test the messages using my configured broker, and report the topics, payloads and observed results. Tell me what you could not verify from the documentation.
The agent can retrieve the documentation if its tools have internet access, build the model and handle the SPX operations. It may ask for broker settings or other missing details, and request approval according to your agent's permissions. If it cannot access a source, provide the documentation or a local copy.
2. Follow the result
The agent can report the instance, MQTT topics, payloads and observed readings. Open the instance in SPX UI to inspect its attributes and connection. If you want to go deeper, ask the agent to explain the model or open its YAML and protocol mappings.

3. Observe and verify
In an initial local test, GPT-6 Luna (Medium) created a prototype that published synthetic Shelly-style MQTT status messages. A subsequent numeric demonstration keeps temperature, humidity and battery as numbers in SPX, formats status messages from those values, and publishes them through MQTT. A local Mosquitto subscriber received valid JSON as the numeric values changed.
The chart uses a simple simulated temperature target to produce a changing measurement; the target is a simulation control, not a claim that the physical sensor controls temperature. The example covers selected status topics and simplified behavior, not complete device compatibility. No physical Shelly was used.
For a separate, verified library-model example, see the MQTT Quickstart. When finished, stop the instance.
Review before you rely on it
- Behavior: check units, ranges, timing and assumptions against the source documentation.
- Communication: verify addresses or topics, payload formats and read/write mappings with your client.
- Repeatability: test the expected response, a failure case and recovery. Keep the reviewed YAML for reuse.
AI helps draft and refine the model. Validation still needs your engineering judgment and observed runtime results.
For other interfaces, see the Modbus, OPC UA, BACnet and KNX examples. Use the Model Language to review a draft, or Developers to explore the library and Python workflows. AI is optional; SPX also supports the browser UI and code-defined models.
