Defining MCP Tools in C#: Attributes, JSON Schema, and Error Handling
Learn how MCP tools in C# use attributes, JSON Schema, DI, content blocks, cancellation, error handling, and naming so models call .NET tools correctly.
Practical guidance on building AI-powered .NET apps, covering Model Context Protocol servers, Microsoft Agent Framework, and GitHub Copilot SDK integrations.
Showing 25–30 of 78 articles
Learn how MCP tools in C# use attributes, JSON Schema, DI, content blocks, cancellation, error handling, and naming so models call .NET tools correctly.
Build an MCP server in C# with a local stdio quickstart covering packages, Host setup, tool attributes, VS Code wiring, stderr logs, and common fixes.
Model Context Protocol explained for C# and .NET developers: what MCP is, why it matters, and how hosts, clients, servers, tools, resources, and prompts fit.
Learn how to build an MCP server C# developers can trust, from stdio and HTTP transports to tools, clients, security, Azure hosting, and debugging tips.
Connect azure ai foundry agents with microsoft agent framework in C# -- learn Azure backend setup, project connections, managed deployment, and cost management.
Learn evaluating ai agents microsoft extensions ai evaluation in C#. Build LLM-as-judge evaluation harnesses with real .NET code examples for quality testing.