bevy_brp_mcp 0.22.0

MCP server for Bevy Remote Protocol (BRP) integration
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use std::ops::RangeInclusive;

// 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";