Skip to content

Feature Request: Support for .NET Server ExecutionΒ #163

@foxminchan

Description

@foxminchan

Is your feature request related to a problem? Please describe.
Currently, mcpb does not support launching MCP servers implemented in .NET. Many .NET MCP servers rely on the standard dotnet run workflow, which requires specifying a project file or a C# entrypoint. Without explicit support, .NET developers cannot register or execute their servers using the expected .NET CLI patterns.

Describe the solution you'd like
Add first-class support for .NET server execution, enabling:

  1. Project-based execution

    dotnet run --project "Mcp.csproj"

    Here, dotnet is the entrypoint and --project "Mcp.csproj" is the argument.

  2. Single-file execution (simplified)

    dotnet run app.cs

    Allowing a .cs file to act as the server entrypoint, with dotnet as the runtime command.

The goal is to let .NET servers fit naturally into the existing MCPB manifest and runtime model without extra wrappers or shell scripts.

Describe alternatives you've considered
A wrapper script (e.g., bash, PowerShell, or shell shim) could be used to invoke dotnet run, but this becomes platform-dependent and breaks the portability goals of MCP. Another alternative is pre-compiling the server, but that removes the dynamic/iterative development workflow that .NET developers typically use.

Additional context
The .NET ecosystem is increasingly adopting MCP. Having native support for .NET launch patterns would streamline development workflows, improve portability across OSes, and align MCPB with other runtimes already supported.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions