|
#pragma checksum "D:\a\_work\1\s\src\Aspire.Dashboard\Components\Dialogs\McpServerDialog.razor" "{8829d00f-11b8-4213-878b-770e8597ac16}" "457f67236cf79581f4c8cb606a2fb4cb3ef780d48f964c892378416ebdf1177f"
// <auto-generated/>
#pragma warning disable 1591
namespace Aspire.Dashboard.Components.Dialogs
{
#line default
using global::System;
using global::System.Collections.Generic;
using global::System.Linq;
using global::System.Threading.Tasks;
#nullable restore
#line (1,2)-(1,23) "D:\a\_work\1\s\src\Aspire.Dashboard\Components\_Imports.razor"
using System.Net.Http
#nullable disable
;
#nullable restore
#line (2,2)-(2,28) "D:\a\_work\1\s\src\Aspire.Dashboard\Components\_Imports.razor"
using System.Net.Http.Json
#nullable disable
;
#nullable restore
#line (3,2)-(3,39) "D:\a\_work\1\s\src\Aspire.Dashboard\Components\_Imports.razor"
using Aspire.Dashboard.Authentication
#nullable disable
;
#nullable restore
#line (4,2)-(4,35) "D:\a\_work\1\s\src\Aspire.Dashboard\Components\_Imports.razor"
using Aspire.Dashboard.Extensions
#nullable disable
;
#nullable restore
#line (5,2)-(5,42) "D:\a\_work\1\s\src\Aspire.Dashboard\Components\_Imports.razor"
using Aspire.Dashboard.Components.Resize
#nullable disable
;
#nullable restore
#line (6,2)-(6,57) "D:\a\_work\1\s\src\Aspire.Dashboard\Components\_Imports.razor"
using Microsoft.AspNetCore.Authentication.OpenIdConnect
#nullable disable
;
#nullable restore
#line (7,2)-(7,42) "D:\a\_work\1\s\src\Aspire.Dashboard\Components\_Imports.razor"
using Microsoft.AspNetCore.Authorization
#nullable disable
;
#nullable restore
#line (8,2)-(8,53) "D:\a\_work\1\s\src\Aspire.Dashboard\Components\_Imports.razor"
using Microsoft.AspNetCore.Components.Authorization
#nullable disable
;
#nullable restore
#line (9,2)-(9,45) "D:\a\_work\1\s\src\Aspire.Dashboard\Components\_Imports.razor"
using Microsoft.AspNetCore.Components.Forms
#nullable disable
;
#nullable restore
#line (10,2)-(10,47) "D:\a\_work\1\s\src\Aspire.Dashboard\Components\_Imports.razor"
using Microsoft.AspNetCore.Components.Routing
#nullable disable
;
#nullable restore
#line (11,2)-(11,43) "D:\a\_work\1\s\src\Aspire.Dashboard\Components\_Imports.razor"
using Microsoft.AspNetCore.Components.Web
#nullable disable
;
#nullable restore
#line (12,2)-(12,58) "D:\a\_work\1\s\src\Aspire.Dashboard\Components\_Imports.razor"
using Microsoft.AspNetCore.Components.Web.Virtualization
#nullable disable
;
#nullable restore
#line (13,2)-(13,48) "D:\a\_work\1\s\src\Aspire.Dashboard\Components\_Imports.razor"
using Microsoft.FluentUI.AspNetCore.Components
#nullable disable
;
#nullable restore
#line (14,2)-(14,62) "D:\a\_work\1\s\src\Aspire.Dashboard\Components\_Imports.razor"
using Icons = Microsoft.FluentUI.AspNetCore.Components.Icons
#nullable disable
;
#nullable restore
#line (15,2)-(15,27) "D:\a\_work\1\s\src\Aspire.Dashboard\Components\_Imports.razor"
using Microsoft.JSInterop
#nullable disable
;
#nullable restore
#line (16,2)-(16,24) "D:\a\_work\1\s\src\Aspire.Dashboard\Components\_Imports.razor"
using Aspire.Dashboard
#nullable disable
;
#nullable restore
#line (17,2)-(17,35) "D:\a\_work\1\s\src\Aspire.Dashboard\Components\_Imports.razor"
using Aspire.Dashboard.Components
#nullable disable
;
#nullable restore
#line (18,2)-(18,44) "D:\a\_work\1\s\src\Aspire.Dashboard\Components\_Imports.razor"
using Aspire.Dashboard.Components.Controls
#nullable disable
;
#nullable restore
#line (19,2)-(19,42) "D:\a\_work\1\s\src\Aspire.Dashboard\Components\_Imports.razor"
using Aspire.Dashboard.Components.Layout
#nullable disable
;
#nullable restore
#line (21,2)-(21,30) "D:\a\_work\1\s\src\Aspire.Dashboard\Components\_Imports.razor"
using Aspire.Dashboard.Model
#nullable disable
;
#nullable restore
#line (22,2)-(22,38) "D:\a\_work\1\s\src\Aspire.Dashboard\Components\_Imports.razor"
using Aspire.Dashboard.ServiceClient
#nullable disable
;
#nullable restore
#line (23,2)-(23,41) "D:\a\_work\1\s\src\Aspire.Dashboard\Components\_Imports.razor"
using Microsoft.Extensions.Localization
#nullable disable
;
#nullable restore
#line (3,2)-(3,47) "D:\a\_work\1\s\src\Aspire.Dashboard\Components\Dialogs\McpServerDialog.razor"
using Aspire.Dashboard.Components.CustomIcons
#nullable disable
;
#nullable restore
#line (4,2)-(4,38) "D:\a\_work\1\s\src\Aspire.Dashboard\Components\Dialogs\McpServerDialog.razor"
using Aspire.Dashboard.Configuration
#nullable disable
;
#nullable restore
#line (5,2)-(5,28) "D:\a\_work\1\s\src\Aspire.Dashboard\Components\Dialogs\McpServerDialog.razor"
using Aspire.Dashboard.Mcp
#nullable disable
;
#nullable restore
#line (6,2)-(6,39) "D:\a\_work\1\s\src\Aspire.Dashboard\Components\Dialogs\McpServerDialog.razor"
using Aspire.Dashboard.Model.Markdown
#nullable disable
;
#nullable restore
#line (7,2)-(7,39) "D:\a\_work\1\s\src\Aspire.Dashboard\Components\Dialogs\McpServerDialog.razor"
using Microsoft.AspNetCore.Components
#nullable disable
;
#nullable restore
#line (8,2)-(8,36) "D:\a\_work\1\s\src\Aspire.Dashboard\Components\Dialogs\McpServerDialog.razor"
using Microsoft.Extensions.Options
#nullable disable
;
#nullable restore
#line (9,2)-(9,33) "D:\a\_work\1\s\src\Aspire.Dashboard\Components\Dialogs\McpServerDialog.razor"
using System.Text.Encodings.Web
#nullable disable
;
#nullable restore
#line (10,2)-(10,24) "D:\a\_work\1\s\src\Aspire.Dashboard\Components\Dialogs\McpServerDialog.razor"
using System.Text.Json
#nullable disable
;
#line default
#line hidden
#nullable restore
#line (26,12)-(26,74) "D:\a\_work\1\s\src\Aspire.Dashboard\Components\_Imports.razor"
[Authorize(Policy = FrontendAuthorizationDefaults.PolicyName)]
#line default
#line hidden
#nullable disable
#nullable restore
public partial class McpServerDialog : global::Microsoft.AspNetCore.Components.ComponentBase,
#nullable restore
#line (1,13)-(1,36) "D:\a\_work\1\s\src\Aspire.Dashboard\Components\Dialogs\McpServerDialog.razor"
IDialogContentComponent
#line default
#line hidden
#nullable disable
#nullable disable
{
#pragma warning disable 1998
protected override void BuildRenderTree(global::Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder __builder)
{
__builder.OpenElement(0, "div");
__builder.AddAttribute(1, "class", "mcp-server-dialog-content");
__builder.AddAttribute(2, "b-qpmbgtq2uq");
#nullable restore
#line (13,1)-(13,5) "D:\a\_work\1\s\src\Aspire.Dashboard\Components\Dialogs\McpServerDialog.razor"
#line default
#line hidden
#nullable disable
#nullable restore
#line (13,6)-(15,1) "D:\a\_work\1\s\src\Aspire.Dashboard\Components\Dialogs\McpServerDialog.razor"
if (McpEnabled)
{
#line default
#line hidden
#nullable disable
__builder.AddMarkupContent(3, @"<p b-qpmbgtq2uq>
Aspire MCP connects AI assistants to Aspire app data. AI can use Aspire MCP to get information about app resources, health checks, commands, console logs and real-time telemetry.
For more information, see <a href target=""_blank"" b-qpmbgtq2uq>Use Aspire MCP with AI</a>.
</p>
");
__builder.OpenComponent<global::Microsoft.FluentUI.AspNetCore.Components.FluentTabs>(4);
__builder.AddComponentParameter(5, nameof(global::Microsoft.FluentUI.AspNetCore.Components.FluentTabs.
#nullable restore
#line (19,21)-(19,32) "D:\a\_work\1\s\src\Aspire.Dashboard\Components\Dialogs\McpServerDialog.razor"
ActiveTabId
#line default
#line hidden
#nullable disable
), global::Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.TypeCheck<global::System.String>(
#nullable restore
#line (19,36)-(19,56) "D:\a\_work\1\s\src\Aspire.Dashboard\Components\Dialogs\McpServerDialog.razor"
$"tab-{_activeView}"
#line default
#line hidden
#nullable disable
));
__builder.AddComponentParameter(6, nameof(global::Microsoft.FluentUI.AspNetCore.Components.FluentTabs.
#nullable restore
#line (19,59)-(19,70) "D:\a\_work\1\s\src\Aspire.Dashboard\Components\Dialogs\McpServerDialog.razor"
OnTabChange
#line default
#line hidden
#nullable disable
), global::Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.TypeCheck<global::Microsoft.AspNetCore.Components.EventCallback<global::Microsoft.FluentUI.AspNetCore.Components.FluentTab>>(global::Microsoft.AspNetCore.Components.EventCallback.Factory.Create<global::Microsoft.FluentUI.AspNetCore.Components.FluentTab>(this,
#nullable restore
#line (19,73)-(19,89) "D:\a\_work\1\s\src\Aspire.Dashboard\Components\Dialogs\McpServerDialog.razor"
OnTabChangeAsync
#line default
#line hidden
#nullable disable
)));
__builder.AddComponentParameter(7, nameof(global::Microsoft.FluentUI.AspNetCore.Components.FluentTabs.
#nullable restore
#line (19,91)-(19,95) "D:\a\_work\1\s\src\Aspire.Dashboard\Components\Dialogs\McpServerDialog.razor"
Size
#line default
#line hidden
#nullable disable
), global::Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.TypeCheck<global::Microsoft.FluentUI.AspNetCore.Components.TabSize?>(
#nullable restore
#line (19,97)-(19,101) "D:\a\_work\1\s\src\Aspire.Dashboard\Components\Dialogs\McpServerDialog.razor"
null
#line default
#line hidden
#nullable disable
));
__builder.AddAttribute(8, "ChildContent", (global::Microsoft.AspNetCore.Components.RenderFragment)((__builder2) => {
__builder2.OpenComponent<global::Microsoft.FluentUI.AspNetCore.Components.FluentTab>(9);
__builder2.AddComponentParameter(10, nameof(global::Microsoft.FluentUI.AspNetCore.Components.FluentTab.
#nullable restore
#line (20,24)-(20,34) "D:\a\_work\1\s\src\Aspire.Dashboard\Components\Dialogs\McpServerDialog.razor"
LabelClass
#line default
#line hidden
#nullable disable
), "tab-label");
__builder2.AddComponentParameter(11, nameof(global::Microsoft.FluentUI.AspNetCore.Components.FluentTab.
#nullable restore
#line (21,24)-(21,26) "D:\a\_work\1\s\src\Aspire.Dashboard\Components\Dialogs\McpServerDialog.razor"
Id
#line default
#line hidden
#nullable disable
), global::Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.TypeCheck<global::System.String>(
#nullable restore
#line (21,30)-(21,63) "D:\a\_work\1\s\src\Aspire.Dashboard\Components\Dialogs\McpServerDialog.razor"
$"tab-{McpToolView.VisualStudio}"
#line default
#line hidden
#nullable disable
));
__builder2.AddComponentParameter(12, nameof(global::Microsoft.FluentUI.AspNetCore.Components.FluentTab.
#nullable restore
#line (22,24)-(22,29) "D:\a\_work\1\s\src\Aspire.Dashboard\Components\Dialogs\McpServerDialog.razor"
Label
#line default
#line hidden
#nullable disable
), "Visual Studio");
__builder2.AddAttribute(13, "ChildContent", (global::Microsoft.AspNetCore.Components.RenderFragment)((__builder3) => {
__builder3.OpenElement(14, "div");
__builder3.AddAttribute(15, "class", "mcp-tool-tab");
__builder3.AddAttribute(16, "b-qpmbgtq2uq");
__builder3.AddMarkupContent(17, "<p b-qpmbgtq2uq>\r\n Quickly add Aspire MCP to Visual Studio using a browser install button:\r\n </p>\r\n ");
__builder3.OpenElement(18, "p");
__builder3.AddAttribute(19, "b-qpmbgtq2uq");
__builder3.OpenElement(20, "a");
__builder3.AddAttribute(21, "href",
#nullable restore
#line (28,36)-(28,109) "D:\a\_work\1\s\src\Aspire.Dashboard\Components\Dialogs\McpServerDialog.razor"
$"vsweb+mcp:/install?{Uri.EscapeDataString(_mcpServerInstallButtonJson)}"
#line default
#line hidden
#nullable disable
);
__builder3.AddAttribute(22, "b-qpmbgtq2uq");
__builder3.AddMarkupContent(23, "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"251\" height=\"20\" role=\"img\" aria-label=\"Visual Studio: Install Aspire MCP Server\" b-qpmbgtq2uq><title b-qpmbgtq2uq>Visual Studio: Install Aspire MCP Server</title>\r\n <g shape-rendering=\"crispEdges\" b-qpmbgtq2uq><rect width=\"100\" height=\"20\" fill=\"#555\" b-qpmbgtq2uq></rect><rect x=\"100\" width=\"151\" height=\"20\" fill=\"#8863c5\" b-qpmbgtq2uq></rect></g>\r\n <g fill=\"#fff\" text-anchor=\"middle\" font-family=\"Verdana,Geneva,DejaVu Sans,sans-serif\" text-rendering=\"geometricPrecision\" font-size=\"110\" b-qpmbgtq2uq><image x=\"5\" y=\"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YgMCAwIDAgNS45MDIgMEwxOS4xNiA5LjQ4YS44MzUuODM1IDAgMCAwIDAtMS4xOC44MzUuODM1IDAgMCAwLTEuMTggMGwtNi45ODUgNi45ODRhMi40OSAyLjQ5IDAgMCAxLTMuNTQgMCAyLjQ5IDIuNDkgMCAwIDEgMC0zLjU0bDYuOTgzLTYuOTg1YS44MzUuODM1IDAgMCAwIDAtMS4xOC44NC44NCAwIDAgMC0uNTktLjI0NSIvPjwvc3ZnPg==\" b-qpmbgtq2uq></image><text x=\"595\" y=\"140\" transform=\"scale(.1)\" fill=\"#fff\" textLength=\"730\" b-qpmbgtq2uq>Visual Studio</text><text x=\"1745\" y=\"140\" transform=\"scale(.1)\" fill=\"#fff\" textLength=\"1410\" b-qpmbgtq2uq>Install Aspire MCP Server</text></g></svg>");
__builder3.CloseElement();
__builder3.CloseElement();
__builder3.AddMarkupContent(24, "\r\n ");
__builder3.AddMarkupContent(25, @"<p b-qpmbgtq2uq>
For other options, such as updating <code b-qpmbgtq2uq>mcp.json</code>, see <a href=""https://learn.microsoft.com/en-us/visualstudio/ide/mcp-servers?view=vs-2022#options-for-adding-an-mcp-server"" target=""_blank"" b-qpmbgtq2uq>Add an MCP server to Visual Studio</a>.
</p>
");
__builder3.OpenComponent<global::Aspire.Dashboard.Components.Controls.MarkdownRenderer>(26);
__builder3.AddComponentParameter(27, nameof(global::Aspire.Dashboard.Components.Controls.MarkdownRenderer.
#nullable restore
#line (44,39)-(44,47) "D:\a\_work\1\s\src\Aspire.Dashboard\Components\Dialogs\McpServerDialog.razor"
Markdown
#line default
#line hidden
#nullable disable
), global::Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.TypeCheck<global::System.String>(
#nullable restore
#line (44,50)-(44,80) "D:\a\_work\1\s\src\Aspire.Dashboard\Components\Dialogs\McpServerDialog.razor"
GetJsonConfigurationMarkdown()
#line default
#line hidden
#nullable disable
));
__builder3.AddComponentParameter(28, nameof(global::Aspire.Dashboard.Components.Controls.MarkdownRenderer.
#nullable restore
#line (44,82)-(44,99) "D:\a\_work\1\s\src\Aspire.Dashboard\Components\Dialogs\McpServerDialog.razor"
MarkdownProcessor
#line default
#line hidden
#nullable disable
), global::Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.TypeCheck<global::Aspire.Dashboard.Model.Markdown.MarkdownProcessor>(
#nullable restore
#line (44,102)-(44,120) "D:\a\_work\1\s\src\Aspire.Dashboard\Components\Dialogs\McpServerDialog.razor"
_markdownProcessor
#line default
#line hidden
#nullable disable
));
__builder3.CloseComponent();
__builder3.CloseElement();
}
));
__builder2.CloseComponent();
__builder2.AddMarkupContent(29, "\r\n ");
__builder2.OpenComponent<global::Microsoft.FluentUI.AspNetCore.Components.FluentTab>(30);
__builder2.AddComponentParameter(31, nameof(global::Microsoft.FluentUI.AspNetCore.Components.FluentTab.
#nullable restore
#line (47,24)-(47,34) "D:\a\_work\1\s\src\Aspire.Dashboard\Components\Dialogs\McpServerDialog.razor"
LabelClass
#line default
#line hidden
#nullable disable
), "tab-label");
__builder2.AddComponentParameter(32, nameof(global::Microsoft.FluentUI.AspNetCore.Components.FluentTab.
#nullable restore
#line (48,24)-(48,26) "D:\a\_work\1\s\src\Aspire.Dashboard\Components\Dialogs\McpServerDialog.razor"
Id
#line default
#line hidden
#nullable disable
), global::Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.TypeCheck<global::System.String>(
#nullable restore
#line (48,30)-(48,57) "D:\a\_work\1\s\src\Aspire.Dashboard\Components\Dialogs\McpServerDialog.razor"
$"tab-{McpToolView.VSCode}"
#line default
#line hidden
#nullable disable
));
__builder2.AddComponentParameter(33, nameof(global::Microsoft.FluentUI.AspNetCore.Components.FluentTab.
#nullable restore
#line (49,24)-(49,29) "D:\a\_work\1\s\src\Aspire.Dashboard\Components\Dialogs\McpServerDialog.razor"
Label
#line default
#line hidden
#nullable disable
), "VS Code");
__builder2.AddAttribute(34, "ChildContent", (global::Microsoft.AspNetCore.Components.RenderFragment)((__builder3) => {
__builder3.OpenElement(35, "div");
__builder3.AddAttribute(36, "class", "mcp-tool-tab");
__builder3.AddAttribute(37, "b-qpmbgtq2uq");
__builder3.AddMarkupContent(38, "<p b-qpmbgtq2uq>\r\n Quickly add Aspire MCP to VS Code using a browser install button:\r\n </p>\r\n ");
__builder3.OpenElement(39, "p");
__builder3.AddAttribute(40, "b-qpmbgtq2uq");
__builder3.OpenElement(41, "a");
__builder3.AddAttribute(42, "href",
#nullable restore
#line (55,36)-(55,109) "D:\a\_work\1\s\src\Aspire.Dashboard\Components\Dialogs\McpServerDialog.razor"
$"vscode:mcp/install?{Uri.EscapeDataString(_mcpServerInstallButtonJson)}"
#line default
#line hidden
#nullable disable
);
__builder3.AddAttribute(43, "b-qpmbgtq2uq");
__builder3.AddMarkupContent(44, "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"225\" height=\"20\" role=\"img\" aria-label=\"VS Code: Install Aspire MCP Server\" b-qpmbgtq2uq><title b-qpmbgtq2uq>VS Code: Install Aspire MCP Server</title>\r\n <g shape-rendering=\"crispEdges\" b-qpmbgtq2uq><rect width=\"74\" height=\"20\" fill=\"#555\" b-qpmbgtq2uq></rect><rect x=\"74\" width=\"151\" height=\"20\" fill=\"#0098ff\" b-qpmbgtq2uq></rect></g>\r\n <g fill=\"#fff\" text-anchor=\"middle\" font-family=\"Verdana,Geneva,DejaVu Sans,sans-serif\" text-rendering=\"geometricPrecision\" font-size=\"110\" b-qpmbgtq2uq><image x=\"5\" y=\"3\" width=\"14\" height=\"14\" href=\"data:image/svg+xml;base64,PHN2ZyBmaWxsPSJ3aGl0ZSIgcm9sZT0iaW1nIiB2aWV3Qm94PSIwIDAgMjQgMjQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHRpdGxlPk1vZGVsIENvbnRleHQgUHJvdG9jb2w8L3RpdGxlPjxwYXRoIGQ9Ik0xMy44NSAwYTQuMTYgNC4xNiAwIDAgMC0yLjk1IDEuMjE3TDE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2uq></image><text x=\"465\" y=\"140\" transform=\"scale(.1)\" fill=\"#fff\" textLength=\"470\" b-qpmbgtq2uq>VS Code</text><text x=\"1485\" y=\"140\" transform=\"scale(.1)\" fill=\"#fff\" textLength=\"1410\" b-qpmbgtq2uq>Install Aspire MCP Server</text></g></svg>");
__builder3.CloseElement();
__builder3.AddMarkupContent(45, "\r\n \r\n ");
__builder3.OpenElement(46, "a");
__builder3.AddAttribute(47, "href",
#nullable restore
#line (67,36)-(67,118) "D:\a\_work\1\s\src\Aspire.Dashboard\Components\Dialogs\McpServerDialog.razor"
$"vscode-insiders:mcp/install?{Uri.EscapeDataString(_mcpServerInstallButtonJson)}"
#line default
#line hidden
#nullable disable
);
__builder3.AddAttribute(48, "b-qpmbgtq2uq");
__builder3.AddMarkupContent(49, "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"273\" height=\"20\" role=\"img\" aria-label=\"VS Code Insiders: Install Aspire MCP Server\" b-qpmbgtq2uq><title b-qpmbgtq2uq>VS Code Insiders: Install Aspire MCP Server</title>\r\n <g shape-rendering=\"crispEdges\" b-qpmbgtq2uq><rect width=\"122\" height=\"20\" fill=\"#555\" b-qpmbgtq2uq></rect><rect x=\"122\" width=\"151\" height=\"20\" fill=\"#65bba5\" b-qpmbgtq2uq></rect></g>\r\n <g fill=\"#fff\" text-anchor=\"middle\" font-family=\"Verdana,Geneva,DejaVu Sans,sans-serif\" text-rendering=\"geometricPrecision\" font-size=\"110\" b-qpmbgtq2uq><image x=\"5\" y=\"3\" width=\"14\" height=\"14\" href=\"data:image/svg+xml;base64,PHN2ZyBmaWxsPSJ3aGl0ZSIgcm9sZT0iaW1nIiB2aWV3Qm94PSIwIDAgMjQgMjQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHRpdGxlPk1vZGVsIENvbnRleHQgUHJvdG9jb2w8L3RpdGxlPjxwYXRoIGQ9Ik0xMy44NSAwYTQuMTYgNC4xNiAwIDAgMC0yLjk1I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" b-qpmbgtq2uq></image><text x=\"705\" y=\"140\" transform=\"scale(.1)\" fill=\"#fff\" textLength=\"950\" b-qpmbgtq2uq>VS Code Insiders</text><text x=\"1965\" y=\"140\" transform=\"scale(.1)\" fill=\"#fff\" textLength=\"1410\" b-qpmbgtq2uq>Install Aspire MCP Server</text></g></svg>");
__builder3.CloseElement();
__builder3.CloseElement();
__builder3.AddMarkupContent(50, "\r\n ");
__builder3.AddMarkupContent(51, @"<p b-qpmbgtq2uq>
For other options, such as updating <code b-qpmbgtq2uq>mcp.json</code>, see <a href=""https://code.visualstudio.com/docs/copilot/customization/mcp-servers#_add-an-mcp-server"" target=""_blank"" b-qpmbgtq2uq>Add an MCP server to VS Code</a>.
</p>
");
__builder3.OpenComponent<global::Aspire.Dashboard.Components.Controls.MarkdownRenderer>(52);
__builder3.AddComponentParameter(53, nameof(global::Aspire.Dashboard.Components.Controls.MarkdownRenderer.
#nullable restore
#line (82,39)-(82,47) "D:\a\_work\1\s\src\Aspire.Dashboard\Components\Dialogs\McpServerDialog.razor"
Markdown
#line default
#line hidden
#nullable disable
), global::Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.TypeCheck<global::System.String>(
#nullable restore
#line (82,50)-(82,80) "D:\a\_work\1\s\src\Aspire.Dashboard\Components\Dialogs\McpServerDialog.razor"
GetJsonConfigurationMarkdown()
#line default
#line hidden
#nullable disable
));
__builder3.AddComponentParameter(54, nameof(global::Aspire.Dashboard.Components.Controls.MarkdownRenderer.
#nullable restore
#line (82,82)-(82,99) "D:\a\_work\1\s\src\Aspire.Dashboard\Components\Dialogs\McpServerDialog.razor"
MarkdownProcessor
#line default
#line hidden
#nullable disable
), global::Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.TypeCheck<global::Aspire.Dashboard.Model.Markdown.MarkdownProcessor>(
#nullable restore
#line (82,102)-(82,120) "D:\a\_work\1\s\src\Aspire.Dashboard\Components\Dialogs\McpServerDialog.razor"
_markdownProcessor
#line default
#line hidden
#nullable disable
));
__builder3.CloseComponent();
#nullable restore
#line (83,1)-(83,21) "D:\a\_work\1\s\src\Aspire.Dashboard\Components\Dialogs\McpServerDialog.razor"
#line default
#line hidden
#nullable disable
#nullable restore
#line (83,22)-(85,1) "D:\a\_work\1\s\src\Aspire.Dashboard\Components\Dialogs\McpServerDialog.razor"
if (_isHttps)
{
#line default
#line hidden
#nullable disable
__builder3.OpenElement(55, "div");
__builder3.AddAttribute(56, "class", "block-warning");
__builder3.AddAttribute(57, "b-qpmbgtq2uq");
__builder3.OpenElement(58, "div");
__builder3.AddAttribute(59, "class", "block-warning-icon");
__builder3.AddAttribute(60, "b-qpmbgtq2uq");
global::__Blazor.Aspire.Dashboard.Components.Dialogs.McpServerDialog.TypeInference.CreateFluentIcon_0(__builder3, 61, 62,
#nullable restore
#line (87,52)-(87,85) "D:\a\_work\1\s\src\Aspire.Dashboard\Components\Dialogs\McpServerDialog.razor"
new Icons.Filled.Size16.Warning()
#line default
#line hidden
#nullable disable
, 63,
#nullable restore
#line (87,94)-(87,107) "D:\a\_work\1\s\src\Aspire.Dashboard\Components\Dialogs\McpServerDialog.razor"
Color.Warning
#line default
#line hidden
#nullable disable
);
__builder3.CloseElement();
__builder3.AddMarkupContent(64, "\r\n\r\n ");
__builder3.AddMarkupContent(65, @"<div class=""block-warning-message"" b-qpmbgtq2uq><span class=""title"" b-qpmbgtq2uq>VS Code limitation</span>
As of October 2025, VS Code does not support using Aspire MCP over HTTPS.
<br b-qpmbgtq2uq>
<br b-qpmbgtq2uq>
To use VS Code with Aspire MCP, configure the MCP endpoint to use HTTP instead of HTTPS—for example, by launching the app host with the <code b-qpmbgtq2uq>http</code> profile.
<a href b-qpmbgtq2uq>More information</a></div>");
__builder3.CloseElement();
#nullable restore
#line (99,1)-(100,1) "D:\a\_work\1\s\src\Aspire.Dashboard\Components\Dialogs\McpServerDialog.razor"
}
#line default
#line hidden
#nullable disable
__builder3.CloseElement();
}
));
__builder2.CloseComponent();
__builder2.AddMarkupContent(66, "\r\n ");
__builder2.OpenComponent<global::Microsoft.FluentUI.AspNetCore.Components.FluentTab>(67);
__builder2.AddComponentParameter(68, nameof(global::Microsoft.FluentUI.AspNetCore.Components.FluentTab.
#nullable restore
#line (102,24)-(102,34) "D:\a\_work\1\s\src\Aspire.Dashboard\Components\Dialogs\McpServerDialog.razor"
LabelClass
#line default
#line hidden
#nullable disable
), "tab-label");
__builder2.AddComponentParameter(69, nameof(global::Microsoft.FluentUI.AspNetCore.Components.FluentTab.
#nullable restore
#line (103,24)-(103,26) "D:\a\_work\1\s\src\Aspire.Dashboard\Components\Dialogs\McpServerDialog.razor"
Id
#line default
#line hidden
#nullable disable
), global::Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.TypeCheck<global::System.String>(
#nullable restore
#line (103,30)-(103,56) "D:\a\_work\1\s\src\Aspire.Dashboard\Components\Dialogs\McpServerDialog.razor"
$"tab-{McpToolView.Other}"
#line default
#line hidden
#nullable disable
));
__builder2.AddComponentParameter(70, nameof(global::Microsoft.FluentUI.AspNetCore.Components.FluentTab.
#nullable restore
#line (104,24)-(104,29) "D:\a\_work\1\s\src\Aspire.Dashboard\Components\Dialogs\McpServerDialog.razor"
Label
#line default
#line hidden
#nullable disable
), "Other");
__builder2.AddAttribute(71, "ChildContent", (global::Microsoft.AspNetCore.Components.RenderFragment)((__builder3) => {
__builder3.OpenElement(72, "div");
__builder3.AddAttribute(73, "class", "mcp-tool-tab");
__builder3.AddAttribute(74, "b-qpmbgtq2uq");
__builder3.AddMarkupContent(75, "<p b-qpmbgtq2uq>\r\n Aspire MCP can be used with any AI tooling that supports streamable HTTP MCP servers.\r\n </p>\r\n ");
__builder3.AddMarkupContent(76, "<p b-qpmbgtq2uq>\r\n Important details for configuring Aspire MCP are below. Please refer to your AI client\'s documentation for how to add an MCP server.\r\n </p>\r\n ");
__builder3.OpenElement(77, "div");
__builder3.AddAttribute(78, "class", "property-grid-container");
__builder3.AddAttribute(79, "b-qpmbgtq2uq");
__builder3.OpenComponent<global::Microsoft.FluentUI.AspNetCore.Components.FluentAccordion>(80);
__builder3.AddAttribute(81, "ChildContent", (global::Microsoft.AspNetCore.Components.RenderFragment)((__builder4) => {
__builder4.OpenComponent<global::Microsoft.FluentUI.AspNetCore.Components.FluentAccordionItem>(82);
__builder4.AddComponentParameter(83, nameof(global::Microsoft.FluentUI.AspNetCore.Components.FluentAccordionItem.
#nullable restore
#line (114,50)-(114,57) "D:\a\_work\1\s\src\Aspire.Dashboard\Components\Dialogs\McpServerDialog.razor"
Heading
#line default
#line hidden
#nullable disable
), "Aspire MCP configuration");
__builder4.AddComponentParameter(84, nameof(global::Microsoft.FluentUI.AspNetCore.Components.FluentAccordionItem.
#nullable restore
#line (114,85)-(114,93) "D:\a\_work\1\s\src\Aspire.Dashboard\Components\Dialogs\McpServerDialog.razor"
Expanded
#line default
#line hidden
#nullable disable
), global::Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.TypeCheck<global::System.Boolean>(
#nullable restore
#line (114,95)-(114,99) "D:\a\_work\1\s\src\Aspire.Dashboard\Components\Dialogs\McpServerDialog.razor"
true
#line default
#line hidden
#nullable disable
));
__builder4.AddAttribute(85, "ChildContent", (global::Microsoft.AspNetCore.Components.RenderFragment)((__builder5) => {
__builder5.OpenElement(86, "div");
__builder5.AddAttribute(87, "slot", "end");
__builder5.AddAttribute(88, "b-qpmbgtq2uq");
__builder5.OpenComponent<global::Microsoft.FluentUI.AspNetCore.Components.FluentBadge>(89);
__builder5.AddComponentParameter(90, nameof(global::Microsoft.FluentUI.AspNetCore.Components.FluentBadge.
#nullable restore
#line (116,50)-(116,60) "D:\a\_work\1\s\src\Aspire.Dashboard\Components\Dialogs\McpServerDialog.razor"
Appearance
#line default
#line hidden
#nullable disable
), global::Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.TypeCheck<global::Microsoft.FluentUI.AspNetCore.Components.Appearance?>(
#nullable restore
#line (116,62)-(116,80) "D:\a\_work\1\s\src\Aspire.Dashboard\Components\Dialogs\McpServerDialog.razor"
Appearance.Neutral
#line default
#line hidden
#nullable disable
));
__builder5.AddComponentParameter(91, nameof(global::Microsoft.FluentUI.AspNetCore.Components.FluentBadge.
#nullable restore
#line (116,82)-(116,90) "D:\a\_work\1\s\src\Aspire.Dashboard\Components\Dialogs\McpServerDialog.razor"
Circular
#line default
#line hidden
#nullable disable
), global::Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.TypeCheck<global::System.Boolean>(
#nullable restore
#line (116,92)-(116,96) "D:\a\_work\1\s\src\Aspire.Dashboard\Components\Dialogs\McpServerDialog.razor"
true
#line default
#line hidden
#nullable disable
));
__builder5.AddAttribute(92, "ChildContent", (global::Microsoft.AspNetCore.Components.RenderFragment)((__builder6) => {
#nullable restore
#line (117,42)-(117,70) 26 "D:\a\_work\1\s\src\Aspire.Dashboard\Components\Dialogs\McpServerDialog.razor"
__builder6.AddContent(93, _mcpConfigProperties.Count()
#line default
#line hidden
#nullable disable
);
}
));
__builder5.CloseComponent();
__builder5.CloseElement();
__builder5.AddMarkupContent(94, "\r\n ");
__builder5.OpenComponent<global::Aspire.Dashboard.Components.Controls.PropertyGrid<
#nullable restore
#line (120,54)-(120,80) "D:\a\_work\1\s\src\Aspire.Dashboard\Components\Dialogs\McpServerDialog.razor"
McpConfigPropertyViewModel
#line default
#line hidden
#nullable disable
>>(95);
__builder5.AddComponentParameter(96, nameof(global::Aspire.Dashboard.Components.Controls.PropertyGrid<McpConfigPropertyViewModel>.
#nullable restore
#line (121,47)-(121,52) "D:\a\_work\1\s\src\Aspire.Dashboard\Components\Dialogs\McpServerDialog.razor"
Items
#line default
#line hidden
#nullable disable
), global::Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.TypeCheck<global::System.Linq.IQueryable<McpConfigPropertyViewModel>>(
#nullable restore
#line (121,54)-(121,88) "D:\a\_work\1\s\src\Aspire.Dashboard\Components\Dialogs\McpServerDialog.razor"
_mcpConfigProperties.AsQueryable()
#line default
#line hidden
#nullable disable
));
__builder5.AddComponentParameter(97, nameof(global::Aspire.Dashboard.Components.Controls.PropertyGrid<McpConfigPropertyViewModel>.
#nullable restore
#line (122,47)-(122,61) "D:\a\_work\1\s\src\Aspire.Dashboard\Components\Dialogs\McpServerDialog.razor"
IsNameSortable
#line default
#line hidden
#nullable disable
), global::Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.TypeCheck<global::System.Boolean>(
#nullable restore
#line (122,63)-(122,68) "D:\a\_work\1\s\src\Aspire.Dashboard\Components\Dialogs\McpServerDialog.razor"
false
#line default
#line hidden
#nullable disable
));
__builder5.AddComponentParameter(98, nameof(global::Aspire.Dashboard.Components.Controls.PropertyGrid<McpConfigPropertyViewModel>.
#nullable restore
#line (123,47)-(123,62) "D:\a\_work\1\s\src\Aspire.Dashboard\Components\Dialogs\McpServerDialog.razor"
IsValueSortable
#line default
#line hidden
#nullable disable
), global::Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.TypeCheck<global::System.Boolean>(
#nullable restore
#line (123,64)-(123,69) "D:\a\_work\1\s\src\Aspire.Dashboard\Components\Dialogs\McpServerDialog.razor"
false
#line default
#line hidden
#nullable disable
));
__builder5.AddComponentParameter(99, nameof(global::Aspire.Dashboard.Components.Controls.PropertyGrid<McpConfigPropertyViewModel>.
#nullable restore
#line (124,47)-(124,66) "D:\a\_work\1\s\src\Aspire.Dashboard\Components\Dialogs\McpServerDialog.razor"
GridTemplateColumns
#line default
#line hidden
#nullable disable
), "1fr 1.5fr");
__builder5.CloseComponent();
}
));
__builder4.CloseComponent();
}
));
__builder3.CloseComponent();
__builder3.CloseElement();
__builder3.CloseElement();
}
));
__builder2.CloseComponent();
}
));
__builder.CloseComponent();
#nullable restore
#line (131,1)-(133,1) "D:\a\_work\1\s\src\Aspire.Dashboard\Components\Dialogs\McpServerDialog.razor"
}
#line default
#line hidden
#nullable disable
__builder.CloseElement();
}
#pragma warning restore 1998
}
}
namespace __Blazor.Aspire.Dashboard.Components.Dialogs.McpServerDialog
{
#line hidden
internal static class TypeInference
{
public static void CreateFluentIcon_0<Icon>(global::Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder __builder, int seq, int __seq0, Icon __arg0, int __seq1, global::Microsoft.FluentUI.AspNetCore.Components.Color? __arg1)
where Icon : global::Microsoft.FluentUI.AspNetCore.Components.Icon, new()
{
__builder.OpenComponent<global::Microsoft.FluentUI.AspNetCore.Components.FluentIcon<Icon>>(seq);
__builder.AddComponentParameter(__seq0, nameof(global::Microsoft.FluentUI.AspNetCore.Components.FluentIcon<Icon>.
#nullable restore
#line (87,45)-(87,50) "D:\a\_work\1\s\src\Aspire.Dashboard\Components\Dialogs\McpServerDialog.razor"
Value
#line default
#line hidden
#nullable disable
), __arg0);
__builder.AddComponentParameter(__seq1, nameof(global::Microsoft.FluentUI.AspNetCore.Components.FluentIcon<Icon>.
#nullable restore
#line (87,87)-(87,92) "D:\a\_work\1\s\src\Aspire.Dashboard\Components\Dialogs\McpServerDialog.razor"
Color
#line default
#line hidden
#nullable disable
), __arg1);
__builder.CloseComponent();
}
}
}
#pragma warning restore 1591
|