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

This commit is contained in:
2026-09-09 01:10:55 +08:00
parent b797743e47
commit d0c3feed76
7 changed files with 409 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"]