Skip to content

Add NuGet package metadata and assets for Microsoft.DataApiBuilder.Mcp#3665

Open
anushakolan wants to merge 1 commit into
mainfrom
dev/anushakolan/mcp-nuget-package-creation-clean
Open

Add NuGet package metadata and assets for Microsoft.DataApiBuilder.Mcp#3665
anushakolan wants to merge 1 commit into
mainfrom
dev/anushakolan/mcp-nuget-package-creation-clean

Conversation

@anushakolan

Copy link
Copy Markdown
Contributor

Why make this change?

Closes : #3658

DAB currently publishes two NuGet packages:

  • Microsoft.DataApiBuilder — full engine
  • Microsoft.DataApiBuilder.Core — modular core library

Partner teams need to consume MCP functionality directly from a .NET application without hosting the full DAB engine. There was no dedicated package for this.

This change introduces Microsoft.DataApiBuilder.Mcp so teams can embed and host DAB MCP endpoints in their own ASP.NET Core applications, consuming it as an SDK dependency.

Current scope is internal Azure Artifacts feed only. NuGet.org publishing is not included in this change.

What is this change?

1. Updated Azure.DataApiBuilder.Mcp.csproj

Added full NuGet package authoring metadata:

  • PackageId, Title, Authors, Copyright
  • Description, PackageTags, AssemblyName
  • PackageLicenseFile, PackageIcon, PackageReadmeFile
  • PackageProjectUrl, RepositoryType
  • EmbedUntrackedSources, PublishRepositoryUrl for Source Link support
  • ContinuousIntegrationBuild conditional on TF_BUILD for deterministic pipeline builds
  • PackageOutputPath set to ./nupkg
  • Pack asset wiring for README, icon, LICENSE, and conditional NOTICE

2. Added nuget/nuget_mcp/README.md

Package-specific readme for Microsoft.DataApiBuilder.Mcp following the same structure as nuget/nuget_core/README.md, including:

  • License badge
  • Package purpose and intended audience
  • Key capabilities
  • Installation and usage guidance
  • Internal distribution scope note
  • Resource links

Design reference

docs/design/mcp-nuget-package-creation.md

How was this tested?

Local pack validation

dotnet pack src/Azure.DataApiBuilder.Mcp/Azure.DataApiBuilder.Mcp.csproj -c Release -o artifacts/mcp-verify

Pack succeeded and produced Microsoft.DataApiBuilder.Mcp.2.0.0.nupkg.

Package contents verified

Opened nupkg as archive and confirmed:

  • lib/net8.0/Microsoft.DataApiBuilder.Mcp.dll — correct assembly name
  • README.md — from nuget/nuget_mcp/README.md
  • LICENSE.txt — from repo root
  • nuget_icon.png — from nuget/nuget_icon.png
  • Microsoft.DataApiBuilder.Mcp.nuspec — generated with all metadata

Nuspec metadata verified

Confirmed all required fields populated:

  • id, version, authors, description, tags, projectUrl, repository, icon, readme, license file

Dependency graph verified

Confirmed correct transitive dependencies declared in nuspec for net8.0:

  • Microsoft.DataApiBuilder.Core
  • ModelContextProtocol
  • ModelContextProtocol.AspNetCore

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR makes the Azure.DataApiBuilder.Mcp project packable as a standalone NuGet package (Microsoft.DataApiBuilder.Mcp) by adding NuGet authoring metadata and wiring in the required package assets (README/icon/license, plus conditional NOTICE support), enabling partner teams to consume MCP functionality without hosting the full DAB engine.

Changes:

  • Added NuGet package metadata and deterministic CI packing settings to Azure.DataApiBuilder.Mcp.csproj.
  • Added package asset packing for README, icon, LICENSE, and a conditional NOTICE file.
  • Introduced a package-specific README under nuget/nuget_mcp/ describing purpose and usage.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
src/Azure.DataApiBuilder.Mcp/Azure.DataApiBuilder.Mcp.csproj Enables NuGet packing and adds package metadata + packaged assets for the new Microsoft.DataApiBuilder.Mcp SDK.
nuget/nuget_mcp/README.md Adds a package README tailored to the MCP library’s intended usage and scope.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Todo

Development

Successfully merging this pull request may close these issues.

Add NuGet Package Support for Microsoft.DataApiBuilder.Mcp

4 participants