mcpwn API
    Preparing search index...

    Interface PolicyMatch

    Match criteria for a policy rule. An omitted field is a wildcard; ALL present fields must match. An empty/absent match matches every message.

    interface PolicyMatch {
        contentClass?: ContentClass[];
        direction?: Direction;
        jsonpath?: PolicyPredicate;
        method?: string;
        tool?: string;
    }
    Index
    contentClass?: ContentClass[]

    Any-of: the rule matches when ANY listed class is present in the message.

    direction?: Direction
    jsonpath?: PolicyPredicate

    Predicate over the message JSON (typically the tools/call arguments).

    method?: string

    Shell-style glob over the (resolved) JSON-RPC method.

    tool?: string

    Shell-style glob over the tool name (params.name).