> For the complete documentation index, see [llms.txt](https://prisma-util.gitbook.io/stable/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://prisma-util.gitbook.io/stable/optional-features/runtime-modules/middleware-context.md).

# Middleware Context

{% hint style="warning" %}

## Project Toolchain Usage

This feature makes use of these Project Toolchain APIs: **Middleware**, **Extensions**. Because of this usage, it defines the following modules:

### middlewareContext

This module defines the following middleware and extensions identifiers that can be imported via Project Toolchain, along with their descriptions:

* **contextRemover** - Prevent the context from reaching Prisma.
  {% endhint %}

To enable this optional feature, add the `contextRemover` element to your [optionalFeatures](/stable/api-documentation/configuration-reference/optional-features.md) array, then use the generated middleware or extension inside of your code.

If you are using the middleware, make sure that it's the last one in the chain.

## Feature Effect

This feature modifies the generated Prisma Client to include this parameter to all operations:

{% code title="index.d.ts" %}

```typescript
context?: {[key: string]: any}
```

{% endcode %}
