diff --git a/eng/dnx/.mcp/server.json b/eng/dnx/.mcp/server.json index 6c832481c..4516e0aa4 100644 --- a/eng/dnx/.mcp/server.json +++ b/eng/dnx/.mcp/server.json @@ -1,22 +1,24 @@ { - "$schema": "https://modelcontextprotocol.io/schemas/draft/2025-07-09/server.json", + "$schema": "https://static.modelcontextprotocol.io/schemas/2025-09-29/server.schema.json", "description": "$(PackageDescription)", - "name": "io.github.microsoft/mcp/$(ServerName)", + "name": "com.microsoft/$(ServerName)", + "version": "$(PackageVersion)", "packages": [ { - "registry_name": "nuget", - "name": "$(PackageId)", + "registryType": "nuget", + "identifier": "$(PackageId)", "version": "$(PackageVersion)", - "package_arguments": [ + "transport": { + "type": "stdio" + }, + "packageArguments": [ { "type": "positional", - "value": "server", - "value_hint": "server" + "value": "server" }, { "type": "positional", - "value": "start", - "value_hint": "start" + "value": "start" } ] } @@ -24,8 +26,5 @@ "repository": { "url": "$(RepositoryUrl)", "source": "github" - }, - "version_detail": { - "version": "$(PackageVersion)" } -} \ No newline at end of file +} diff --git a/eng/scripts/Pack-Nuget.ps1 b/eng/scripts/Pack-Nuget.ps1 index 34842e603..f1d66c28e 100644 --- a/eng/scripts/Pack-Nuget.ps1 +++ b/eng/scripts/Pack-Nuget.ps1 @@ -86,17 +86,21 @@ function ExportServerJson { ) $output = [ordered]@{ - '$schema' = "https://modelcontextprotocol.io/schemas/draft/2025-07-09/server.json" + '$schema' = "https://static.modelcontextprotocol.io/schemas/2025-09-29/server.schema.json" description = $Description - name = "io.github.microsoft/mcp/$CommandName" + name = "com.microsoft/$CommandName" + version = $Version packages = @( [ordered]@{ - registry_name = "nuget" - name = $PackageId + registryType = "nuget" + identifier = $PackageId version = $Version - package_arguments = @( - [ordered]@{ type = "positional"; value = "server"; value_hint = "server" }, - [ordered]@{ type = "positional"; value = "start"; value_hint = "start" } + transport = [ordered]@{ + type = "stdio" + } + packageArguments = @( + [ordered]@{ type = "positional"; value = "server" }, + [ordered]@{ type = "positional"; value = "start" } ) } ) @@ -104,9 +108,6 @@ function ExportServerJson { url = $RepositoryUrl source = "github" } - version_detail = [ordered]@{ - version = $Version - } } $output | ConvertTo-Json -Depth 10 | Out-File -Path $OutputPath -Encoding utf8 diff --git a/servers/Azure.Mcp.Server/CHANGELOG.md b/servers/Azure.Mcp.Server/CHANGELOG.md index 8a7c7f068..297be84f7 100644 --- a/servers/Azure.Mcp.Server/CHANGELOG.md +++ b/servers/Azure.Mcp.Server/CHANGELOG.md @@ -15,6 +15,7 @@ The Azure MCP Server updates automatically by default whenever a new release com - Fixed the bug where user confirmation (elicitation) stopped working between versions 0.8.5 and 0.9.2. ([#824](https://github.com/microsoft/mcp/issues/824)) - Fixed `IsServerCommandInvoked` always appearing to be true. [[#837](https://github.com/microsoft/mcp/pull/837)] - Fixed `ToolName` always showing up as the tool area even if an MCP tool was invoked. [[#837](https://github.com/microsoft/mcp/pull/837)] +- Update the `server.json` in the NuGet distribution to match the 2025-09-29 server.json schema version (latest from the MCP Registry). [[#870](https://github.com/microsoft/mcp/pull/870)] ### Other Changes