Record Class LaunchSpec
java.lang.Object
java.lang.Record
com.shaft.commandline.session.LaunchSpec
- Record Components:
baseCommand- the process command that launches a stdio MCP serverjarPath- the resolved shaft-mcp jar path (for diagnostics / session metadata)
How to launch shaft-mcp. The
baseCommand is a ready-to-run process command that starts an
MCP server in its default (stdio) profile, e.g. [java, @<versionDir>/shaft-mcp.args] or, for
a dev checkout, [java, -cp, <classpath>, com.shaft.mcp.ShaftMcpApplication].
To start the HTTP daemon, append --spring.profiles.active=http --server.port=<port> to
baseCommand. The shaft-mcp jar has no Main-Class, so java -jar is never used.
-
Constructor Summary
ConstructorsConstructorDescriptionLaunchSpec(List<String> baseCommand, String jarPath) Creates an instance of aLaunchSpecrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thebaseCommandrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.jarPath()Returns the value of thejarPathrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
LaunchSpec
Creates an instance of aLaunchSpecrecord class.- Parameters:
baseCommand- the value for thebaseCommandrecord componentjarPath- the value for thejarPathrecord component
-
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
baseCommand
Returns the value of thebaseCommandrecord component.- Returns:
- the value of the
baseCommandrecord component
-
jarPath
-