Andrus Adamchik created CAY-2943:
------------------------------------
Summary: CayenneModeler MCP: open_project tool
Key: CAY-2943
URL: https://issues.apache.org/jira/browse/CAY-2943
Project: Cayenne
Issue Type: Task
Reporter: Andrus Adamchik
Assignee: Andrus Adamchik
Fix For: 5.0-M2
Add an {{open_project}} tool to the CayenneModeler MCP server that locates a
local CayenneModeler installation and launches it with a project preloaded. The
tool handles four distributions — Mac {{{}.app{}}}, Windows {{{}.exe{}}},
cross-platform {{{}.jar{}}}, and a source-tree fallback under
{{assembly/target/}} for developers. Mac bundles are located structurally and
tolerate renaming; the {{.exe}} and {{.jar}} probes are strict literal-name
only, to avoid silently launching some unrelated program left next to the MCP
jar.
Liveness is confirmed via a Java Preferences handshake. The MCP server passes a
nonce on the launch command line and waits for the Modeler to write a small
record (pid, timestamp, resolved project path) under a nonce-scoped preferences
node — written only after the project has successfully loaded into the UI. A
missing handshake within the timeout reliably means something went wrong, and
the user can check the Modeler window for the actual reason.
Work spans two modules: discovery, launch, and the handshake watcher in
{{cayenne-mcp-server}} and {{{}modeler/cayenne-modeler{}}}.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)