Going over it already. Hit my token limit so need to wait an hour ![]()
Dirk’s work on XMCP is now all merged.
XMCP now runs on Windows as well as on the Mac. Dirk did that port from the ground up: finding the Xojo IDE on Windows, keeping the IDE alive when a project is reloaded, and testing everything on both platforms. So if you’re on Windows, he’s the one to thank.
His latest contribution benefits everyone, Mac users included:
- The IDE no longer crashes when a build takes a long time or a dialog waits for a click. Before, XMCP could give up waiting and close the connection, and the IDE crashed when it answered. Now XMCP waits it out.
- Clearer error messages. Compile errors, warnings and build failures come back as readable text with the right line numbers, the same way in every tool.
- Faster. Most IDE calls are about 200 ms quicker.
Everything was tested on both macOS and Windows. Thanks, Dirk.
I am just here to Thank all of contributors!
For me It is hard to choose Xojo, for its lack of integrations with AI assisted development, I hope this XMCP changes that and I start using XOJO more
It completely changed how I work with Xojo and AI - not quite perfect, but pretty close and a LOT better than without it.
XMCP and Xojo’s new Agentic Mode — plus a correction
Xojo 2026r3 introduced Agentic Mode, and I think it’s a really good step. Having the IDE itself pick up an agent’s edits and report compile errors back to it is exactly the kind of support AI-assisted Xojo development has been missing, and it’s great to see Xojo build it in. Thanks to the Xojo team for that.
I’ve tested it together with XMCP, and the two fit well. The usage guide the AI reads at the start of a session now knows about it.
What Agentic Mode does, and what XMCP adds
With Agentic Mode on, the IDE reloads the files the AI edits on disk by itself, so the AI no longer needs revert_project after every change. The AI can also start a debug run by creating XojoRunProject.txt in the project folder. Compile errors come back in XojoCompileErrors.txt.
But Agentic Mode only reports compile errors. If the app compiles and then throws an exception, the AI never hears about it. That is where XMCP comes in: get_debug_log gives the AI the exception message and stack, and get_system_log gives it the System.DebugLog output. It can also still step through the debugger, stop the run, build and search the docs.
A correction to what I wrote for v1.3.0
Back in May I wrote that get_debug_log is only useful in built apps, because the debugger intercepts exceptions in debug mode. That was wrong. App.UnhandledException also fires in debug runs:
- With Project > Break On Exceptions off, the handler runs right away and the AI gets the full exception, without the debugger stopping. It is an IDE-wide setting, so remember to turn it back on afterwards.
- With it on, the debugger stops first, and the handler runs once the debugger is resumed.
If you added the crash handler from the usage guide, update it
The old handler was a Sub. It logged the exception, but then the app showed Xojo’s “The application must shut down” dialog. An AI can’t click that away, so the run just hung. The new handler is a Function ... As Boolean that returns DebugBuild: a debug run keeps going, and a built app still quits. It also writes the log to the right place on Windows now; before, Windows apps logged to a path XMCP never read. You’ll find the new handler in usage-guide.md.
Updating
No new tools and nothing to rebuild for these changes: pull from GitHub and copy the new usage-guide.md next to your XMCP binary.
All of this is tested with Xojo 2026r3 on macOS only. If someone on Windows tries Agentic Mode with XMCP, I’d love to hear whether it behaves the same.