AddHttpContextAccessor() and pass a factory that resolves IHttpContextAccessor from the built provider. When the host scales out, swap in a durable provider of the same contract.
Why MCP Essentials?
Companion to the official SDK: isolation, stores, forms, analyzers.
Quickstart
Install, wire HTTP or stdio, write a task tool, elicit a form, swap the store.
Authenticated tasks
In-process store, identity wiring, isolation rules, and the samples.
Form elicitation
Fluent form schemas, ElicitAsync, and parking a form on a task.
Analyzers
Compiler diagnostics for From<T>, colliding names, and invalid lambdas.
Choose a store
Database, distributed cache, and eventing providers. Start with Entity Framework Core.