Recommended way to expose AionUI WebUI/agent actions as a remote MCP server for ChatGPT/OpenAI? #3137
Replies: 1 comment
|
Hi @Danissimode — I dug through the current source (AionUi TL;DR: There is a real HTTP REST + WebSocket protocol — it's what the WebUI, the desktop renderer, and the mobile app all talk to — but it is an internal, unversioned contract, not a documented public API. AionUi is an MCP client, not an MCP server; there is no supported "AionUi-as-MCP-server" mode (the MCP servers it does run are internal, for its own agents). A thin MCP adapter over the REST/WS API is technically straightforward — every action you listed has a concrete endpoint — but you must treat it as private API that can break on any release, and your VPS gateway must be the authentication boundary, because in the mode AionUi actually ships, the backend API itself does not require credentials. Your localhost + reverse-tunnel topology is the right shape (it's literally what Background: the actual architecture (this changed a lot recently)Since the 2.x line, the business backend is no longer in the Electron main process. It is
WebUI mode is served by With that map, your five questions: 1. Is there a stable/documented WebUI HTTP API or WebSocket protocol for external automation?There is a real protocol; there is no stable, documented public contract. Honest answer: no. What exists (all verifiable in source):
What does not exist: no OpenAPI spec (grep finds none in either repo), no API versioning, no documented endpoint reference for third parties, no compatibility promise. The one surface explicitly declared 2. Is external automation through the WebUI API supported, or internal/private?Internal/private. The REST+WS API is consumed by first-party clients only: the desktop renderer, the WebUI SPA, the mobile app ( The supported remote-interaction paths today are:
Automation over the raw API will work (it's the same API the SPA uses), but if it breaks in a release you're on your own. 3. Is there a recommended way to expose AionUI itself as an MCP server?No. Be careful to separate the three MCP roles in the codebase:
None of these is a network-reachable "control AionUi" MCP server, and there is no config flag or documented path to turn AionUi into one. So today: no recommended way exists — which is exactly the gap your proposed adapter would fill. (If you build it, it lives outside AionUi as a gateway, or you could propose it upstream as a feature/extension.) One caveat if you were hoping to piggyback on the extension system ( 4. Would you recommend building a thin MCP adapter mapping remote MCP tools to AionUI WebUI API/WebSocket calls?Yes — with eyes open. It's viable, and every action on your list already has a concrete endpoint (client-side names from
Adapter shape I'd recommend:
5. Is localhost-only WebUI + reverse SSH tunnel/VPN + VPS MCP gateway safe/recommended?The topology is sound and matches what the project itself documents —
Bottom line: yes — localhost-only + reverse tunnel + authenticated VPS MCP gateway is the right architecture given today's code, provided the gateway is the auth boundary and the tunnel stays loopback-bound on the VPS. Build the adapter against REST ( (Versions referenced: AionUi v2.2.2 @ |
Uh oh!
There was an error while loading. Please reload this page.
Hi AionUI team,
I’m exploring a safe way to connect AionUI with ChatGPT/OpenAI through a remote MCP gateway.
My target architecture:
ChatGPT / OpenAI remote MCP client
-> HTTPS MCP server on VPS
-> reverse SSH tunnel / VPN
-> local AionUI WebUI on Mac
-> AionUI agents / MCP tools / project workspace
want to keep AionUI local-only, avoid exposing the full WebUI publicly, and expose only a few safe actions through MCP, such as:
Questions:
I want to avoid browser UI automation and use a stable API or officially recommended integration path if available.
Thanks!
All reactions