Building an MCP Client in C#: Connecting, Discovering, and Calling Tools
Build an MCP client in C# that connects over stdio or HTTP, discovers capabilities, calls tools, handles result content, and manages lifecycle safely.
C# and .NET by Nick Cosentino
Practical, in-depth content for software engineers and technical leaders. Learn C#, .NET, software architecture, AI-assisted development, and engineering leadership with guidance you can apply on your team today.

The latest articles on software engineering, architecture, AI, and career growth.
Build an MCP client in C# that connects over stdio or HTTP, discovers capabilities, calls tools, handles result content, and manages lifecycle safely.
GitHub Copilot CLI permissions explained: trusted directories, allow and deny flags, sandboxing, hooks, URL access, secret redaction, and safe agent workflows.
Learn how to test a modular monolith in C# with unit and integration test strategies. Verify bounded context isolation, cross-module event flows, and module contracts in .NET.
Host an MCP server in ASP.NET Core with MapMcp, stateless HTTP transport, CORS, AllowedHosts, health checks, and production configuration guidance today.
Go deeper into the core topics on Dev Leader, from .NET and AI to software engineering and career growth.