# MTConnect Mock Agent DEV MOCK only. Not prod. Local MTConnect agent + built-in VMC-3Axis simulator producing LIVE CHANGING data. For testing the MTConnect protocol driver. Image: `ladder99/agent:latest` (C++ cppagent + simulator adapter on :7878). ## Commands ```bash docker compose up -d # start agent (detached) docker compose down # stop + remove docker compose logs -f agent # follow logs ``` Agent serves on http://localhost:5000 ## Verify ```bash curl http://localhost:5000/probe # device model (MTConnectDevices XML) curl http://localhost:5000/current # latest value per data item (MTConnectStreams XML) curl http://localhost:5000/sample # historical observations from buffer (MTConnectStreams XML) ``` ## Endpoints - `/probe` — static device model. Devices, Components, DataItems. Device `VMC-3Axis`. - `/current` — snapshot: newest value + timestamp per DataItem. Poll repeatedly -> values change (Xact/Yact positions, SpindleSpeed, Execution, Line, Block). - `/sample` — stream of observations from ring buffer. Params: `?from=&count=&path=`. ## Proof live Two `/current` calls ~3s apart: `Position Xact` 0.8996 -> -0.2139, `Yact` -1.1855 -> -1.4569, `Line` 263 -> 271. Simulator runs an NC program on loop.