# FoundryToolboxMcpApprovalFilter

- Kind: `class`
- Package: [Aspire.Hosting.Foundry](/reference/api/csharp/aspire.hosting.foundry.md)
- Version: `17.0.0-preview.1.26567.5`
- Namespace: `Aspire.Hosting.Foundry`
- Target framework: `net10.0`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/2d325b13709752ba6d9a943635c5e2940a2530c0/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.
