Skip to main content

classify_known_infra

Function classify_known_infra 

Source
pub fn classify_known_infra(cmdline: &str) -> Option<InfraLabel>
Expand description

Friendly name for a known-infra process (MCP servers today), derived from its cmdline. None when unrecognized.

Recognizes the npm exec <pkg> and node .../<bin> shapes captured via ps -axww, with the @version suffix stripped: <base>-mcp[-server] → <base> (@upstash/context7-mcp → context7), a package literally named mcp → its scope (@playwright/mcp@latest → playwright), and the @modelcontextprotocol/server-<base> convention → <base>.