Skip to content

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

Open
@JonDouglas

Description

@JonDouglas

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

Related: #31103

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions