Skip to main content

configured_text_match

Function configured_text_match 

Source
pub fn configured_text_match<'a>(
    cmdline: &str,
    configured: &'a [ConfiguredMcpServer],
) -> Option<&'a ConfiguredMcpServer>
Expand description

The configured server whose command + args uniquely text-match cmdline. None when none matches or several do - the ambiguous case declines rather than guesses.

Deliberately no package-convention fallback: this is the claim evidence for the MCP SERVERS join, which is snapshot-sourced - a package-derived name for a server the snapshot does not list is guessing by construction.