Skip to main content

parse_webmcp_slash_command

Function parse_webmcp_slash_command 

Source
pub fn parse_webmcp_slash_command(
    arguments: &str,
) -> Result<WebmcpSlashCommand, WebmcpSlashCommandParseError>
Expand description

Parse the arguments written after /webmcp.

The empty argument string and status both select the status command. pair aliases connect, and stop aliases unpair so both frontends accept the same command vocabulary.

ยงErrors

Returns WebmcpSlashCommandParseError::UnknownCommand for an unsupported verb and WebmcpSlashCommandParseError::InvalidConnectionArguments for malformed pairing options.