Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Build or consume Model Context Protocol (MCP) servers and clients in .NET using the official MCP C# SDK, including stdio, Streamable HTTP, tools, prompts, resources, and capability negotiation. USE FOR: .NET MCP servers or clients; stdio versus HTTP transport choices; tools, resources, prompts, completions, and capability negotiation. DO NOT USE FOR: unrelated stacks; generic tasks that do not need this specific guidance. INVOKES: inspect the repository context, edit targeted files, and run rele
Use this skill ↓52% 96%+43 ptsof test cases passed
Passed 22 of 23 test cases with the skill, and 12 of 23 without it.
When reconnecting a .NET client to a Streamable HTTP server that was temporarily disconnected, which method on the client class should be called to restore the existing session?
The response specifies calling McpClient.ResumeSessionAsync.
3 of 3 safety checks passed
Use this file when the task needs concrete current patterns from the official MCP C# SDK rather than high-level routing guidance.
| Scenario | Package | Transport / API |
|---|---|---|
| Minimal client or low-level host | ModelContextProtocol.Core | McpClient, low-level server APIs |
| Typical client or stdio server | ModelContextProtocol | StdioClientTransport, WithStdioServerTransport() |
| ASP.NET Core server | ModelContextProtocol.AspNetCore | WithHttpTransport(), MapMcp() |
| Remote client over HTTP | ModelContextProtocol or Core | HttpClientTransport |
| Enterprise managed authorization | ModelContextProtocol plus authentication support | IdentityAssertionGrantProvider for ID-JAG flows |
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Hosting;
using Microsoft.Extensions.Logging;
using ModelContextProtocol.Server;
using System.ComponentModel;
var builder = Host.CreateApplicationBuilder(args);
builder.Logging.AddConsole(options =>
{
options.LogToStandardErrorThreshold = LogLevel.Trace;
});
builder.Services
.AddMcpServer()
.WithStdioServerTransport()
.WithToolsFromAssembly();
await builder.Build().RunAsync();
[McpServerToolType]
public static class EchoTools
{
[McpServerTool, Description("Echoes the message back to the caller.")]
Published skills whose descriptions closely match this one, with their benchmark result.
Skills that do similar work, with their benchmark result.
Next to this one in the catalogue, plus more from the same author.