Skip to content

Conversation

@joelverhagen
Copy link
Contributor

@joelverhagen joelverhagen commented Jul 7, 2025

Motivation and Context

This resolves #126.

As of .NET 10 Preview 6 (releasing on July 8th, 2025), .NET has a single-shot command similar to npx and uvx. It is called dnx.

This allows .NET tool packages hosted on NuGet.org to be executed much like npm or PyPI packages.

I have added NuGet to a lot of the places Python and npm exist today. If it is too many places, I am happy to trim it down!

How Has This Been Tested?

I a sample MCP server hosted on nuget.org and running in my VS Code using dnx.

Breaking Changes

None.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
    • Add nuget as a supported registry_name
    • Add dnx as an example runtime_hint
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Documentation update
    • Add a guide on how to add a new package registry

Checklist

  • I have read the MCP Documentation
  • My code follows the repository's style guidelines
  • New and existing tests pass locally
  • I have added appropriate error handling
  • I have added or updated documentation as needed

Additional context

@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

📢 Thoughts on this report? Let us know!

@toby toby merged commit 7d7a965 into modelcontextprotocol:main Jul 7, 2025
7 checks passed
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.

Add support for .NET / NuGet based MCP servers

3 participants