You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Enhance MCPServer to support additional Java options for TLC execution.
- Added `extraJavaOpts` parameter to allow users to specify custom Java options for the JVM.
This feature e.g. adds support for time-boxing the _check command.
[Feature]
Signed-off-by: Markus Alexander Kuppe <[email protected]>
Copy file name to clipboardExpand all lines: src/lm/MCPServer.ts
+17-8Lines changed: 17 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -633,15 +633,18 @@ export class MCPServer implements vscode.Disposable {
633
633
fileName: z.string().describe('The full path to the file containing the TLA+ module to parse.'),
634
634
cfgFile: z.string().optional().describe('Optional path to a custom TLC configuration file.'),
635
635
// eslint-disable-next-line max-len
636
-
extraOpts: z.array(z.string()).optional().describe('Optional array of additional command-line options to pass to TLC beyond [-modelcheck].')
636
+
extraOpts: z.array(z.string()).optional().describe('Optional array of additional command-line options to pass to TLC beyond [-modelcheck].'),
637
+
// eslint-disable-next-line max-len
638
+
extraJavaOpts: z.array(z.string()).optional().describe('Optional array of additional Java options to pass to the JVM (e.g., ["-Xmx4g", "-Dtlc2.TLC.stopAfter=60"]).')
@@ -653,15 +656,18 @@ export class MCPServer implements vscode.Disposable {
653
656
fileName: z.string().describe('The full path to the file containing the TLA+ module to parse.'),
654
657
cfgFile: z.string().optional().describe('Optional path to a custom TLC configuration file.'),
655
658
// eslint-disable-next-line max-len
656
-
extraOpts: z.array(z.string()).optional().describe('Optional array of additional command-line options to pass to TLC beyond [-simulate].')
659
+
extraOpts: z.array(z.string()).optional().describe('Optional array of additional command-line options to pass to TLC beyond [-simulate].'),
660
+
// eslint-disable-next-line max-len
661
+
extraJavaOpts: z.array(z.string()).optional().describe('Optional array of additional Java options to pass to the JVM (e.g., ["-Xmx4g"]). Note: -Dtlc2.TLC.stopAfter=3 is set by default.')
@@ -674,20 +680,23 @@ export class MCPServer implements vscode.Disposable {
674
680
cfgFile: z.string().optional().describe('Optional path to a custom TLC configuration file.'),
675
681
// eslint-disable-next-line max-len
676
682
extraOpts: z.array(z.string()).optional().describe('Optional array of additional command-line options to pass to TLC beyond [-simulate, -invlevel].'),
683
+
// eslint-disable-next-line max-len
684
+
extraJavaOpts: z.array(z.string()).optional().describe('Optional array of additional Java options to pass to the JVM (e.g., ["-Xmx4g"]). Note: -Dtlc2.TLC.stopAfter=3 is set by default.'),
677
685
behaviorLength: z.number().min(1).describe('The length of the behavior to generate.')
0 commit comments