bevy_brp_mcp 0.22.2

MCP server for Bevy Remote Protocol (BRP) integration
use std::ops::RangeInclusive;

// agent tool catalog constants
pub(super) const AGENT_TOOL_CATALOG_METHOD: &str = "brp_extras/agent_tools";
pub(super) const AGENT_TOOL_CATALOG_USAGE: &str =
    "Pass an entry's method and matching params to brp_execute.";
pub(super) const AGENT_TOOL_CATALOG_VERSION: u32 = 1;

// network constants
/// Environment variable name for BRP port
pub const BRP_EXTRAS_PORT_ENV_VAR: &str = "BRP_EXTRAS_PORT";
pub(super) const DEFAULT_BRP_EXTRAS_PORT: u16 = 15702;
/// Leave room for calculations
pub const MAX_VALID_PORT: u16 = 65534;
/// Non-privileged ports start here
pub(super) const MIN_VALID_PORT: u16 = 1024;
pub(super) const VALID_PORT_RANGE: RangeInclusive<u16> = MIN_VALID_PORT..=MAX_VALID_PORT;

// query constants
pub(super) const COMPONENT_SELECTOR_ALL: &str = "all";