SaaSMTPLocal 1.1.6

{
  "servers": {
    "SaaSMTPLocal": {
      "type": "stdio",
      "command": "dnx",
      "args": ["SaaSMTPLocal@1.1.6", "--yes"]
    }
  }
}
                    
This package contains an MCP Server. The server can be used in VS Code by copying the generated JSON to your VS Code workspace's .vscode/mcp.json settings file.
dotnet tool install --global SaaSMTPLocal --version 1.1.6
                    
This package contains a .NET tool you can call from the shell/command line.
dotnet new tool-manifest
                    
if you are setting up this repo
dotnet tool install --local SaaSMTPLocal --version 1.1.6
                    
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=SaaSMTPLocal&version=1.1.6
                    
nuke :add-package SaaSMTPLocal --version 1.1.6
                    

dotnet pack -c Release dnx SaaMcpLocal@2.0.0-beta -y

MCP Server

This README was created using the C# MCP server project template. It demonstrates how you can easily create an MCP server using C# and publish it as a NuGet package.

The MCP server is built as a framework-dependent application and requires the .NET runtime to be installed on the target machine. The application is configured to roll-forward to the next highest major version of the runtime if one is available on the target machine. If an applicable .NET runtime is not available, the MCP server will not start. Consider building the MCP server as a self-contained application if you want to avoid this dependency.

See aka.ms/nuget/mcp/guide for the full guide.

Please note that this template is currently in an early preview stage. If you have feedback, please take a brief survey.

Checklist before publishing to NuGet.org

  • Test the MCP server locally using the steps below.
  • Update the package metadata in the .csproj file, in particular the <PackageId>.
  • Update .mcp/server.json to declare your MCP server's inputs.
  • Pack the project using dotnet pack.

The bin/Release directory will contain the package file (.nupkg), which can be published to NuGet.org.

Developing locally

To test this MCP server from source code (locally) without using a built MCP server package, you can configure your IDE to run the project directly using dotnet run.

{
  "servers": {
    "Stdio2": {
      "type": "stdio",
      "command": "dotnet",
      "args": [
        "run",
        "--project",
        "<PATH TO PROJECT DIRECTORY>"
      ]
    }
  }
}

Testing the MCP Server

Once configured, you can ask Copilot Chat for a random number, for example, Give me 3 random numbers. It should prompt you to use the get_random_number tool on the Stdio2 MCP server and show you the results.

Publishing to NuGet.org

  1. Run dotnet pack -c Release to create the NuGet package
  2. Publish to NuGet.org with dotnet nuget push bin/Release/*.nupkg --api-key <your-api-key> --source https://api.nuget.org/v3/index.json

Using the MCP Server from NuGet.org

Once the MCP server package is published to NuGet.org, you can configure it in your preferred IDE. Both VS Code and Visual Studio use the dnx command to download and install the MCP server package from NuGet.org.

  • VS Code: Create a <WORKSPACE DIRECTORY>/.vscode/mcp.json file
  • Visual Studio: Create a <SOLUTION DIRECTORY>\.mcp.json file

For both VS Code and Visual Studio, the configuration file uses the following server definition:

{
  "servers": {
  "Ѹ���ʼ����ͷ���": {
      "command": "dnx",
      "args": ["SaaSMTPLocal@1.0.1", "--yes"],
      "env": {
        "SMTP_PASSWORD": "S!a4356870",
        "SMTP_PORT": "587",
        "SMTP_SERVER": "smtp.office365.com",
        "SMTP_USERNAME": "saamailer@saa-symtek.com"
      }
    },
    "Stdio2": {
      "type": "stdio",
      "command": "dnx",
      "args": [
        "<your package ID here>",
        "--version",
        "<your package version here>",
        "--yes"
      ],
      "env": {       
        "SMTP_SERVER": "localhost",
        "SMTP_PORT": "25",
        "SMTP_USERNAME": "",
        "SMTP_PASSWORD": ""
      }
    }
  }
}

More information

.NET MCP servers use the ModelContextProtocol C# SDK. For more information about MCP:

Refer to the VS Code or Visual Studio documentation for more information on configuring and using MCP servers:

Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

Version Downloads Last Updated
1.1.6 219 1/7/2026
1.1.5 328 12/18/2025
1.1.4 492 12/10/2025
1.1.3 494 12/10/2025
1.1.2 478 12/10/2025
1.1.1 491 12/10/2025
1.1.0 496 12/10/2025
1.0.9 499 12/10/2025
1.0.8 494 12/10/2025
1.0.7 500 12/10/2025
1.0.6 728 12/2/2025
1.0.5 255 11/3/2025
1.0.4 243 11/3/2025
1.0.3 246 11/3/2025
1.0.2 249 11/3/2025
1.0.1 227 10/31/2025
1.0.0 230 10/31/2025