Snail.Sdk.Mcp.Hosting 0.4.1

dotnet add package Snail.Sdk.Mcp.Hosting --version 0.4.1
                    
NuGet\Install-Package Snail.Sdk.Mcp.Hosting -Version 0.4.1
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Snail.Sdk.Mcp.Hosting" Version="0.4.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Snail.Sdk.Mcp.Hosting" Version="0.4.1" />
                    
Directory.Packages.props
<PackageReference Include="Snail.Sdk.Mcp.Hosting" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Snail.Sdk.Mcp.Hosting --version 0.4.1
                    
#r "nuget: Snail.Sdk.Mcp.Hosting, 0.4.1"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Snail.Sdk.Mcp.Hosting@0.4.1
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Snail.Sdk.Mcp.Hosting&version=0.4.1
                    
Install as a Cake Addin
#tool nuget:?package=Snail.Sdk.Mcp.Hosting&version=0.4.1
                    
Install as a Cake Tool

Snail.Sdk.Mcp.Hosting

What every Snail MCP server starts from:

  • McpHost.CreateBuilder(args): the empty host, with log lines on stderr (UseStderr) since stdout carries JSON-RPC, and the heap compacted once the server has heard no MCP message for five minutes (AddIdleTrim; SNAIL_MCP_IDLE_TRIM sets the seconds, 0 turns it off).
  • ToolJson.Options(MyJson.Default): the MCP SDK's JSON options with the server's source-generated types put first, so the tools work in a native build.
  • ServerSettings.Read(name) and configuration.AddServerSettings(name): the server's settings file — the one SNAIL_MCP_<NAME>_CONFIG names, and only that one, or else the first of ./.s3l-mcp-<name>.json, ./s3l-mcp-<name>.json, ~/.config/s3l-mcp-<name>/config.json and ~/.s3l-mcp-<name>.json that exists — then its SNAIL_MCP_<NAME>_ variables, which win. Both host builders add them by themselves for a program Snail.Sdk.Mcp named.
  • EnvironmentSettings.Read(prefix, variables): settings from PREFIX_SECTION__FIELD environment variables.
  • ServerFolders.DataDirectory(name) and ServerFolders.ConfigDirectory(name): ~/.s3l-mcp-<name> and ~/.config/s3l-mcp-<name>.
  • ServerIdentity.Of(assembly): the name and version the server announces in initialize.
  • Invocation.Stable(path): the path of the running program that outlives an update of it.

A server built on Snail.Sdk.Mcp references it implicitly.

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.

NuGet packages (2)

Showing the top 2 NuGet packages that depend on Snail.Sdk.Mcp.Hosting:

Package Downloads
Snail.Sdk.Mcp.Http

One Snail MCP server for every session of the machine: the empty web host on a loopback address, the MCP SDK's Streamable HTTP transport with a session per client, and no browser let through.

Snail.Sdk.Mcp.JobClient

The client side of a Snail MCP server's jobs: a long operation started by a tool and read as a resource, awaited here by being told — a subscription to the job's resource, over resources/subscribe or subscriptions/listen as the protocol revision allows — rather than by asking the server again and again.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.4.1 0 10/29/2026
0.4.0 0 10/29/2026
0.3.0 0 10/29/2026
0.2.2 176 10/26/2026
0.2.1 227 10/24/2026
0.2.0 205 10/23/2026
0.1.0 119 10/17/2026