Skip to content

Commit 8f3f955

Browse files
Fix the wrong argument name
1 parent f791c3c commit 8f3f955

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

mcp_nexus/Protocol/McpToolDefinitionService.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ private static McpToolSchema CreateNexusOpenDumpAnalyzeSessionTool()
4949
type = "object",
5050
properties = new
5151
{
52-
dumpPath = new
52+
dumpFile = new
5353
{
5454
type = "string",
5555
description = "Full path to the crash dump file (.dmp)"
@@ -60,7 +60,7 @@ private static McpToolSchema CreateNexusOpenDumpAnalyzeSessionTool()
6060
description = "Optional: Path to symbols directory for better analysis"
6161
}
6262
},
63-
required = new[] { "dumpPath" }
63+
required = new[] { "dumpFile" }
6464
}
6565
};
6666
}

mcp_nexus/Tools/SessionAwareWindbgTool.cs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ public class SessionAwareWindbgTool(ILogger<SessionAwareWindbgTool> logger, ISes
4646
step_title = "Tooling - Open Session",
4747
tool_name = "nexus_open_dump_analyze_session",
4848
action = "Open the analyze session for the dump file with the tool from Nexus MCP server.",
49-
input = new { dumpPath = "string (required)", symbolsPath = "string (optional)" },
49+
input = new { dumpFile = "string (required)", symbolsPath = "string (optional)" },
5050
output = (string?)"sessionid",
5151
note = (string?)"This EXACT sessionid IS REQUIRED TO BE USED for all following commands in the session."
5252
},
@@ -186,22 +186,22 @@ public class WorkflowContext
186186
/// </summary>
187187
[Description("🔓 OPEN SESSION: Create a new debugging session for a crash dump file. Returns sessionId that MUST be used for all subsequent operations.")]
188188
public async Task<object> nexus_open_dump_analyze_session(
189-
[Description("Full path to the crash dump file (.dmp)")] string dumpPath,
189+
[Description("Full path to the crash dump file (.dmp)")] string dumpFile,
190190
[Description("Optional path to symbol files directory")] string? symbolsPath = null)
191191
{
192-
logger.LogInformation("🔓 Opening new debugging session for dump: {DumpPath}", dumpPath);
192+
logger.LogInformation("🔓 Opening new debugging session for dump: {DumpPath}", dumpFile);
193193

194194
try
195195
{
196196
// Create new session
197-
var sessionId = await sessionManager.CreateSessionAsync(dumpPath, symbolsPath);
197+
var sessionId = await sessionManager.CreateSessionAsync(dumpFile, symbolsPath);
198198
var context = sessionManager.GetSessionContext(sessionId);
199199

200200
// Return standardized response with required fields
201201
var response = new
202202
{
203203
sessionId = sessionId,
204-
dumpFile = Path.GetFileName(dumpPath),
204+
dumpFile = Path.GetFileName(dumpFile),
205205
commandId = (string?)null,
206206
success = true,
207207
operation = "nexus_open_dump_analyze_session",
@@ -231,12 +231,12 @@ public async Task<object> nexus_open_dump_analyze_session(
231231
}
232232
catch (Exception ex)
233233
{
234-
logger.LogError(ex, "Failed to create debugging session for {DumpPath}", dumpPath);
234+
logger.LogError(ex, "Failed to create debugging session for {DumpPath}", dumpFile);
235235

236236
var errorResponse = new
237237
{
238238
sessionId = (string?)null,
239-
dumpFile = Path.GetFileName(dumpPath),
239+
dumpFile = Path.GetFileName(dumpFile),
240240
commandId = (string?)null,
241241
success = false,
242242
operation = "nexus_open_dump_analyze_session",

0 commit comments

Comments
 (0)