use super::*;
#[cfg(feature = "mcp")]
pub fn get_mcp_tools() -> Vec<McpToolInstance> {
inventory::iter::<McpToolRegistration>
.into_iter()
.map(|reg| {
let tool = (reg.create_fn)();
let reg_metadata = reg.metadata();
McpToolInstance::new(
tool,
ApiMetadata::new(
reg.name().to_string(),
reg.version().to_string(),
reg.metadata().description().to_string(),
reg_metadata.cache_ttl(),
reg_metadata.is_streaming(),
),
)
})
.collect()
}
#[cfg(feature = "mcp")]
pub fn build() -> SdForgeMcpServer {
SdForgeMcpServer::new()
}