Skip to content

Update server.json versioning and packaging logic#4432

Merged
dvoituron merged 2 commits intomicrosoft:dev-v5from
AClerbois:users/aclerbois/dev-v5/update-mcpserver-version-number-on-build
Jan 3, 2026
Merged

Update server.json versioning and packaging logic#4432
dvoituron merged 2 commits intomicrosoft:dev-v5from
AClerbois:users/aclerbois/dev-v5/update-mcpserver-version-number-on-build

Conversation

@AClerbois
Copy link
Collaborator

Refactored packaging to copy server.json to the intermediate output directory and update its "version" field to match the build version before packing. Changed hardcoded version from 5.0.0-preview.1 to 0.0.1 in server.json and project metadata. Added MSBuild target to automate version update for consistent packaging.

Pull Request

📖 Description

This pull request updates the packaging process for the MCP server by ensuring that the server.json manifest always contains the correct package version. It introduces a build target to update the version field before packaging, and adjusts how the manifest is included in the NuGet package.

Packaging and versioning improvements:

  • Added a new MSBuild target UpdateMcpServerJsonVersion in Microsoft.FluentUI.AspNetCore.McpServer.csproj to automatically update the version field in .mcp/server.json to match the package version before build and packaging. The target copies the manifest to the intermediate directory and performs the replacement.
  • Changed the packaging configuration in Microsoft.FluentUI.AspNetCore.McpServer.csproj so that the updated manifest from the intermediate directory is packed, ensuring the correct version is included in the NuGet package.

Manifest version corrections:

  • Updated the version field in .mcp/server.json and the manifest's title section to use a placeholder version (0.0.1) instead of the previous preview version, aligning with the new automated versioning process. [1] [2]

✅ Checklist

General

  • I have added tests for my changes.
  • I have tested my changes.
  • I have updated the project documentation to reflect my changes.
  • I have read the CONTRIBUTING documentation and followed the standards for this project.

Component-specific

  • I have added a new component
  • I have added Unit Tests for my new component
  • I have modified an existing component
  • I have validated the Unit Tests for an existing component

Refactored packaging to copy server.json to the intermediate output directory and update its "version" field to match the build version before packing. Changed hardcoded version from 5.0.0-preview.1 to 0.0.1 in server.json and project metadata. Added MSBuild target to automate version update for consistent packaging.
Copilot AI review requested due to automatic review settings December 31, 2025 14:25
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This pull request automates the versioning of the MCP server manifest file by introducing an MSBuild target that updates the version fields in server.json to match the package version during the build process.

  • Added UpdateMcpServerJsonVersion MSBuild target to automatically update version fields in server.json before builds
  • Changed packaging to include the version-updated manifest from the intermediate output directory
  • Updated placeholder version from 5.0.0-preview.1 to 0.0.1 in server.json

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
src/Tools/McpServer/Microsoft.FluentUI.AspNetCore.McpServer.csproj Added new MSBuild target to copy and update server.json version field, modified packaging to include the updated file from intermediate directory
src/Tools/McpServer/.mcp/server.json Changed hardcoded version values from 5.0.0-preview.1 to placeholder 0.0.1

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

…proj

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@dvoituron dvoituron merged commit 00587e7 into microsoft:dev-v5 Jan 3, 2026
3 checks passed
@AClerbois AClerbois deleted the users/aclerbois/dev-v5/update-mcpserver-version-number-on-build branch January 27, 2026 08:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants