feat(mcp): 将单次调用审阅绑定到已验证实例

This commit is contained in:
2026-09-09 01:10:55 +08:00
parent 6373829243
commit 96778c02f3
8 changed files with 421 additions and 12 deletions
@@ -77,6 +77,9 @@ pub struct Tool {
output: Option<jsonschema::Validator>,
}
impl Tool {
pub(crate) fn description(&self) -> Description {
self.description.clone()
}
fn parse(value: &Value) -> Result<Self> {
bounded(value, 192 * 1024, false)?;
let name = value["name"]