feat(apps): Pass toolInfo to MCP Apps via hostContext (#7506)

Co-authored-by: Goose <opensource@block.xyz>
This commit is contained in:
Andrew Harvard
2026-03-23 09:12:47 -04:00
committed by GitHub
parent 259ca26dfe
commit a43cbe5875
7 changed files with 118 additions and 2 deletions
+3
View File
@@ -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));