1. Create a new C# console application project.
2. Add necessary NuGet packages (ModelContextProtocol, Microsoft.Extensions.Hosting) with the `--prerelease` flag.
3. Configure logging to stderr to avoid interfering with stdio transport.
4. Set up the server using `Host.CreateApplicationBuilder` and configure `AddMcpServer()` with stdio transport.
5. Implement at least one useful tool with proper attributes (`McpServerToolType`, `McpServerTool`, `Description`).
6. Implement proper error handling using `McpProtocolException`.
7. Add XML documentation comments and use nullable reference types.
8. Test the generated server with example commands and troubleshoot any issues.