Mcpx4J on Android: A Brand New Chicory Compiler
We are thrilled to announce the release of a new version of mcpx4j, the Java connector and runtime for MCP.run servlets—now with native Android support!
This new version depends on the latest Extism Chicory SDK and most importantly, it includes support for a brand new experimental backend of the Chicory compiler targeting Android.
If you are familiar with the Android platform, you know that Android uses Dalvik bytecode (DEX) instead of standard Java bytecode. Until now, this meant that dynamic loading of Wasm binaries on Android was only possible through Chicory's interpreter. With this new backend, we can now compile Wasm binaries directly to Dalvik bytecode at runtime, allowing us to run them natively on Android devices!
Follow the instructions in the Android Gemini README to get started with the new mcpx4j version and the Android backend of the Chicory compiler. The new backend can also be used with the Extism Chicory SDK, and even with vanilla Chicory if you want to experiment with it.
Get started at dylibso/chicory-compiler-android, and feel free to report an issue if you find any problems or have questions.
If you want to learn more about how all of this works, head over to evacchi.dev where you'll find a detailed write-up on the technical challenges we faced and how we overcame them.
If you find the Chicory Android backend interesting, get in touch with us and let us know what you would like to build with it!