From 685873057bb3fd5054f2ef52d91ef30b1208117c Mon Sep 17 00:00:00 2001 From: "Artem.Bukhonov" Date: Wed, 11 Mar 2026 21:52:57 +0100 Subject: [PATCH] IJPL-238888 Debugger MCP: improve prompting (cherry picked from commit 5bdaf8d67a44624b552d25a5771d5a37a9588f6e) GitOrigin-RevId: 25fca86293e66eafc2c77b56568ce840a6965cf8 --- .../intellij/mcpserver/toolsets/general/ExecutionToolset.kt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/plugins/mcp-server/src/com/intellij/mcpserver/toolsets/general/ExecutionToolset.kt b/plugins/mcp-server/src/com/intellij/mcpserver/toolsets/general/ExecutionToolset.kt index c245c6fe99d0..3d6f1ceec8ce 100644 --- a/plugins/mcp-server/src/com/intellij/mcpserver/toolsets/general/ExecutionToolset.kt +++ b/plugins/mcp-server/src/com/intellij/mcpserver/toolsets/general/ExecutionToolset.kt @@ -54,7 +54,9 @@ class ExecutionToolset : McpToolset { |Run configurations are usually used to define user the way how to run a user application, task or test suite from sources. | |This tool provides additional info like command line, working directory, environment variables, - |and whether the configuration supports dynamic launch overrides (`programArguments`, `workingDirectory`, `envs`). + |and `supportsDynamicLaunchOverrides`, which is the source-of-truth capability flag for one-time launch overrides + |(`programArguments`, `workingDirectory`, `envs`) in `execute_run_configuration` and `xdebug_start_debugger_session`. + |Only pass those override parameters when this flag is `true` for the selected configuration. | |Use this tool to query the list of available run configurations in the current project. """) @@ -239,7 +241,7 @@ class ExecutionToolset : McpToolset { val name: String, @EncodeDefault(mode = EncodeDefault.Mode.NEVER) val description: String? = null, - @property:McpDescription("Whether this run configuration supports one-time dynamic launch overrides for programArguments, workingDirectory, and envs.") + @property:McpDescription("Whether this run configuration supports one-time dynamic launch overrides for `programArguments`, `workingDirectory`, and `envs`. Use this field as the source of truth before passing those override parameters to `execute_run_configuration` or `xdebug_start_debugger_session`.") val supportsDynamicLaunchOverrides: Boolean, @EncodeDefault(mode = EncodeDefault.Mode.NEVER) val commandLine: String? = null,