McpRuleDestinationMatching interface

The MCP servers and requests an MCP rule matches. Present properties are ANDed. A rule has at most one of toolMatching and promptMatching. Without either, it matches every request to its servers.

Properties

promptMatching

Conditions on prompt requests.

protocolVersions

Compared with params.protocolVersion of an initialize request, the protocol version such as 2025-06-18 that a client names when it starts a session. A request that names no protocol version does not match the rule, so a Deny rule blocks sessions that start with a listed version.

serverFqdns

The MCP servers: exact names or one leading *., each inside the policy destination. Omitted means every server of the policy destination.

toolMatching

Conditions on tool requests.

Property Details

promptMatching

Conditions on prompt requests.

promptMatching?: McpPromptMatching

Property Value

protocolVersions

Compared with params.protocolVersion of an initialize request, the protocol version such as 2025-06-18 that a client names when it starts a session. A request that names no protocol version does not match the rule, so a Deny rule blocks sessions that start with a listed version.

protocolVersions?: McpStringMatching

Property Value

serverFqdns

The MCP servers: exact names or one leading *., each inside the policy destination. Omitted means every server of the policy destination.

serverFqdns?: string[]

Property Value

string[]

toolMatching

Conditions on tool requests.

toolMatching?: McpToolMatching

Property Value