{"enrichment":{"faq":[{"a":"mcp provides the official C# SDK for building Model Context Protocol servers. Start by adding the ModelContextProtocol.Core package, then instantiate a server, register your tools, resources, and prompts using the SDK's fluent API, and choose your transport: stdio for spawning as a child process or HTTP for remote endpoints. The SDK handles protocol negotiation and capability advertisement automatically.","q":"How do I build an MCP server in .NET?"},{"a":"mcp supports both transport modes. Stdio transport runs your MCP server as a child process with bidirectional communication over standard streams\u2014ideal for local, tightly-coupled deployments. HTTP transport exposes your server as a remote endpoint with streaming support, enabling distributed architectures and session resumption. Choose stdio for simplicity and HTTP when you need scalability or cross-machine connectivity.","q":"What's the difference between stdio vs HTTP transport in MCP?"},{"a":"Yes. mcp's C# SDK lets you expose tools (callable functions), resources (data artifacts), and prompts (reusable instruction templates) through the Model Context Protocol. Register each capability type on your server instance, and mcp handles discovery and capability negotiation so clients can discover and invoke them according to their supported features.","q":"Can I expose tools, resources, and prompts via MCP?"},{"a":"mcp enables you to build MCP clients that discover and consume remote or local servers. Create an MCP client, connect it to your server's transport endpoint (stdio process or HTTP URL), perform capability negotiation, and integrate discovered tools into IChatClient workflows. The SDK abstracts transport details so your code works uniformly across deployment modes.","q":"How do I connect a .NET application to an MCP server?"},{"a":"mcp supports capability-aware flows where clients and servers exchange supported features during handshake. The SDK provides patterns for implementing authentication and authorization checks, negotiating which tools and resources are available based on client permissions, and handling capability mismatches gracefully. This ensures secure, interoperable protocol interactions.","q":"What does MCP capability negotiation and auth in C# involve?"},{"a":"Yes. mcp supports HTTP transport for MCP servers deployed in ASP.NET Core. Map MCP protocol endpoints in your middleware, configure streaming for session resumption, and use the SDK's HTTP transport layer to handle incoming client connections. This approach scales better than stdio for multi-client scenarios and integrates cleanly with your existing ASP.NET infrastructure.","q":"Can I run an MCP server in ASP.NET Core over HTTP?"}],"shadow_tags":["protocol-interop","transport-selection","capability-negotiation","server-hosting","client-integration","attribute-discovery","session-management","auth-boundaries","registry-publishing","payload-optimization"],"summary_rewrite":"mcp guides you through building or consuming Model Context Protocol servers and clients in .NET using the official C# SDK. It covers package selection, transport configuration (stdio for local processes, HTTP for remote endpoints), and capability negotiation patterns. Use this skill when you need protocol interoperability; reach for other tools if you only need model abstraction or agent orchestration without the MCP wire protocol."},"files":[{"bytes":12947,"path":"catalog/Libraries/MCP/skills/mcp/SKILL.md","sha256":"baf4f691a57ee411e790f8eed7f93acc71b53176910e0cfef2d513e10af9f4ea","url":"https://skillfed.io/files/managedcode/dotnet-skills/mcp/f96cfe69/SKILL.md"}],"id":"managedcode/dotnet-skills/mcp","links":{"html":"https://skillfed.io/managedcode/dotnet-skills/mcp","md":"https://skillfed.io/managedcode/dotnet-skills/mcp.md","repo":"https://github.com/managedcode/dotnet-skills"},"meta":{"agents_supported":[],"first_seen":"2026-07-28","forks":35,"language":"C#","last_updated":"2026-07-25","license":"MIT","name":"mcp","publisher":"managedcode","stars":463},"relations":{"similar":[{"id":"dotnet/skills/mcp-csharp-create"},{"id":"managedcode/dotnet-skills/mcp-csharp-create"},{"id":"mhagrelius/dotfiles/building-mcp-servers"},{"id":"managedcode/dotnet-skills/mcp-csharp-debug"},{"id":"Starchild-ai-agent/official-skills/mcp-connector"},{"id":"moltis-org/moltis/mcp-servers"},{"id":"affaan-m/ECC/mcp-server-patterns"},{"id":"oakoss/agent-skills/mcp-expert"},{"id":"vudovn/ag-kit/mcp-builder"},{"id":"vasilyu1983/AI-Agents-public/agents-mcp"}]},"slug":{"owner":"managedcode","repo":"dotnet-skills","skill":"mcp"},"version":"f96cfe69"}
