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 involves safe server/client design, auth boundaries, or data exposure rules for MCP.
For stdio servers, anything written to stdout can corrupt the protocol stream. Route logs to stderr:
builder.Logging.AddConsole(options =>
{
options.LogToStandardErrorThreshold = LogLevel.Trace;
});
Do not:
Console.WriteLineTreat every tool/resource/prompt argument as untrusted input.
[McpServerToolType]
public sealed class FileTools(IFileSystem files)
{
[McpServerTool, Description("Reads a text file below the approved workspace root.")]
public async Task<string> ReadTextFileAsync(
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.