Class McpLauncherLocator
java.lang.Object
com.shaft.commandline.session.McpLauncherLocator
Resolves a
LaunchSpec for shaft-mcp by probing, in order: an explicit
SHAFT_MCP_JAR override, the installer's per-user versions directory, and finally a
dev-checkout fallback that reconstructs a classpath for the thin shaft-mcp target jar.-
Constructor Summary
ConstructorsConstructorDescriptionCreates a locator that uses the real process environment and real per-OS/dev roots. -
Method Summary
Modifier and TypeMethodDescriptionlocate()Resolves how to launch shaft-mcp, trying the env override, then the installer versions directory, then the dev-checkout fallback.
-
Constructor Details
-
McpLauncherLocator
public McpLauncherLocator()Creates a locator that uses the real process environment and real per-OS/dev roots.
-
-
Method Details
-
locate
Resolves how to launch shaft-mcp, trying the env override, then the installer versions directory, then the dev-checkout fallback.- Returns:
- a ready-to-run
LaunchSpec - Throws:
McpException- if no shaft-mcp installation or dev build could be found
-