Library topic

AI, agents & MCP

Building AI features, agents and MCP servers with .NET. 123 links, all featured in The .NET Insider.

Extract a document and keep track of where each result came from

Luis Quintanilla · .NET BlogIssue 37

The DocumentExtractionClient preview gives .NET applications a common way to read text, tables and images while keeping references to their source. Running the same book through an in-process PDF parser and a vision provider shows what each can recover: a scanned copy has no text layer for the parser to read. A useful comparison before committing documents to an ingestion pipeline.

Put model and MCP traffic behind Azure AI Gateway

Steef-Jan Wiggers · infoq.comIssue 37

Azure AI Gateway is generally available as a standalone service: applications call a model alias while the gateway handles authentication, routing and failover across providers, and it can expose MCP servers through a common endpoint with access policies. Explains how it fits with Azure API Management. Policy-based routing is available now; the Model Router remains in preview.

Give a coding agent current C# 15 and .NET 11 examples

Anton Martyniuk · antondevtips.comIssue 37

After Claude proposed a workaround for something .NET 11 already supported, Anton wrote four skills covering C# 15, ASP.NET Core 11 and EF Core 11. The union skill names the target framework, the syntax to use and the older projects where it would fail to compile. Give the agent the same task with and without the skills and build both answers against the SDK your project targets.

Find a slow request with Aspire telemetry and an AI agent

Builds an orders API with PostgreSQL and a load generator, then gives an agent access to Aspire's telemetry to investigate latency. The MCP response can omit the large trace the investigation needs, but the Aspire CLI exposes enough to find it and inspect its spans. Comparing a slow request with a fast one gives the agent evidence before it reaches for the source code.

What NDepend found while testing an AI code analysis tool

NDepend Team · blog.ndepend.comIssue 36

NDepend reports finding 45 bugs across Jellyfin, Flow Launcher, Spectre.Console and eShopOnWeb while testing NDepend.AI, with linked reports and concrete failures such as retry logic that still throws after a retry succeeds. The testing discussion matters when agents write tests: a test can preserve incorrect behavior if it simply follows the implementation.

Run local models from a .NET application on Windows

Luis Quintanilla · .NET BlogIssue 36

Llama on Windows, from Hugging Face and the llama.cpp team, downloads and runs models locally; this connects a C# file-based app to its local OpenAI-compatible endpoint through IChatClient, with streaming responses and tool calls. Despite the name, it is not limited to Meta's Llama models; model choice depends on what it supports and what your machine can run.

Build a chat feature with Microsoft.Extensions.AI

Ali Hamza Ansari · blog.elmah.ioIssue 36

A console chat application built around IChatClient, using Groq through an OpenAI-compatible connection, keeping conversation history and streaming responses. Pairs well with the local-model walkthrough from the same issue, since the application code works through the same interface wherever the model runs. A small starting point for the request-and-response flow.

Give Claude Code access to current .NET documentation

David Grace · roundthecode.comIssue 36

Adds the Microsoft Learn MCP server to Claude Code and uses it with newer .NET APIs, with guidance in CLAUDE.md on when the agent should consult the docs. Without MCP the agent can still inspect the installed SDK; documentation is another route to an API's intended use. The instructions and the evidence the agent actually retrieves matter as much as connecting the server.

How AI changes the cost of building platform-specific UIs

David Ortinau · .NET BlogIssue 36

Uses BaristaNotes to ask whether AI-assisted native interfaces change the case for a shared UI framework, comparing a .NET MAUI app with platform-specific interfaces sharing C# code. The comparison looks beyond the first build to feature changes and verification: a faster first implementation is one input, but teams still have to keep several interfaces correct over time.

Copilot SDK 2.0 expands the options for hosting agents

David Ramel · visualstudiomagazine.comIssue 36

Copilot SDK 2.0 introduces a shared Rust runtime with .NET among its supported languages, and moves toward hosting agents inside applications with multiple sessions and separate identity, tool and storage configuration. The hosting choices (in-process, child process or remote runtime) are the practical part; session separation is not an operating-system sandbox for untrusted code.

Rider 2026.3 brings .NET 11 support and JetBrains Air

Michael Hawker and Alexander Kurakin · blog.jetbrains.comIssue 35

Rider supports .NET 11 and C# 15 from launch, including help with the new language features and debugging support for Runtime Async. JetBrains Air adds a workspace for directing agents and reviewing their work inside the IDE. For teams already using coding agents, the workflow changes are the part to look at: agents can run tests through Rider's MCP integration, and local project configuration can be copied into Git worktrees.

Use your own AI models in Visual Studio

Praveen Sethuraman · Visual Studio BlogIssue 35

Bring Your Own Model is generally available in Visual Studio 18.12. You can configure multiple connections to the same provider, connect custom or local endpoints, and select an API format that matches the model service. Relevant when a team has an approved internal endpoint or wants separate work and personal configurations. GitHub sign-in is not required for BYOM, although endpoint authentication, network access and organizational policies still apply.

What changed in Visual Studio's Copilot experience

Dalia Abo Sheasha · Visual Studio BlogIssue 35

Visual Studio 18.12 moves Copilot Chat onto an SDK-based execution engine. You can steer it while a task is running, inspect tool results, follow subagent activity and see request costs. Microsoft reports improved results on its own C# task benchmark using the same models, so try the updated workflow on representative tasks from your codebase and review the resulting changes and tests.

Delivering skills in NuGet packages

Richard Lander · .NET BlogIssue 34

Explores shipping SKILL.md files inside a library's NuGet package so agent guidance matches the version a project actually uses. Shows discovery with dotnet-inspect and copying skills into a repository with dotnet-package-skills. Bundling a skill does not by itself guarantee better results, so maintainers still need to measure the effect.

What's new in VS Code 1.144

Visual Studio Code Team · code.visualstudio.comIssue 33

Copilot Fusion coordinates models, side-by-side comparisons run the same task with different choices, and agent sessions get new controls. Image generation is in preview and desktop computer use is experimental.

.NET tasks AI is better at than developers

David Grace · roundthecode.comIssue 32

Uses Claude Code for project creation, unit tests, comments and exception debugging in an ASP.NET Core Web API. Reusable Markdown specifications define the architecture, packages, conventions and verification steps, giving the agent a clearer target.

This week in Cursor + .NET — 7 rules

Agentic Architect · dev.toIssue 32

Seven opinionated rules for reviewing agent-generated C#: value objects versus entities, sealed classes, strongly typed IDs, typed configuration, exception rethrowing, query tracking and DI lifetimes. Watch especially for singletons capturing scoped dependencies.

Links go to the original articles. Short descriptions are dotnetdevs.io commentary, not the authors' words.