| title | Defining MCP server inputs using server.json |
|---|---|
| description | Use the server.json metadata file to define CLI arguments and environment variables needed by your MCP server |
| author | joelverhagen |
| ms.author | jver |
| ms.topic | conceptual |
| ms.date | 07/23/2025 |
An MCP server NuGet package is a .NET tool package with two extra things:
- A package type
McpServer, in additional to theDotnetToolpackage type present on all .NET tool packages. - An embedded
.mcp/server.jsonfile used for declaring inputs.
An MCP server package will contain your tool assembly (containing the Program entry point) as well as all of your dependencies. Depending on whether you made platform-specific packages, the MCP server package may be split into several platform-specific child packages. See the runtime requirements section for more information.