27 references to Mcp
Aspire.Dashboard (25)
Components\Dialogs\McpServerDialog.razor.cs (6)
49if ((DashboardOptions.Value.Mcp.PublicUrl ?? DashboardOptions.Value.Mcp.EndpointUrl) is { Length: > 0 } mcpUrl) 67if (DashboardOptions.Value.Mcp.AuthMode == McpAuthMode.ApiKey) 69_mcpConfigProperties.Add(new McpConfigPropertyViewModel { Name = $"{McpApiKeyAuthenticationHandler.ApiKeyHeaderName} (header)", Value = DashboardOptions.Value.Mcp.PrimaryApiKey! }); 80private bool McpEnabled => !DashboardOptions.Value.Mcp.Disabled.GetValueOrDefault() && !string.IsNullOrEmpty(_mcpUrl); 89if (DashboardOptions.Value.Mcp.AuthMode == McpAuthMode.ApiKey)
Components\Layout\MainLayout.razor.cs (2)
182return Options.CurrentValue.Mcp.AuthMode == McpAuthMode.Unsecured && !Options.CurrentValue.Mcp.SuppressUnsecuredMessage;
Components_Dialogs_McpServerDialog_razor.g.cs (4)
562DashboardOptions.Value.Mcp.PrimaryApiKey 625FluentUIExtensions.GetClipboardCopyAdditionalAttributes(DashboardOptions.Value.Mcp.PrimaryApiKey, ControlsStringsLoc[nameof(ControlsStrings.GridValueCopyToClipboard)], ControlsStringsLoc[nameof(ControlsStrings.GridValueCopied)]) 1100DashboardOptions.Value.Mcp.PrimaryApiKey 1163FluentUIExtensions.GetClipboardCopyAdditionalAttributes(DashboardOptions.Value.Mcp.PrimaryApiKey, ControlsStringsLoc[nameof(ControlsStrings.GridValueCopyToClipboard)], ControlsStringsLoc[nameof(ControlsStrings.GridValueCopied)])
Components_Layout_MainLayout_razor.g.cs (1)
551if (!Options.CurrentValue.Mcp.Disabled.GetValueOrDefault())
Configuration\PostConfigureDashboardOptions.cs (3)
46options.Mcp.EndpointUrl = mcpUrl; 65options.Mcp.AuthMode = McpAuthMode.Unsecured; 71options.Mcp.AuthMode ??= McpAuthMode.Unsecured;
Configuration\ValidateDashboardOptions.cs (3)
96if (!options.Mcp.TryParseOptions(out var mcpParseErrorMessage)) 101switch (options.Mcp.AuthMode) 106if (string.IsNullOrEmpty(options.Mcp.PrimaryApiKey))
DashboardEndpointsBuilder.cs (1)
96if (!dashboardOptions.Mcp.Disabled.GetValueOrDefault())
DashboardWebApplication.cs (3)
199var isAllHttps = browserHttpsPort is not null && IsHttpsOrNull(dashboardOptions.Otlp.GetGrpcEndpointAddress()) && IsHttpsOrNull(dashboardOptions.Otlp.GetHttpEndpointAddress()) && IsHttpsOrNull(dashboardOptions.Mcp.GetEndpointAddress()); 392if (_dashboardOptionsMonitor.CurrentValue.Mcp.AuthMode == McpAuthMode.Unsecured) 572EndpointInfo.TryAddEndpoint(endpoints, dashboardOptions.Mcp.GetEndpointAddress(), "Mcp", httpProtocols: HttpProtocols.Http1AndHttp2, requireCertificate: dashboardOptions.Otlp.AuthMode == OtlpAuthMode.ClientCertificate, connectionType: ConnectionType.Mcp);
Mcp\McpApiKeyAuthenticationHandler.cs (1)
28var options = _dashboardOptions.CurrentValue.Mcp;
Mcp\McpCompositeAuthenticationHandler.cs (1)
42if (options.Mcp.AuthMode is McpAuthMode.ApiKey)
Aspire.Dashboard.Components.Tests (2)
Layout\MainLayoutTests.cs (2)
144o.Mcp.SuppressUnsecuredMessage = mcpSuppressUnsecuredMessage; 203o.Mcp.AuthMode = McpAuthMode.Unsecured;