Repository navigation
[Automated] Update ATS API Surface Area - #19936
aspire-repo-bot[bot] wants to merge 1 commit into
Conversation
|
🚀 Dogfood this PR with:
curl -fsSL https://raw.githubusercontent.com/microsoft/aspire/main/eng/scripts/get-aspire-cli-pr.sh | bash -s -- 19936Or
iex "& { $(irm https://raw.githubusercontent.com/microsoft/aspire/main/eng/scripts/get-aspire-cli-pr.ps1) } 19936" |
Tests selector49 / 99 PR test projects · 4 PR jobs · 2 advisory-only targets, from 8 changed files. Selected PR test projects (49 / 99)
Selected PR jobs (4)
Advisory workflow impact (2)
How these were chosen — grouped by what changed
🔧 show 37
🔧 🔧 🔧 🔧 📦 affected project 🔧 🔧 🔧 Job reasons
Selection computed for commit |
There was a problem hiding this comment.
🟡 Changes recommended
Regenerate the Connector Namespace ATS surface so nullable PolicyName properties are optional.
Once you've addressed the issues Copilot identified, you can request another Copilot review.
Pull request overview
Refreshes generated ATS capability baselines for the next Aspire release.
Changes:
- Adds hosting, Deno, Blazor, Kubernetes, and Azure capabilities.
- Updates Foundry model metadata.
- Adds the Connector Namespace ATS surface.
File summaries
| File | Description |
|---|---|
src/Aspire.Hosting/api/Aspire.Hosting.ats.txt |
Adds project and executable volume capabilities. |
src/Aspire.Hosting.Kubernetes/api/Aspire.Hosting.Kubernetes.ats.txt |
Adds environment-variable support to volume mounts. |
src/Aspire.Hosting.JavaScript/api/Aspire.Hosting.JavaScript.ats.txt |
Adds experimental Deno resources and capabilities. |
src/Aspire.Hosting.Foundry/api/Aspire.Hosting.Foundry.ats.txt |
Updates preview model metadata. |
src/Aspire.Hosting.Blazor/api/Aspire.Hosting.Blazor.ats.txt |
Adds experimental .NET project gateway capabilities. |
src/Aspire.Hosting.Azure.Sandboxes/api/Aspire.Hosting.Azure.Sandboxes.ats.txt |
Adds ACR pull identity configuration. |
src/Aspire.Hosting.Azure.CosmosDB/api/Aspire.Hosting.Azure.CosmosDB.ats.txt |
Adds classic emulator configuration. |
src/Aspire.Hosting.Azure.ConnectorNamespace/api/Aspire.Hosting.Azure.ConnectorNamespace.ats.txt |
Adds the preview Connector Namespace surface; PolicyName nullability requires correction. |
Review details
Suppressed comments (4)
src/Aspire.Hosting.Azure.ConnectorNamespace/api/Aspire.Hosting.Azure.ConnectorNamespace.ats.txt:16
- Both properties are nullable in
AzureConnectorNamespaceConnectionOptions, but the ATS surface makes them required. This contradicts the optionaloptionsparameter and the documented fallback forConnectionName, and forces polyglot callers to populate values that C# callers may omit. Emit both properties with?and regenerate this surface.
ConnectionName: string # Gets or sets the Azure child resource name. The Aspire resource name is used when omitted.
DisplayName: string # Gets or sets the friendly connection name shown in the Connector Namespace portal.
src/Aspire.Hosting.Azure.ConnectorNamespace/api/Aspire.Hosting.Azure.ConnectorNamespace.ats.txt:27
DescriptionandDisplayNameare nullable inAzureConnectorNamespaceMcpOperationOptions, yet this ATS contract exposes them as required. Generated SDKs will reject otherwise valid operations containing only the requiredName. Emit both properties with?and regenerate the surface.
Description: string # Gets or sets the operation description shown to MCP clients.
DisplayName: string # Gets or sets the friendly operation name shown to MCP clients.
src/Aspire.Hosting.Azure.ConnectorNamespace/api/Aspire.Hosting.Azure.ConnectorNamespace.ats.txt:31
- Both fields are nullable in
AzureConnectorNamespaceMcpServerConfigOptions, but the ATS file makes them mandatory. This prevents generated SDK callers from using the documented default config name or omitting the description. EmitConfigName?: stringandDescription?: string, then regenerate the surface.
ConfigName: string # Gets or sets the Azure child resource name. The Aspire resource name is used when omitted.
Description: string # Gets or sets the description shown to MCP clients.
src/Aspire.Hosting.Azure.ConnectorNamespace/api/Aspire.Hosting.Azure.ConnectorNamespace.ats.txt:23
DescriptionandDisplayNameare nullable inAzureConnectorNamespaceMcpConnectorOptions, but this generated contract requires both. Polyglot SDK users cannot express the source API's valid omitted-value behavior. Emit these as optional properties and regenerate the surface.
Description: string # Gets or sets the connector description shown to MCP clients.
DisplayName: string # Gets or sets the friendly connector name shown to MCP clients.
- Files reviewed: 8/8 changed files
- Comments generated: 1
- Review effort level: Balanced
| # DTO Types | ||
| Aspire.Hosting.Azure.ConnectorNamespace/Aspire.Hosting.Azure.AzureConnectorNamespaceAccessPolicyOptions # Configures a Microsoft Entra access policy for a Connector Namespace connection. | ||
| ObjectId: string # Gets or sets the Microsoft Entra object ID authorized to use the connection. | ||
| PolicyName: string # Gets or sets the Azure child resource name. The Aspire resource name is used when omitted. |
There was a problem hiding this comment.
72c4db3 to
faa448d
Compare
There was a problem hiding this comment.
🟡 Changes recommended
Correct the nullable DisplayName DTO projection and regenerate the Connector Namespace surface.
Once you've addressed the issues Copilot identified, you can request another Copilot review.
Review details
Suppressed comments (3)
src/Aspire.Hosting.Azure.ConnectorNamespace/api/Aspire.Hosting.Azure.ConnectorNamespace.ats.txt:23
- This
DisplayNameis nullable inAzureConnectorNamespaceMcpConnectorOptions, but the generated DTO makes it mandatory. That changes the source contract for polyglot callers; preserve the optional property when regenerating the ATS surface.
DisplayName: string # Gets or sets the friendly connector name shown to MCP clients.
src/Aspire.Hosting.Azure.ConnectorNamespace/api/Aspire.Hosting.Azure.ConnectorNamespace.ats.txt:27
AzureConnectorNamespaceMcpOperationOptions.DisplayNameis nullable in the source DTO, while this entry requires it. Generated SDK users should be able to omit the friendly name, so this needs to be emitted as an optional property.
DisplayName: string # Gets or sets the friendly operation name shown to MCP clients.
src/Aspire.Hosting.Azure.ConnectorNamespace/api/Aspire.Hosting.Azure.ConnectorNamespace.ats.txt:31
AzureConnectorNamespaceMcpServerConfigOptions.Descriptionis nullable in source, but this surface requires it. Fix the nullable DTO projection so polyglot callers can omit the description, then regenerate the ATS file.
Description: string # Gets or sets the description shown to MCP clients.
- Files reviewed: 9/9 changed files
- Comments generated: 1
- Review effort level: Balanced
| TenantId: string # Gets or sets the Microsoft Entra tenant ID for `ObjectId`. | ||
| Aspire.Hosting.Azure.ConnectorNamespace/Aspire.Hosting.Azure.AzureConnectorNamespaceConnectionOptions # Configures a Connector Namespace connection. | ||
| ConnectionName: string # Gets or sets the Azure child resource name. The Aspire resource name is used when omitted. | ||
| DisplayName: string # Gets or sets the friendly connection name shown in the Connector Namespace portal. |
4915564 to
5f24e5a
Compare
5f24e5a to
0fb1c46
Compare
There was a problem hiding this comment.
🟡 Changes recommended
Nullable DisplayName properties are incorrectly emitted as required in the Connector Namespace ATS surface.
Once you've addressed the issues Copilot identified, you can request another Copilot review.
Review details
Suppressed comments (3)
src/Aspire.Hosting.Azure.ConnectorNamespace/api/Aspire.Hosting.Azure.ConnectorNamespace.ats.txt:27
AzureConnectorNamespaceMcpOperationOptions.DisplayNameis nullable in the source DTO, but the ATS declaration makes it mandatory. This changes the polyglot contract; preserve its optionality during ATS generation.
DisplayName: string # Gets or sets the friendly operation name shown to MCP clients.
src/Aspire.Hosting.Azure.ConnectorNamespace/api/Aspire.Hosting.Azure.ConnectorNamespace.ats.txt:31
AzureConnectorNamespaceMcpServerConfigOptions.Descriptionis declaredstring?, while this generated surface requires it. Polyglot callers should be able to omit the description, so fix DTO nullability generation and regenerate this entry as optional.
Description: string # Gets or sets the description shown to MCP clients.
src/Aspire.Hosting.Azure.ConnectorNamespace/api/Aspire.Hosting.Azure.ConnectorNamespace.ats.txt:16
DisplayNameis nullable inAzureConnectorNamespaceConnectionOptions(string?), but this ATS surface marks it as required. Polyglot SDKs will reject omission even though the source API accepts it; preserve the nullable marker when generating this DTO property and regenerate the surface.
DisplayName: string # Gets or sets the friendly connection name shown in the Connector Namespace portal.
- Files reviewed: 9/9 changed files
- Comments generated: 1
- Review effort level: Balanced
| TenantId: string # Gets or sets the Microsoft Entra tenant ID for `ObjectId`. | ||
| Aspire.Hosting.Azure.ConnectorNamespace/Aspire.Hosting.Azure.AzureConnectorNamespaceMcpConnectorOptions # Configures a connector route exposed by a managed MCP server. | ||
| Description: string # Gets or sets the connector description shown to MCP clients. | ||
| DisplayName: string # Gets or sets the friendly connector name shown to MCP clients. |
0fb1c46 to
672b7d7
Compare
There was a problem hiding this comment.
🟡 Changes recommended
Several nullable DTO properties are incorrectly represented as required in the ATS contracts.
Once you've addressed the issues Copilot identified, you can request another Copilot review.
Review details
Suppressed comments (6)
src/Aspire.Hosting.Azure.ConnectorNamespace/api/Aspire.Hosting.Azure.ConnectorNamespace.ats.txt:16
DisplayNameis nullable inAzureConnectorNamespaceConnectionOptions, but this ATS contract marks it as required. Language projections that honor ATS optionality force callers that only setConnectionNameto also supply an unrelated null display name. Make the DTO input property init-settable (so the scanner treats it as optional) and regenerate this asDisplayName?: string.
DisplayName: string # Gets or sets the friendly connection name shown in the Connector Namespace portal.
src/Aspire.Hosting.Azure.ConnectorNamespace/api/Aspire.Hosting.Azure.ConnectorNamespace.ats.txt:23
DisplayNameis nullable inAzureConnectorNamespaceMcpConnectorOptions, but the ATS surface makes it required. Partial connector options should be able to omit this display-only override; make the source DTO property init-settable and regenerate this asDisplayName?: string.
DisplayName: string # Gets or sets the friendly connector name shown to MCP clients.
src/Aspire.Hosting.Azure.ConnectorNamespace/api/Aspire.Hosting.Azure.ConnectorNamespace.ats.txt:31
Descriptionis nullable inAzureConnectorNamespaceMcpServerConfigOptions, but this surface requires it. Callers should be able to specify onlyConfigNameor use all defaults without emitting an unrelated null field. Make the source DTO property init-settable and regenerate this asDescription?: string.
Description: string # Gets or sets the description shown to MCP clients.
src/Aspire.Hosting.Foundry/api/Aspire.Hosting.Foundry.ats.txt:37
AlwaysandNeverare nullable alternatives toGlobal, but both are marked required here. A global-only approval policy should not need to populate two unrelated null fields. Make these source DTO properties init-settable and regenerate them as optional.
Always: Aspire.Hosting.Foundry/Aspire.Hosting.Foundry.FoundryToolboxMcpApprovalFilter # Gets or sets the filter for MCP tools that always require approval.
Global?: enum:Aspire.Hosting.Foundry.FoundryToolboxMcpGlobalApprovalMode # Gets or sets a policy that applies to every tool exposed by the MCP server.
Never: Aspire.Hosting.Foundry/Aspire.Hosting.Foundry.FoundryToolboxMcpApprovalFilter # Gets or sets the filter for MCP tools that never require approval.
src/Aspire.Hosting.Foundry/api/Aspire.Hosting.Foundry.ats.txt:41
- All three MCP tool option properties are nullable and intended for partial configuration, but this ATS shape marks them required. Generated callers that set one option are forced to provide null placeholders for the other two. Make these source DTO properties init-settable and regenerate them as optional.
ApprovalPolicy: Aspire.Hosting.Foundry/Aspire.Hosting.Foundry.FoundryToolboxMcpApprovalPolicy # Gets or sets the declared approval policy for tools discovered from the MCP server.
ServerDescription: string # Gets or sets a description of the MCP server.
ServerLabel: string # Gets or sets the label that identifies the MCP server in the Toolbox and prefixes its discovered tool names. The Toolbox tool name is used when unset.
src/Aspire.Hosting.Foundry/api/Aspire.Hosting.Foundry.ats.txt:43
- The documentation says
Versionis optional and the default is used when unset, but the ATS contract marks it required. Make the sourceFoundryToolboxOptions.Versionproperty init-settable and regenerate this asVersion?: string.
Version: string # Gets or sets the optional Toolbox version to reference. When unset, the default Toolbox version is used.
- Files reviewed: 10/10 changed files
- Comments generated: 2
- Review effort level: Balanced
| Operations: Aspire.Hosting.Azure.ConnectorNamespace/Aspire.Hosting.Azure.AzureConnectorNamespaceMcpOperationOptions[] # Gets or sets the allow-listed connector operations exposed as MCP tools. | ||
| Aspire.Hosting.Azure.ConnectorNamespace/Aspire.Hosting.Azure.AzureConnectorNamespaceMcpOperationOptions # Describes a connector operation exposed as an MCP tool. | ||
| Description: string # Gets or sets the operation description shown to MCP clients. | ||
| DisplayName: string # Gets or sets the friendly operation name shown to MCP clients. |
| Version: string # The version of the model. | ||
| Aspire.Hosting.Foundry/Aspire.Hosting.Foundry.FoundryToolboxMcpApprovalFilter # Selects MCP tools by name or read-only status for an approval policy. | ||
| ReadOnly?: boolean # Gets or sets whether this filter selects read-only or non-read-only MCP tools. | ||
| ToolNames: string[] # Gets or sets the names of the MCP tools selected by this filter. |
f4964ad to
c295be2
Compare
3a3f9eb to
9716a97
Compare
32098ab to
f004a82
Compare
a135834 to
1cfc178
Compare
4f6ce95 to
2ab2f59
Compare
|
Superseded by the consolidated dependency update in #22643, which includes this change. |
Auto-generated update to the ATS (Aspire Type System) capability surface to compare current surface vs latest release. This should only be merged once this surface area ships in a new release.