I started using XCC today for connecting to a Marklogic server. I'd like to integrate with grunt and see what I can do when testing modules that either do or don't have a web interface. I will also have to see about doing the same thing with test cases when I know that I'm testing something specific. For now here is what I've got working from the CLI:
java -classpath "$XCC_HOME/lib/xcc.jar:$XCC_HOME/lib/xccexamples.jar" com.marklogic.xcc.examples.ModuleRunner xcc://admin:admin@localhost:10137 hello.xqy
I'll tweak it as I need changes to get the job done.