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
| prompt |
Conditions on prompt requests. |
| protocol |
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. |
| server |
The MCP servers: exact names or one leading |
| tool |
Conditions on tool requests. |
Property Details
promptMatching
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[]