pub fn build_registry(
cfg: &SsgConfig,
agents: &AgentsConfig,
resources: &[McpResource],
) -> ValueExpand description
Pure-function registry builder, callable from tests without I/O.
ยงExamples
use ssg::cmd::SsgConfig;
use ssg::postprocess::agentic_discovery::{AgentsConfig, build_registry};
let cfg = SsgConfig::builder()
.site_name("Example".into())
.base_url("https://example.com".into())
.build()
.unwrap();
let agents = AgentsConfig::default();
let reg = build_registry(&cfg, &agents, &[]);
assert!(reg["resources"].is_array());
assert_eq!(reg["transport"]["type"], "http");