Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

635 B
Raw Blame
use super::specs::tool_specs_for_loaded_config;
use super::*;

/// The `tools/list` result this config advertises, rendered through the same
/// `tinymcp` conversion the served catalog uses.
fn list_tools_result_for_config(config: &crate::config::Config) -> Value {
    let tools = tool_specs_for_loaded_config(config)
        .iter()
        .map(|spec| serde_json::to_value(server_tool_spec(spec)).expect("tool spec serializes"))
        .collect::<Vec<_>>();
    json!({ "tools": tools })
}

#[path = "tools_tests_dispatch_tests.rs"]
mod dispatch_tests;
#[path = "tools_tests_params_and_specs_tests.rs"]
mod params_and_specs_tests;