Skip to content
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

Support ephemeral execution for dotnet tool run similar to npx, docker, and uv #47517

Open
JonDouglas opened this issue Mar 12, 2025 · 2 comments
Assignees
Labels
Area-Tools untriaged Request triage from a team member

Comments

@JonDouglas
Copy link

Is your feature request related to a problem? Please describe.

In the AI-world, MCPs are becoming popular as a paradigm to share prompts, tools, and resources with a client. These are often run through package managers or docker environments in temporary fashion.

Describe the solution you'd like

Many ecosystems are using tools like npx, docker, uv, in various ways, but mostly in isolated, temporary environments where it downloads the dependency into an ephemeral environment, runs the thing, and then the environment is torn down

dotnet tool run could simply just support this by default if it isn't specified in the scope of a local environment where it would look for a local tool instead. Or a parameter to specify this is --ephermeral/temporary is fine too.

Additional context

https://github.com/modelcontextprotocol/servers

@dotnet-issue-labeler dotnet-issue-labeler bot added Area-Tools untriaged Request triage from a team member labels Mar 12, 2025
@Redth
Copy link
Member

Redth commented Mar 12, 2025

It's also worth contemplating a similar short-hand for this like node has with npx being a package runner.

dotnet tool run --temp could be simplified to dnx or dntx.

@richlander
Copy link
Member

I think there are definitely some missing scenarios here. It would be good to see some documented, from other ecosystems and/or fake .NET ones.

Docker doesn't strike me as another ecosystem in the way npx is. I think the way to use both Node and .NET in Docker is well understood at this point and folks are successful using it in both weird and wonderful ways.

"temporary" is a good goal. "secure" is not. We're not in the business of providing secure environments, but relying on other systems to do that. We should avoid creating an experience that is as convenient and attractive as curl | sh.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-Tools untriaged Request triage from a team member
Projects
None yet
Development

No branches or pull requests

4 participants