Skip to content

Commit a56b98f

Browse files
committed
Remove the unused verifyPath argument
1 parent b976004 commit a56b98f

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

MCPForUnity/Editor/Helpers/McpConfigurationHelper.cs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,15 @@
33
using System.Linq;
44
using System.Runtime.InteropServices;
55
using System.Text;
6-
using Newtonsoft.Json;
7-
using Newtonsoft.Json.Linq;
8-
using UnityEditor;
9-
using UnityEngine;
6+
using MCPForUnity.Editor.Constants;
107
using MCPForUnity.Editor.Dependencies;
118
using MCPForUnity.Editor.Helpers;
129
using MCPForUnity.Editor.Models;
1310
using MCPForUnity.Editor.Services;
14-
using MCPForUnity.Editor.Constants;
11+
using Newtonsoft.Json;
12+
using Newtonsoft.Json.Linq;
13+
using UnityEditor;
14+
using UnityEngine;
1515

1616
namespace MCPForUnity.Editor.Helpers
1717
{
@@ -96,7 +96,7 @@ public static string WriteMcpConfiguration(string configPath, McpClient mcpClien
9696
catch { }
9797

9898
// 1) Start from existing, only fill gaps (prefer trusted resolver)
99-
string uvxPath = MCPServiceLocator.Paths.GetUvxPath(verifyPath: true);
99+
string uvxPath = MCPServiceLocator.Paths.GetUvxPath();
100100
if (uvxPath == null) return "uv package manager not found. Please install uv first.";
101101

102102
// Ensure containers exist and write back configuration

MCPForUnity/Editor/Services/IPathResolverService.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ public interface IPathResolverService
99
/// Gets the uvx package manager path (respects override if set)
1010
/// </summary>
1111
/// <returns>Path to the uvx executable, or null if not found</returns>
12-
string GetUvxPath(bool verifyPath = true);
12+
string GetUvxPath();
1313

1414
/// <summary>
1515
/// Gets the Claude CLI path (respects override if set)

MCPForUnity/Editor/Services/PathResolverService.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
using System.IO;
44
using System.Linq;
55
using System.Runtime.InteropServices;
6-
using MCPForUnity.Editor.Helpers;
76
using MCPForUnity.Editor.Constants;
7+
using MCPForUnity.Editor.Helpers;
88
using UnityEditor;
99
using UnityEngine;
1010

@@ -18,7 +18,7 @@ public class PathResolverService : IPathResolverService
1818
public bool HasUvxPathOverride => !string.IsNullOrEmpty(EditorPrefs.GetString(EditorPrefKeys.UvxPathOverride, null));
1919
public bool HasClaudeCliPathOverride => !string.IsNullOrEmpty(EditorPrefs.GetString(EditorPrefKeys.ClaudeCliPathOverride, null));
2020

21-
public string GetUvxPath(bool verifyPath = true)
21+
public string GetUvxPath()
2222
{
2323
try
2424
{

0 commit comments

Comments
 (0)