So I have multiple projects on multiple versions of Cayenne (plus Cayenne 
development itself). Got tired of juggling different Modeler versions and 
manually mapping the MCP. So, starting in 6.0, all of this is done behind the 
scenes by the Claude plugin. The bootstrap goes like this:

Install / update the plugin
Start prompting

That's it, no downloads or running "claude mcp". What happens behind the 
scenes: 

* The plugin include CayenneMcpLauncher.java (you might know, Java now allows 
running a source file without compilation as if it were a script). 
* When needed, the launcher installs the right version of the MCP jar (taken 
from Maven Central or the snapshots repo) into a private Claude folder. 
* Later, if any of your prompts ask to "open my model in the Modeler", it will 
also install the right version of the Modeler (also privately) and use that. 

Since the new snapshots are already published, you can test it now if you want. 
The only possible issue is if you already have 6.0 snapshots locally in ~/.m2. 
In which case the launcher won't refresh and you will first need to do "git 
pull ; mvn install.

Also, there is a new "upgrade" skill that will do everything for you from the 
model upgrade to reading UPGRADE.md and changing your code. So if you are 
feeling adventurous, your first prompt might be "upgrade my project to 6.0 on a 
branch" :) 

Finally, a note on Cayenne releases: the plugin version will need to be changed 
to the release version manually after each release (e.g. 6.0-M1). I added the 
instructions on the website. 

Andrus

 

Reply via email to