-
Notifications
You must be signed in to change notification settings - Fork 347
Add NuGet package metadata and assets for Microsoft.DataApiBuilder.Mcp #3665
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,35 @@ | ||
| # Data API builder MCP Library | ||
|
|
||
| [](https://opensource.org/licenses/MIT) | ||
|
|
||
| ## About | ||
|
|
||
| **Microsoft.DataApiBuilder.Mcp** provides Model Context Protocol (MCP) integration for [Data API builder](https://learn.microsoft.com/azure/data-api-builder/) (DAB). | ||
|
|
||
| This package is intended for teams that want to host DAB MCP tools in their own .NET applications. | ||
|
|
||
| ## Key capabilities | ||
|
|
||
| - Registers DAB MCP services in dependency injection | ||
| - Maps DAB MCP endpoints for HTTP hosting | ||
| - Uses Data API builder Core capabilities for entity and tool execution | ||
|
|
||
| ## Installation | ||
|
|
||
| ```bash | ||
| dotnet add package Microsoft.DataApiBuilder.Mcp | ||
| ``` | ||
|
|
||
| ## Usage | ||
|
|
||
| This package is designed for ASP.NET Core applications that expose MCP endpoints. | ||
|
|
||
| Use it to register DAB MCP services in dependency injection and map DAB MCP endpoints in your app's hosting pipeline. | ||
|
|
||
| Current distribution scope is internal Azure Artifacts feeds. | ||
|
|
||
| ## Resources | ||
|
|
||
| - [Official Documentation](https://learn.microsoft.com/azure/data-api-builder/) | ||
| - [GitHub Repository](https://github.com/Azure/data-api-builder) | ||
| - [Samples](https://aka.ms/dab/samples) | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -4,10 +4,29 @@ | |
| <TargetFramework>net8.0</TargetFramework> | ||
| <ImplicitUsings>enable</ImplicitUsings> | ||
| <Nullable>enable</Nullable> | ||
| <PackageOutputPath>./nupkg</PackageOutputPath> | ||
| <PackageId>Microsoft.DataApiBuilder.Mcp</PackageId> | ||
| <Title>Microsoft.DataApiBuilder.Mcp</Title> | ||
| <Authors>Microsoft</Authors> | ||
| <Copyright>© Microsoft Corporation. All rights reserved.</Copyright> | ||
| <PackageLicenseFile>LICENSE.txt</PackageLicenseFile> | ||
| <RepositoryType>git</RepositoryType> | ||
| <PackageProjectUrl>https://go.microsoft.com/fwlink/?linkid=2224253</PackageProjectUrl> | ||
| <PackageTags>microsoft mcp model-context-protocol dab dataApiBuilder azure sql graphql rest sdk internal</PackageTags> | ||
| <AssemblyName>Microsoft.DataApiBuilder.Mcp</AssemblyName> | ||
| <Description>MCP integration library for Data API builder with services and endpoint mapping for exposing DAB tools through Model Context Protocol.</Description> | ||
| <PackageIcon>nuget_icon.png</PackageIcon> | ||
| <PackageReadmeFile>README.md</PackageReadmeFile> | ||
| <EmbedUntrackedSources>true</EmbedUntrackedSources> | ||
| <PublishRepositoryUrl>true</PublishRepositoryUrl> | ||
| <!-- Suppress transitive dependency version mismatch warnings from MCP SDK --> | ||
| <NoWarn>$(NoWarn);NU1603</NoWarn> | ||
| </PropertyGroup> | ||
|
|
||
| <PropertyGroup Condition="'$(TF_BUILD)' == 'true'"> | ||
| <ContinuousIntegrationBuild>true</ContinuousIntegrationBuild> | ||
| </PropertyGroup> | ||
|
|
||
| <ItemGroup> | ||
| <InternalsVisibleTo Include="Azure.DataApiBuilder.Service.Tests" /> | ||
| </ItemGroup> | ||
|
|
@@ -21,6 +40,13 @@ | |
| <ProjectReference Include="..\Core\Azure.DataApiBuilder.Core.csproj" /> | ||
| </ItemGroup> | ||
|
|
||
| <ItemGroup> | ||
| <None Include="..\..\nuget\nuget_mcp\README.md" Pack="true" PackagePath="\" /> | ||
| <None Include="..\..\nuget\nuget_icon.png" Pack="true" PackagePath="\" /> | ||
| <None Include="..\..\LICENSE.txt" Pack="true" PackagePath="\" /> | ||
| <None Include="..\..\nuget_mcp\NOTICE.txt" Pack="true" PackagePath="\" Condition="Exists('..\..\nuget_mcp\NOTICE.txt')" /> | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. NOTICE.txt path seems wrong.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thanks for the callout. I checked the generated package layout, and the That said, I also noticed the current implementation follows the same pattern used by the Core package, so I believe this is consistent with the existing packaging setup. If needed, I can add a short note in the PR to make that distinction clearer. |
||
| </ItemGroup> | ||
|
|
||
| <ItemGroup> | ||
| <Folder Include="CustomTools\" /> | ||
| </ItemGroup> | ||
|
|
||

There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The Testing should cover building a .NET Core application that uses this nuget package and ensure it can provide the mcp tools this package provides.