Quick Answer securing MCP servers against prompt injection: Learn how to harden Model Context Protocol (MCP) servers against prompt injection and tool abuse with real‑world .NET patterns, sandboxing, and observability. In production, I’ve found that the real lever is server‑side policy enforcement…
I wanted to build something useful and ended up creating ResilienceLab 0.5.0 , an experimental resilience library for .NET 10 with its own API and an MIT license. I developed it with coding agents, reviewing the contracts and checking the results. It includes retries for exceptions and generic…
Disclosure: I work on SelectPdf, the library used in this article. It's a commercial library with a free Community Edition; both are covered at the end. If you've ever generated PDFs from HTML in a Linux container, you probably know the drill: a headless browser needs a long list of shared…
AI applications are no longer just: Request ↓ AI Model ↓ Response Real-world AI applications often involve multiple steps: User Request ↓ AI Analysis ↓ External API ↓ Database ↓ Human Approval ↓ Final Action But what happens if the AI API fails? What if the application crashes halfway through the…
If you've worked with .NET applications, you've probably written code like this: await ChargePayment(); await ReserveInventory(); await GenerateInvoice(); await SendEmail(); It looks simple. But what happens if the application crashes after ReserveInventory() ? What happens if the payment API is…
You've finished your .NET application, run it through an obfuscator, and everything looks great. Then production starts throwing exceptions: TypeLoadException MissingMethodException JsonSerializationException Nothing changed in your business logic. Unit tests passed before protection. Yet the…
Every weekday a single, opinionated rule for senior C#/.NET engineers using Cursor. Here's the full week in one read — canonical posts live on the Agentic Architect blog . 7 daily senior rules Rule 19: NetArchTest for Boundaries Sun 04 Oct Architectural rules belong in tests, not in code review.…
The previous two parts wired up the agent loop and gave it tools. The missing piece is memory. Session context resets with every new conversation, so anything the agent learned about a user, their preferences or an earlier decision is gone. Long term memory fixes that, but only if you store the…
Hoje o Visual Studio não vai abrir. No Dia 01 dos meus 30 dias de .NET nós vimos o que acontece por trás de um dotnet run e conhecemos a .NET CLI. No Dia 02 abrimos a caixinha de um projeto .NET para entender melhor o Program.cs , .csproj , bin , obj e algumas das configurações que fazem nosso…