Skip to content

Commit a4f3f52

Browse files
Enhance the command preprocessor
1 parent 04f1b46 commit a4f3f52

File tree

2 files changed

+14
-5
lines changed

2 files changed

+14
-5
lines changed

mcp_nexus/Utilities/PathHandler.cs

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,8 +127,17 @@ private bool TryConvertWithFstabMapping(string path, out string windowsPath)
127127

128128
if (root.Length >= 2 && root[1] == ':' && char.IsLetter(root[0]))
129129
{
130-
// Drive letter root like C:
131-
windowsPath = root + (relative.Length > 0 ? relative.Replace('/', '\\') : string.Empty);
130+
// Drive letter root - ensure proper path separator
131+
// If root already ends with backslash, don't add another
132+
if (relative.Length > 0)
133+
{
134+
var separator = root.EndsWith('\\') ? string.Empty : "\\";
135+
windowsPath = root + separator + relative.Replace('/', '\\');
136+
}
137+
else
138+
{
139+
windowsPath = root;
140+
}
132141
return true;
133142
}
134143
}

mcp_nexus/mcp_nexus.csproj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66
<ImplicitUsings>enable</ImplicitUsings>
77
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
88
<WarningsAsErrors />
9-
<Version>1.0.6.82</Version>
10-
<AssemblyVersion>1.0.6.82</AssemblyVersion>
11-
<FileVersion>1.0.6.82</FileVersion>
9+
<Version>1.0.6.83</Version>
10+
<AssemblyVersion>1.0.6.83</AssemblyVersion>
11+
<FileVersion>1.0.6.83</FileVersion>
1212
<Product>MCP Nexus</Product>
1313
<Description>Model Context Protocol Server for Windows Debugging Tools</Description>
1414
<Company>CapulusCodeNinja</Company>

0 commit comments

Comments
 (0)