Skip to content
Merged
Show file tree
Hide file tree
Changes from 32 commits
Commits
Show all changes
42 commits
Select commit Hold shift + click to select a range
9945d21
MCP Tools Editor Window
Nov 2, 2025
0def883
Merge branch 'main' into feature/tools-editor-window
IvanMurzak Nov 11, 2025
856c59b
Merge branch 'main' into feature/tools-editor-window
IvanMurzak Nov 11, 2025
60fe448
Merge branch 'main' into feature/tools-editor-window
IvanMurzak Nov 15, 2025
8a49ec0
Implemented the MCPToolsWindow UI to load real tool metadata
Nov 16, 2025
c55b93f
MCPToolsWindow with package-aware loading
Nov 18, 2025
e387c7b
Refactor MCPToolsWindow to streamline tool management and improve fil…
IvanMurzak Nov 18, 2025
4b583e2
Merge branch 'main' into feature/tools-editor-window
IvanMurzak Nov 18, 2025
04855c2
Enhance MCPToolsWindow logging with Microsoft.Extensions.Logging and …
IvanMurzak Nov 18, 2025
afee230
Merge branch 'feature/tools-editor-window' of https://github.com/Ivan…
IvanMurzak Nov 18, 2025
37a901b
Add ToolFilterType enum and refactor tool filtering logic in MCPTools…
IvanMurzak Nov 18, 2025
ed65f47
fix for type errors
Nov 19, 2025
af3b2df
Merge branch 'feature/tools-editor-window' of https://github.com/Ivan…
Nov 19, 2025
8ab4e9a
minor view fix for tool window
Nov 21, 2025
cc18c29
Merge branch 'main' into feature/tools-editor-window
IvanMurzak Nov 24, 2025
4e0ac32
UI layout issues fixs
Nov 26, 2025
a98db12
Fixed the toggle styling issue and adjusted the alignment
Nov 26, 2025
4798657
Merge branch 'main' into feature/tools-editor-window
IvanMurzak Nov 27, 2025
6fb6028
Updated the UI structure new groups the "Tools Configuration"
Nov 28, 2025
8ced5ee
Merge branch 'main' into feature/tools-editor-window
Nov 28, 2025
4da110f
Refactored MCP Tools window
IvanMurzak Nov 29, 2025
f8a714c
Refactor MCP Tools window to replace ScrollView with ListView for imp…
IvanMurzak Nov 29, 2025
efcc981
Add hover effect for tool list items in MCP Tools window
IvanMurzak Nov 29, 2025
f0f4e7f
Add empty list label to MCP Tools window for better user feedback
IvanMurzak Nov 29, 2025
b50d372
Fix tool list visibility condition in MCP Tools window for accurate d…
IvanMurzak Nov 29, 2025
99d28a4
Refactor ToolsConfigurationSection in AiConnectorWindow for improved …
IvanMurzak Nov 29, 2025
0a40725
Refactor MCP Tools window styles for improved layout and consistency
IvanMurzak Nov 29, 2025
df4fa57
Add transition effects to tool item highlighting and toggle switch st…
IvanMurzak Nov 29, 2025
b6bc058
Implement foldout state management and add smooth transitions for too…
IvanMurzak Nov 29, 2025
591370e
Update padding and foldout default states in MCP Tools window for imp…
IvanMurzak Nov 29, 2025
276b931
Refactor ToolViewModel to streamline argument parsing and foldout sta…
IvanMurzak Nov 29, 2025
f4cd5ef
Add unbind functionality for tool items and improve foldout state man…
IvanMurzak Nov 29, 2025
3042f41
Sanitize tool name in foldout key generation for consistent formattin…
IvanMurzak Nov 29, 2025
8235bb5
Apply suggestions from code review
IvanMurzak Nov 29, 2025
49f95d7
Apply suggestions from code review
IvanMurzak Nov 29, 2025
cc98bf8
Merge branch 'main' into feature/tools-editor-window
IvanMurzak Nov 29, 2025
225b879
Merge branch 'feature/tools-editor-window' of https://github.com/Ivan…
IvanMurzak Nov 29, 2025
ede11af
Merge branch 'main' into feature/tools-editor-window
IvanMurzak Nov 30, 2025
e4e6bc9
Refactor ShowWindow method to return the window instance and set focus
IvanMurzak Nov 30, 2025
c30bf2b
Merge branch 'main' into feature/tools-editor-window
IvanMurzak Nov 30, 2025
1b24b2d
Update MCPToolsWindow title to include logo icon
IvanMurzak Nov 30, 2025
8ca509b
Replaced the Observable.Interval and othes
Nov 30, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@

#nullable enable
using System;
using System.Linq;
using com.IvanMurzak.McpPlugin.Common;
using com.IvanMurzak.Unity.MCP.Runtime.Utils;
using Microsoft.AspNetCore.SignalR.Client;
Expand Down Expand Up @@ -248,6 +249,39 @@ public void CreateGUI()
}
}));

// Tools Configuration
// -----------------------------------------------------------------
var btnOpenTools = root.Query<Button>("btnOpenTools").First();
btnOpenTools.RegisterCallback<ClickEvent>(evt =>
{
McpToolsWindow.ShowWindow();
});

var toolsStatusLabel = root.Query<Label>("toolsStatusLabel").First();

McpPlugin.McpPlugin.DoAlways(plugin =>
{
Observable.Interval(TimeSpan.FromSeconds(1))
.ObserveOnCurrentSynchronizationContext()
.Subscribe(_ =>
{
var toolManager = UnityMcpPlugin.Instance.McpPluginInstance?.McpManager.ToolManager;
if (toolManager != null)
{
var allTools = toolManager.GetAllTools().ToList();
var total = allTools.Count;
var active = allTools.Count(t => toolManager.IsToolEnabled(t.Name));
var disabled = total - active;
toolsStatusLabel.text = $"Total tools ({total}), active tools ({active}), disabled tools ({disabled})";
}
else
{
toolsStatusLabel.text = "Total tools (0), active tools (0), disabled tools (0)";
}
})
.AddTo(_disposables);
}).AddTo(_disposables);

// Configure MCP Client
// -----------------------------------------------------------------

Expand Down
Loading
Loading