bevy_brp_mcp 0.22.2

MCP server for Bevy Remote Protocol (BRP) integration
1
2
3
4
5
6
7
8
9
10
11
12
use strum::IntoEnumIterator;

use super::ToolDef;
use super::ToolName;

/// Visibility facade implementation for whole-registry tool definition assembly.
///
/// This is kept separate from `ToolName` so callers can depend on the `tool`
/// subsystem boundary rather than on enum-owned registry construction.
pub(super) fn get_all_tool_definitions() -> Vec<ToolDef> {
    ToolName::iter().map(ToolName::to_tool_def).collect()
}