Most of the tools people use to talk to MOCA weren't built for MOCA. They're general-purpose SQL clients with a connection string pointed at a MOCA server, and they work, in the sense that they can send a command and show you rows back. What they don't do is understand that [...] means "this part is raw SQL" and [[...]] means "this part is Groovy," or that a MOCA command is a multi-word verb phrase and not a single identifier, or that the thing you're about to run might be about to touch a production warehouse mid-shift.
We built the WMSDiag MOCA Desktop Client because we wanted an editor that actually knew what it was looking at.
Autocomplete that understands where it is
Type select * from les_usr_ath where and the dropdown should show les_usr_ath's columns — not every column on the server, and not every table either. That sounds like the obvious behavior, but it only works if the editor is actually tracking bracket depth and clause position as you type, not just pattern-matching the last word. The client also knows the difference between typing a MOCA command name (list users, find file) and typing inside an embedded SQL or Groovy block, and switches what it suggests accordingly.
A handful of commands — sort result set is the current example — expand into their full, correctly-shaped usage as a snippet with real tab stops, instead of just the bare command name.
Format actually formats
Click Format and select * from les_usr_ath where usr_id is not null and login_id is not null turns into SELECT, FROM, and WHERE each on their own line, with AND/OR indented underneath — whether that SQL is inline in your command or sitting inside a [...] block, and without ever touching a [[...]] Groovy block it can't safely reformat.
Repeat runs, without a shell loop
Some things are worth watching — a queue depth, a job status — more than once. Any tab can be set to re-run itself every N seconds (minimum one), independently of every other open tab, so you can watch one query tick over while you work on something else in the tab next to it.
History with the actual result attached
Every command you run gets logged with its full text and its result — and unlike a plain scrollback, you can click back into a past run and see the actual rows you got, not just that you ran it. If the ten-minute-old query is the one you need again, load it back into the editor from there instead of retyping it.
Tracing that gets out of your way
Hit Start Trace and the dialog minimizes itself immediately — not closes, since it's still how you'll stop the trace when you're done, but out of the way, so you land straight back in the editor ready to run whatever you actually wanted traced. It sounds small. It's the kind of small that you only notice the first ten times you do it manually.
Built for people who already know MOCA
None of this replaces knowing MOCA. It's for the parts of the day that don't need to be slow: the autocomplete that doesn't make you type a table name twice, the format button that actually formats, the history you don't have to reconstruct from memory. If you're the person who gets handed a MOCA session and told "go find out why," this is the editor we wished existed for that.