//! The shape of a child's own neosian server and Vibe's name for its tools.
//! These are plain data and text, so they compile and are tested on every
//! platform; `memory.rs`, which builds the server from a watcher's checked
//! plan, is Unix-only like the tool itself (ยง40.50).
use super::adapter::SERVER_KEY;
/// neosian's own server as one child's configuration registers it.
#[derive(Clone, Debug, PartialEq, Eq)]
pub struct ChildServer {
pub command: String,
pub args: Vec<String>,
pub env: Vec<(String, String)>,
/// The tools the child may call without asking; None for all of them.
pub tools: Option<Vec<&'static str>>,
}
/// Vibe names an MCP tool `<server>_<tool>`.
pub fn vibe_tool(tool: &str) -> String {
format!("{SERVER_KEY}_{tool}")
}