-
Notifications
You must be signed in to change notification settings - Fork 809
Open
Labels
area-app-modelIssues pertaining to the APIs in Aspire.Hosting, e.g. DistributedApplicationIssues pertaining to the APIs in Aspire.Hosting, e.g. DistributedApplication
Milestone
Description
Explicit adding McpServerEndpointAnnotation feels a little raw. Let's add an extension method for this.
Current pattern
var api = builder.AddCSharpApp("api", "./api")
.WithAnnotation(McpServerEndpointAnnotation.FromEndpoint("https"));This is only discoverable if you know about McpServerEndpointAnnotation. It should be something like:
var api = builder.AddCSharpApp("api", "./api")
.WithMcpServer("/mcp"); // or .WithMcpServerEndpoint("https")The extension method could handle the annotation creation and optionally take the MCP endpoint path for validation/documentation purposes.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
area-app-modelIssues pertaining to the APIs in Aspire.Hosting, e.g. DistributedApplicationIssues pertaining to the APIs in Aspire.Hosting, e.g. DistributedApplication