# XMCP – Control the Xojo IDE from your AI assistant

**URL:** <https://forum.xojo.com/t/xmcp-control-the-xojo-ide-from-your-ai-assistant/87749>\
**Category:** AI\
**Created:** [February 22, 2026, 4:34pm UTC](https://forum.xojo.com/t/xmcp-control-the-xojo-ide-from-your-ai-assistant/87749 "2026-02-22T16:34:52Z")\
**Posts on this page:** 5\
**Page:** 3

<div class="post-metadata">

**Author:** ![Dirk\_Cleenwerck](https://forum.xojo.com/user_avatar/forum.xojo.com/dirk_cleenwerck/32/533_2.png) [@Dirk\_Cleenwerck](https://forum.xojo.com/u/Dirk_Cleenwerck)\
**Post date:** [September 22, 2026, 5:25pm UTC](https://forum.xojo.com/t/xmcp-control-the-xojo-ide-from-your-ai-assistant/87749/41 "2026-09-22T17:25:09Z")

</div>

Going over it already. Hit my token limit so need to wait an hour 😅

---

<div class="post-metadata">

**Author:** ![OJAN](https://forum.xojo.com/letter_avatar_proxy/v4/letter/o/f1d935/32.png) [@OJAN](https://forum.xojo.com/u/OJAN)\
**Post date:** [September 29, 2026, 3:21pm UTC](https://forum.xojo.com/t/xmcp-control-the-xojo-ide-from-your-ai-assistant/87749/42 "2026-09-29T15:21:47Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Eugene\_Gonchar](https://forum.xojo.com/letter_avatar_proxy/v4/letter/e/ebca7d/32.png) [@Eugene\_Gonchar](https://forum.xojo.com/u/Eugene_Gonchar)\
**Post date:** [September 30, 2026, 4:22pm UTC](https://forum.xojo.com/t/xmcp-control-the-xojo-ide-from-your-ai-assistant/87749/43 "2026-09-30T16:22:43Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Clifford\_Antrim](https://forum.xojo.com/user_avatar/forum.xojo.com/clifford_antrim/32/507_2.png) [@Clifford\_Antrim](https://forum.xojo.com/u/Clifford_Antrim)\
**Post date:** [September 30, 2026, 4:32pm UTC](https://forum.xojo.com/t/xmcp-control-the-xojo-ide-from-your-ai-assistant/87749/44 "2026-09-30T16:32:43Z")

</div>

It completely changed how I work with Xojo and AI - not quite perfect, but pretty close and a LOT better than without it.

---

<div class="post-metadata">

**Author:** ![OJAN](https://forum.xojo.com/letter_avatar_proxy/v4/letter/o/f1d935/32.png) [@OJAN](https://forum.xojo.com/u/OJAN)\
**Post date:** [October 21, 2026, 1:15pm UTC](https://forum.xojo.com/t/xmcp-control-the-xojo-ide-from-your-ai-assistant/87749/45 "2026-10-21T13:15:24Z")

</div>

**XMCP and Xojo’s new Agentic Mode — plus a correction**

Xojo 2026r3 introduced [Agentic Mode](https://blog.xojo.com/2026/10/20/use-ai-coding-agents-with-xojo-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.

[Previous page](https://forum.xojo.com/t/xmcp-control-the-xojo-ide-from-your-ai-assistant/87749.md?page=2)
