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