< Summary

Information
Class: UIBlazor.Options.McpOptions
Assembly: UIBlazor
File(s): /home/runner/work/InvAit/InvAit/UIBlazor/Options/McpOptions.cs
Tag: 14_22728831704
Line coverage
100%
Covered lines: 6
Uncovered lines: 0
Coverable lines: 6
Total lines: 33
Line coverage: 100%
Branch coverage
N/A
Covered branches: 0
Total branches: 0
Branch coverage: N/A
Method coverage

Feature is only available for sponsors

Upgrade to PRO version

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity Line coverage
get_Enabled()100%11100%
get_Servers()100%11100%
get_ServerApprovalModes()100%11100%
get_ServerErrors()100%11100%
get_ServerEnabledStates()100%11100%
get_ToolDisabledStates()100%11100%

File(s)

/home/runner/work/InvAit/InvAit/UIBlazor/Options/McpOptions.cs

#LineLine coverage
 1using Shared.Contracts.Mcp;
 2
 3namespace UIBlazor.Options;
 4
 5public class McpOptions : BaseOptions
 6{
 7    /// <summary>
 8    /// Включен ли вообще MCP
 9    /// </summary>
 3310    public bool Enabled { get; set => SetIfChanged(ref field, value); } = true;
 11
 12    /// <summary>
 13    /// Список MCP серверов
 14    /// </summary>
 3515    public List<McpServerConfig> Servers { get; set => SetIfChanged(ref field, value); } = [];
 16
 2017    public Dictionary<string, ToolApprovalMode> ServerApprovalModes { get; set => SetIfChanged(ref field, value); } = []
 18
 19    /// <summary>
 20    /// Server initialization errors (serverName -> errorMessage)
 21    /// </summary>
 2022    public Dictionary<string, string> ServerErrors { get; set => SetIfChanged(ref field, value); } = [];
 23
 24    /// <summary>
 25    /// Enabled state for MCP servers (serverName -> enabled)
 26    /// </summary>
 2227    public Dictionary<string, bool> ServerEnabledStates { get; set => SetIfChanged(ref field, value); } = [];
 28
 29    /// <summary>
 30    /// Enabled state for MCP tools (serverName:toolName -> enabled)
 31    /// </summary>
 2432    public List<string> ToolDisabledStates { get; set => SetIfChanged(ref field, value); } = [];
 33}