Skip to main content

filter_commands

Function filter_commands 

Source
pub fn filter_commands(
    commands: Vec<CommandDef>,
    include: &[String],
    exclude: &[String],
    methods: &[String],
) -> Vec<CommandDef>
Expand description

Filter by HTTP method whitelist, then include globs, then exclude globs.

MCP commands (method is None) pass the methods filter unchanged.