Skip to main content

list_tools_http

Function list_tools_http 

Source
pub async fn list_tools_http(
    config: &HttpConfig,
    schema: &SchemaConfig,
) -> Result<Vec<Tool>, ListToolsError>
Expand description

Lists tools from an HTTP MCP endpoint using the provided configuration.

use tooltest_core::{list_tools_http, HttpConfig, SchemaConfig};

let config = HttpConfig::new("http://localhost:3000/mcp")?;
let tools = list_tools_http(&config, &SchemaConfig::default())
    .await
    .map_err(|error| error.to_string())?;
println!("found {} tools", tools.len());