# FoundryToolboxMcpApprovalFilter

- Kind: `class`
- Package: [Aspire.Hosting.Foundry](/reference/api/csharp/aspire.hosting.foundry.md)
- Version: `13.6.0-preview.1.26478.8`
- Namespace: `Aspire.Hosting.Foundry`
- Target framework: `net10.0`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/f4c27f2d43ddc1cacd0dd083b30d1fea1cee7a62/src/Aspire.Hosting.Foundry/Toolbox/FoundryToolboxOptions.cs)

Selects MCP tools by name or read-only status for an approval policy.

## Definition

```csharp
namespace Aspire.Hosting.Foundry;

public sealed class FoundryToolboxMcpApprovalFilter
{
    // ...
}
```

## ATS metadata

### ATS DTO

- Serialized as a plain JSON object without a `$type` discriminator.

## Constructors

- [FoundryToolboxMcpApprovalFilter](/reference/api/csharp/aspire.hosting.foundry/foundrytoolboxmcpapprovalfilter/constructors.md#constructor)

## Properties

- [ReadOnly](/reference/api/csharp/aspire.hosting.foundry/foundrytoolboxmcpapprovalfilter/properties.md#readonly) : `bool?` `get; set` -- Gets or sets whether this filter selects read-only or non-read-only MCP tools.
- [ToolNames](/reference/api/csharp/aspire.hosting.foundry/foundrytoolboxmcpapprovalfilter/properties.md#toolnames) : `string[]?` `get; set` -- Gets or sets the names of the MCP tools selected by this filter.
