Snail.Sdk.Mcp.Http

The public API, generated by Snail.Sdk.Docs from the built assembly and its XML documentation. Do not edit: build with -p:SnailReference=true.

Snail.Sdk.Mcp.Http

static class McpHttpHost

The host of a server every session of the machine shares, over Streamable HTTP on a loopback address.

Member Summary
IEndpointConventionBuilder MapLocalMcp(this WebApplication app, string path = "/mcp") Maps the MCP endpoint behind the refusal of every request a browser makes.
IMcpServerBuilder WithLocalHttpTransport(this IMcpServerBuilder builder) Streamable HTTP with a session for every client.
WebApplicationBuilder CreateBuilder(string[] args, Uri url) An empty web host listening on url, log lines on stderr, a request a line only on warnings, the heap trimmed when idle.
WebApplicationBuilder CreateContainerBuilder(string[] args, int port) The same host for a server that runs in a container image: listening on port on every interface, since a container's published port does not reach its loopback.
const string DefaultPath Where clients connect unless a server says otherwise.