feat(apps): Pass toolInfo to MCP Apps via hostContext (#7506)
Co-authored-by: Goose <opensource@block.xyz>
This commit is contained in:
@@ -551,6 +551,9 @@ async fn get_tools(
|
||||
get_parameter_names(&tool),
|
||||
permission,
|
||||
)
|
||||
.with_input_schema(serde_json::Value::Object(
|
||||
tool.input_schema.as_ref().clone(),
|
||||
))
|
||||
})
|
||||
.collect::<Vec<ToolInfo>>();
|
||||
tools.sort_by(|a, b| a.name.cmp(&b.name));
|
||||
|
||||
Reference in New Issue
Block a user