Skip to content

SerializableMcpToolFilters

Defined in: src/mcp/config.ts:9

Tool filters in a serializable form, for an MCP server config entry. Because a config file cannot carry a RegExp, each pattern is a string compiled to a regex, matched from the start of the server-side tool name.

optional allowed?: string[];

Defined in: src/mcp/config.ts:11

When present, only tools whose names match one of these patterns are exposed.


optional rejected?: string[];

Defined in: src/mcp/config.ts:13

Tools whose names match one of these patterns are excluded, even when also allowed.