Skip to main content

resolve_infra_label

Function resolve_infra_label 

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

Friendly label for a known-infra process: the CONFIGURED MCP server name when the process’s command + args uniquely match one of configured, else the package-derived name from classify_known_infra. None when neither produces a name - the process isn’t a recognized MCP server.

The configured match is tried FIRST because classify_known_infra only knows package-naming conventions: a locally-launched script fits none of them, so gating on it would drop a configured server to a generic row.